Package com.saperion.structures
Class Structure
java.lang.Object
com.saperion.structures.Structure
- All Implemented Interfaces:
Serializable
A structure bean for structuring content stream with their variables.
- Author:
- dam
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentStream[]
This structures contents.protected int
Selected image of this structure.Thus structures variables. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVariable
(String varName, String varValue) Adds a variable to this structure.int
Returns this structures variables.void
setSelectedImage
(int elementNumber)
-
Field Details
-
contentStreams
This structures contents. -
variables
Thus structures variables. -
selectedImage
protected int selectedImageSelected image of this structure.
-
-
Constructor Details
-
Structure
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
- Returns:
- content stream
-
setSelectedImage
public void setSelectedImage(int elementNumber) - Parameters:
elementNumber
- Element to mark
-
getSelectedImage
public int getSelectedImage()- Returns:
- Element to mark
-
getVariables
Returns this structures variables.- Returns:
- this structures variables.
-
addVariable
Adds a variable to this structure.- Parameters:
varName
- The name of the variable.varValue
- The value of the variable.- Returns:
- This structure.
-