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:
DefaultGomLangInfos
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
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.boolean
Indicates, that the element has a representation to be displayed in a form.
A representation usually corresponds to a registered editor component.void
setGomElementTag
(String name) Sets the tag name, the instance gets produced for.void
setIncludeConfiguration
(GomIncludeConfiguration includeConfiguration) Set the configuration for an included element.void
verify()
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, removeIf, stream, toArray
Methods 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:
hasRepresentation
in interfaceGomElement
- Returns:
true
, if a representation is available.- Since:
- 5.2.210803
-
getDefaultTag
- Since:
- 5.2.210803
-
getGomElementTag
Get the tag name, the instance was produced for.- Specified by:
getGomElementTag
in interfaceGomElement
- Returns:
- The name of the tag.
- Since:
- 5.2.210803
-
setGomElementTag
Sets the tag name, the instance gets produced for.- Specified by:
setGomElementTag
in interfaceGomElement
- Parameters:
name
- The name of the tag.- Since:
- 5.2.210803
-
getIncludeConfiguration
Get the configuration, if this is an included element.- Specified by:
getIncludeConfiguration
in interfaceGomElement
- Returns:
- The configuration for including the element.
- Since:
- 5.2.210803
-
setIncludeConfiguration
Set the configuration for an included element.- Specified by:
setIncludeConfiguration
in interfaceGomElement
- Parameters:
includeConfiguration
- The configuration to set.- Since:
- 5.2.210803
-
getGomElementMappings
Get 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:
getGomElementMappings
in interfaceGomList<T extends GomElement>
- Returns:
- The list of child tags.
- Since:
- 5.2.210803
-
verify
- Throws:
IllegalStateException
- Since:
- 5.2.210803
-