Class ElementDefinition

java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
All Implemented Interfaces:
IElementDefinition, Serializable
Direct Known Subclasses:
AssetDefinition, ButtonDefinition, CompositeNodeDefinition, ContainerDefinition, ContentStyleDefinition, FieldDefinition, ImageDefinition, TextDefinition

public abstract class ElementDefinition extends Object implements IElementDefinition
Base class for (static) element definitions.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ElementDefinition

      protected ElementDefinition(String name)
    • ElementDefinition

      protected ElementDefinition(IElementDS datasource)
    • ElementDefinition

      protected ElementDefinition(ElementDefinition other)
  • Method Details

    • isInternalDefinition

      protected boolean isInternalDefinition()
    • setInternalDefinition

      protected void setInternalDefinition(boolean isInternal)
    • getName

      public String getName()
      Description copied from interface: IElementDefinition
      This method returns the name of the element definition. The name can be empty for element definitions that can not be retrieved by name, these elements can only be used via an inline reference.
      Specified by:
      getName in interface IElementDefinition
      Returns:
      The name of the element definition, can be null.
    • getPresentationStyles

      public PresentationStyle[] getPresentationStyles()
      Description copied from interface: IElementDefinition
      This method returns the presentation styles for the element.
      Specified by:
      getPresentationStyles in interface IElementDefinition
      Returns:
      The presentation styles, never null, but could be an empty array.
    • setPresentationStyles

      protected void setPresentationStyles(PresentationStyle[] presentationStyles)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object