Class UserVariableDeclaration
java.lang.Object
com.independentsoft.office.odf.fields.UserVariableDeclaration
Used to specify user variable values that are displayed using the UserVariableGetField objects.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the UserVariableDeclaration class.Instantiates a new user variable declaration. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets a formula or expression used to compute the value of a field.getName()Gets the unique name for a user defined field declaration.getType()Gets the variable type.getValue()Gets user variable declaration.voidsetFormula(String formula)Sets a formula or expression used to compute the value of a field.voidSets the unique name for a user defined field declaration.voidsetType(VariableValueType type)Sets the variable type.voidSets user variable declaration.toString()Converts the value of the current UserVariableDeclaration object to its equivalent string representation.
-
Constructor Details
-
UserVariableDeclaration
public UserVariableDeclaration()Initializes a new instance of the UserVariableDeclaration class. -
UserVariableDeclaration
Instantiates a new user variable declaration.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current UserVariableDeclaration object to its equivalent string representation. -
getName
Gets the unique name for a user defined field declaration.- Returns:
- the name
-
setName
Sets the unique name for a user defined field declaration.- Parameters:
name- the new name
-
getFormula
Gets a formula or expression used to compute the value of a field.- Returns:
- the formula
-
setFormula
Sets a formula or expression used to compute the value of a field.- Parameters:
formula- the new formula
-
getType
Gets the variable type.- Returns:
- the type
-
setType
Sets the variable type.- Parameters:
type- the new type
-
getValue
Gets user variable declaration.- Returns:
- the value
-
setValue
Sets user variable declaration.- Parameters:
value- the new value
-