Class ContentDefinition
java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.CompositeNodeDefinition
com.aquima.interactions.composer.model.definition.ContentDefinition
- All Implemented Interfaces:
IElementDefinition
,Serializable
- Direct Known Subclasses:
DocumentDefinition
This class holds a single content node of a document.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
ContentDefinition
(IMetaModel metamodel, IParserFactory parser, DefinitionStore contentStore, IContentDS datasource) Constructs a content definition from data source. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the content style that should be used when including the content element that is referred to.This method returns the description of the content element.getType()
This method returns the type of the element.int
hashCode()
protected boolean
isEmpty()
toString()
Methods inherited from class com.aquima.interactions.composer.model.definition.CompositeNodeDefinition
addReference, getContents
Methods inherited from class com.aquima.interactions.composer.model.definition.ElementDefinition
getName, getPresentationStyles, isInternalDefinition, setInternalDefinition, setPresentationStyles
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aquima.interactions.composer.IElementDefinition
getName, getPresentationStyles
-
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
-
-
Method Details
-
getType
Description copied from interface:IElementDefinition
This method returns the type of the element.- Specified by:
getType
in interfaceIElementDefinition
- Returns:
- The type of the element the definition represents.
-
isEmpty
protected boolean isEmpty()- Overrides:
isEmpty
in classCompositeNodeDefinition
-
getDescription
This method returns the description of the content element.- Returns:
- The description of the content element.
-
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 classElementDefinition
-
equals
- Overrides:
equals
in classElementDefinition
-
toString
-