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:
  • 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()
      Returns the default tag name of the component.
      Since:
      5.2.210803
    • getGomElementTag

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

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

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

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

      public Map<String,Class<? extends GomElement>> getGomElementMappings()
      Description copied from interface: GomList
      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.
    • verify

      public void verify() throws IllegalStateException
      Check if the list is marked as mandatory (not inherited!) and not empty
      Throws:
      IllegalStateException
      Since:
      5.2.210803