Package com.saperion.ngc.model.document
Class DocumentVariable
java.lang.Object
com.saperion.ngc.model.document.DocumentVariable
- All Implemented Interfaces:
Serializable
Represents a variable of a document.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentVariable
(String name, int type) Creates a new DocumentVariable.DocumentVariable
(String name, int type, Object value) Creates a new DocumentVariable. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentVariable
createNewStringVariable
(String name, String value) Creates a new variable of type String.getName()
int
getType()
getValue()
void
Sets the value of the variable.
-
Constructor Details
-
DocumentVariable
Creates a new DocumentVariable.- Parameters:
name
- the name of the variabletype
- the type of the variable (see FT_xxx constants inSaConstants
)value
- the value of the variable
-
DocumentVariable
Creates a new DocumentVariable.- Parameters:
name
- the name of the variabletype
- the type of the variable (see FT_xxx constants inSaConstants
)
-
-
Method Details
-
createNewStringVariable
Creates a new variable of type String. Same as calling the constructor with type =SaConstants.FT_STRING
.- Parameters:
name
- the name of the new variablevalue
- the value of the new variable- Returns:
- the new variable
-
getValue
- Returns:
- the value of the variable
-
setValue
Sets the value of the variable.- Parameters:
value
- the new value
-
getName
- Returns:
- the name of the variable
-
getType
public int getType()- Returns:
- the type of the variable
-
getStringValue
- Returns:
- the string-value of the variable
-