Class DocumentVariable

java.lang.Object
com.saperion.ngc.model.document.DocumentVariable
All Implemented Interfaces:
Serializable

public class DocumentVariable extends Object implements Serializable
Represents a variable of a document.
See Also:
  • Constructor Details

    • DocumentVariable

      public DocumentVariable(String name, int type, Object value)
      Creates a new DocumentVariable.
      Parameters:
      name - the name of the variable
      type - the type of the variable (see FT_xxx constants in SaConstants)
      value - the value of the variable
    • DocumentVariable

      public DocumentVariable(String name, int type)
      Creates a new DocumentVariable.
      Parameters:
      name - the name of the variable
      type - the type of the variable (see FT_xxx constants in SaConstants)
  • Method Details

    • createNewStringVariable

      public static DocumentVariable createNewStringVariable(String name, String value)
      Creates a new variable of type String. Same as calling the constructor with type = SaConstants.FT_STRING.
      Parameters:
      name - the name of the new variable
      value - the value of the new variable
      Returns:
      the new variable
    • getValue

      public Object getValue()
      Returns:
      the value of the variable
    • setValue

      public void setValue(Object value)
      Sets the value of the variable.
      Parameters:
      value - the new value
    • getName

      public String getName()
      Returns:
      the name of the variable
    • getType

      public int getType()
      Returns:
      the type of the variable
    • getStringValue

      public String getStringValue()
      Returns:
      the string-value of the variable