Class ContentDefinition

All Implemented Interfaces:
IElementDefinition, Serializable
Direct Known Subclasses:
DocumentDefinition

public class ContentDefinition extends CompositeNodeDefinition implements IElementDefinition
This class holds a single content node of a document.
Since:
6.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ContentDefinition

      protected ContentDefinition(IMetaModel metamodel, IParserFactory parser, DefinitionStore contentStore, IContentDS datasource)
      Constructs a content definition from data source. this constructor is public to allow test case access.
      Parameters:
      metamodel - The metamodel model.
      parser - The expression parser that should be used when parsing expressions.
      contentStore - The content store that should be used to locate references by name.
      datasource - The data source providing the document information.
      Throws:
      InitializationException - This exception is thrown when the definition could not be initialized due to a fatal error.
    • ContentDefinition

      protected ContentDefinition(ContentDefinition other)
  • Method Details

    • getType

      public ElementType getType()
      Description copied from interface: IElementDefinition
      This method returns the type of the element.
      Specified by:
      getType in interface IElementDefinition
      Returns:
      The type of the element the definition represents.
    • isEmpty

      protected boolean isEmpty()
      Overrides:
      isEmpty in class CompositeNodeDefinition
    • getDescription

      public String getDescription()
      This method returns the description of the content element.
      Returns:
      The description of the content element.
    • getContentStyle

      public ContentStyleDefinition getContentStyle()
      This method returns the content style that should be used when including the content element that is referred to.
      Returns:
      the content style that should be used when including the content element that is referred to.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class ElementDefinition
    • toString

      public String toString()
      Overrides:
      toString in class Object