Class Structure

java.lang.Object
com.saperion.structures.Structure
All Implemented Interfaces:
Serializable

public class Structure extends Object implements Serializable
A structure bean for structuring content stream with their variables.
Author:
dam
See Also:
  • Field Details

    • contentStreams

      protected transient ContentStream[] contentStreams
      This structures contents.
    • variables

      protected Map<String,String> variables
      Thus structures variables.
    • selectedImage

      protected int selectedImage
      Selected image of this structure.
  • Constructor Details

    • Structure

      public Structure(@Nonnull ContentStream[] content)
      Creates a new UpdateDocumentInfo.
      Parameters:
      content - Multiple content data. If the array is empty, all content of the document will be removed. If null, the content will not be changed. Otherwise only the contained elements will be replaced.
  • Method Details

    • getContent

      public ContentStream[] getContent()
      Returns:
      content stream
    • setSelectedImage

      public void setSelectedImage(int elementNumber)
      Parameters:
      elementNumber - Element to mark
    • getSelectedImage

      public int getSelectedImage()
      Returns:
      Element to mark
    • getVariables

      public Map<String,String> getVariables()
      Returns this structures variables.
      Returns:
      this structures variables.
    • addVariable

      public Structure addVariable(String varName, String varValue)
      Adds a variable to this structure.
      Parameters:
      varName - The name of the variable.
      varValue - The value of the variable.
      Returns:
      This structure.