Class TextDefinition
java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.TextDefinition
- All Implemented Interfaces:
IElementDefinition
,Serializable
This class holds the definition of a single text element.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TextDefinition
(TextDefinition other) protected
TextDefinition
(IParserFactory parser, ITextDS datasource) Constructs a text definition from data source. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addContent
(String languageCode, TextRootDefinition rootNode) getContent
(ILanguage language) This method returns the root text node for the specified language.getContent
(String languageCode) This method returns the root text node for the specified language.getType()
This method returns the type of the element.protected boolean
isEmpty()
toString()
Methods inherited from class com.aquima.interactions.composer.model.definition.ElementDefinition
equals, getName, getPresentationStyles, hashCode, isInternalDefinition, setInternalDefinition, setPresentationStyles
-
Constructor Details
-
TextDefinition
Constructs a text definition from data source.- Parameters:
parser
- The expression parser that should be used to parse expressions.datasource
- The data source providing the text information.- Throws:
InitializationException
- This exception is thrown when the definition could not be initialized due to a fatal error.
-
TextDefinition
-
-
Method Details
-
isEmpty
protected boolean isEmpty() -
getContent
This method returns the root text node for the specified language.- Parameters:
language
- The language for which the content is requested.- Returns:
- The root text node for the specified language.
-
getContent
This method returns the root text node for the specified language.- Parameters:
languageCode
- The language code for which the content is requested.- Returns:
- The root text node for the specified language.
-
addContent
-
toString
-
getType
Description copied from interface:IElementDefinition
This method returns the type of the element.- Returns:
- The type of the element the definition represents.
-