Class AssetDefinition

java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.AssetDefinition
All Implemented Interfaces:
IElementDefinition, Serializable

public class AssetDefinition extends ElementDefinition
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 Details

  • Method Details

    • supportsFormat

      protected boolean supportsFormat(String format)
    • getType

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

      public IDynamicText getText(String format)
      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.