Class AssetDefinition
java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.AssetDefinition
- All Implemented Interfaces:
IElementDefinition
,Serializable
This class defines an asset element that can be included in a container. An asset element may contain several
(dynamic) multilingual text objects, where each text is linked to a unique format.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AssetDefinition
(AssetDefinition other) protected
AssetDefinition
(IParserFactory factory, IAssetDS datasource) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the dynamic multilingual text object for the specified format.getType()
This method returns the type of the element.protected boolean
supportsFormat
(String format) Methods inherited from class com.aquima.interactions.composer.model.definition.ElementDefinition
equals, getName, getPresentationStyles, hashCode, isInternalDefinition, setInternalDefinition, setPresentationStyles
-
Constructor Details
-
AssetDefinition
-
AssetDefinition
-
-
Method Details
-
supportsFormat
-
getType
Description copied from interface:IElementDefinition
This method returns the type of the element.- Returns:
- The type of the element the definition represents.
-
getText
This method returns the dynamic multilingual text object for the specified format. When no text can be found for the specified format, an IllegalArgumentException will be thrown.- Parameters:
format
- The format for which the text should be returned.- Returns:
- The text object for the specified format.
-