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:
  • 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 interface GomElement
      Returns:
      true, if a representation is available.
      Since:
      5.2.210803
    • getDefaultTag

      protected abstract String getDefaultTag()
      Since:
      5.2.210803
    • getGomElementTag

      public String getGomElementTag()
      Get the tag name, the instance was produced for.
      Specified by:
      getGomElementTag in interface GomElement
      Returns:
      The name of the tag.
      Since:
      5.2.210803
    • setGomElementTag

      public void setGomElementTag(String name)
      Sets the tag name, the instance gets produced for.
      Specified by:
      setGomElementTag in interface GomElement
      Parameters:
      name - The name of the tag.
      Since:
      5.2.210803
    • getIncludeConfiguration

      public GomIncludeConfiguration getIncludeConfiguration()
      Get the configuration, if this is an included element.
      Specified by:
      getIncludeConfiguration in interface GomElement
      Returns:
      The configuration for including the element.
      Since:
      5.2.210803
    • setIncludeConfiguration

      public void setIncludeConfiguration(GomIncludeConfiguration includeConfiguration)
      Set the configuration for an included element.
      Specified by:
      setIncludeConfiguration in interface GomElement
      Parameters:
      includeConfiguration - The configuration to set.
      Since:
      5.2.210803
    • getGomElementMappings

      public Map<String,Class<? extends GomElement>> 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 interface GomList<T extends GomElement>
      Returns:
      The list of child tags.
      Since:
      5.2.210803
    • verify

      public void verify() throws IllegalStateException
      Throws:
      IllegalStateException
      Since:
      5.2.210803