Package org.nuxeo.template.adapters.doc
Class TemplateBindings
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<TemplateBinding>
-
- org.nuxeo.template.adapters.doc.TemplateBindings
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<TemplateBinding>
,Collection<TemplateBinding>
,List<TemplateBinding>
,RandomAccess
public class TemplateBindings extends ArrayList<TemplateBinding>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BINDING_PROP_NAME
static String
DEFAULT_BINDING
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description TemplateBindings(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(TemplateBinding tb)
boolean
containsTemplateId(String templateId)
boolean
containsTemplateName(String templateName)
TemplateBinding
get()
TemplateBinding
get(String name)
List<String>
getNames()
void
removeByName(String templateName)
void
save(DocumentModel doc)
String
useMainContentAsTemplate()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Field Detail
-
DEFAULT_BINDING
public static final String DEFAULT_BINDING
- See Also:
- Constant Field Values
-
BINDING_PROP_NAME
public static final String BINDING_PROP_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateBindings
public TemplateBindings(DocumentModel doc)
-
-
Method Detail
-
useMainContentAsTemplate
public String useMainContentAsTemplate()
-
get
public TemplateBinding get()
-
removeByName
public void removeByName(String templateName)
-
containsTemplateName
public boolean containsTemplateName(String templateName)
-
containsTemplateId
public boolean containsTemplateId(String templateId)
-
get
public TemplateBinding get(String name)
-
addOrUpdate
public void addOrUpdate(TemplateBinding tb)
-
save
public void save(DocumentModel doc)
-
-