Class AbstractGomList<T extends GomElement>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<T>
- All Implemented Interfaces:
GomElement,GomList<T>,Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
- Direct Known Subclasses:
AbstractGomProjectList,DefaultGomEntryList,DefaultGomLangInfos,GomActivityEntries,GomButton.GomDropTypes,GomButton.GomParams,GomContentReferenceList,GomFilterList,GomFormatReferenceList,GomIncludeContent,GomLabelExpressions,GomLinkEditorList,GomMediaStoreFolderList,GomQuery,GomScriptButtons,GomSiteOrMediaStoreFolderList,GomStoreFolderList,GomTableViews,GomTemplateReferenceList,GomTypeRestrictedTemplates,GomVariableList
public abstract class AbstractGomList<T extends GomElement>
extends ArrayList<T>
implements GomList<T>
Abstract implementation of a GOM list.
- Since:
- 5.2.210803
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the default tag name of the component.Map<String,Class<? extends GomElement>> Get a list of mappings from tag name to class supported by this list.Get the tag name, the instance was produced for.Get the configuration, if this is an included element.booleanIndicates, that the element has a representation to be displayed in a form.
A representation usually corresponds to a registered editor component.voidsetGomElementTag(@NotNull String name) Sets the tag name, the instance gets produced for.voidsetIncludeConfiguration(GomIncludeConfiguration includeConfiguration) Set the configuration for an included element.voidverify()Check if the list is marked as mandatory (not inherited!)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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
AbstractGomList
public AbstractGomList()Constructs an abstract gom list.- Since:
- 5.2.210803
-
-
Method Details
-
hasRepresentation
public boolean hasRepresentation()Indicates, that the element has a representation to be displayed in a form.
A representation usually corresponds to a registered editor component.- Specified by:
hasRepresentationin interfaceGomElement- Returns:
true, if a representation is available.- Since:
- 5.2.210803
-
getDefaultTag
Returns the default tag name of the component.- Since:
- 5.2.210803
-
getGomElementTag
Description copied from interface:GomElementGet the tag name, the instance was produced for.- Specified by:
getGomElementTagin interfaceGomElement- Returns:
- The name of the tag.
-
setGomElementTag
Description copied from interface:GomElementSets the tag name, the instance gets produced for.- Specified by:
setGomElementTagin interfaceGomElement- Parameters:
name- The name of the tag.
-
getIncludeConfiguration
Description copied from interface:GomElementGet the configuration, if this is an included element.- Specified by:
getIncludeConfigurationin interfaceGomElement- Returns:
- The configuration for including the element.
-
setIncludeConfiguration
Description copied from interface:GomElementSet the configuration for an included element.- Specified by:
setIncludeConfigurationin interfaceGomElement- Parameters:
includeConfiguration- The configuration to set.
-
getGomElementMappings
Description copied from interface:GomListGet a list of mappings from tag name to class supported by this list.- Convention:
- The mapping shall only be created on demand and not change at runtime.
- Specified by:
getGomElementMappingsin interfaceGomList<T extends GomElement>- Returns:
- The list of child tags.
-
verify
Check if the list is marked as mandatory (not inherited!) and not empty- Throws:
IllegalStateException- Since:
- 5.2.210803
-