Class ImageDefinition

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

public class ImageDefinition extends ElementDefinition
This text node definition is used to include an image from the context in the result of a text element.
Since:
6.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • ImageDefinition

      protected ImageDefinition(IImageDS datasource, IParserFactory parserFactory)
      Construct an image definition based on a datasource.
      Parameters:
      datasource - The data source providing the image information.
      parserFactory - The factory used for creating an expression factory.
      Throws:
      InitializationException - Is throw if the image definition could not be constructed.
    • ImageDefinition

      protected ImageDefinition(ImageDefinition other)
  • Method Details

    • getImageData

      public byte[] getImageData()
      This method returns the data of the image.
      Returns:
      Byte array containing the image raw data.
    • setImageData

      public void setImageData(byte[] data)
      This method assign a new value to the image data.
      Parameters:
      data - A byte array.
    • getImageType

      public ImageType getImageType()
      This method returns the image type.
      Returns:
      ImageType
    • getImageContentType

      public ImageContentType getImageContentType()
      This method returns the image content type.
      Returns:
      ImageContentType
    • getQRCodeContent

      public String getQRCodeContent()
      This method return the QR Code content of the image.
      Returns:
      String containing the QR Code content.
    • getExpressionParser

      public IExpressionParser getExpressionParser()
      This method returns the expression parser assigned to this image definition.
      Returns:
      The expression parser.
    • 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.