Class SimpleVariableSetField
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.SimpleVariableSetField
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a simple variable.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the SimpleVariableSetField class.Instantiates a new simple variable set field. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the display of a variable set field.Gets a formula or expression used to compute the value of a field.getName()Gets the variable name.Returns the parent content element.getStyle()Gets the name of data style.getType()Gets the display of a variable set field.getValue()Gets the variable set.voidsetDisplayType(DisplayType displayType)Sets the display of a variable set field.voidsetFormula(String formula)Sets a formula or expression used to compute the value of a field.voidSets the variable name.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the name of data style.voidsetType(VariableValueType type)Sets the display of a variable set field.voidSets the variable set.toString()Converts the value of the current SimpleVariableSetField object to its equivalent string representation.
-
Constructor Details
-
SimpleVariableSetField
public SimpleVariableSetField()Initializes a new instance of the SimpleVariableSetField class. -
SimpleVariableSetField
Instantiates a new simple variable set field.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classField- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classField- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classField- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein classField- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current SimpleVariableSetField object to its equivalent string representation. -
getName
Gets the variable name.- Returns:
- the name
-
setName
Sets the variable name.- Parameters:
name- the new name
-
getType
Gets the display of a variable set field.- Returns:
- the type
-
setType
Sets the display of a variable set field.- Parameters:
type- the new type
-
getDisplayType
Gets the display of a variable set field.- Returns:
- the display type
-
setDisplayType
Sets the display of a variable set field.- Parameters:
displayType- the new display type
-
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
-
getStyle
Gets the name of data style.- Returns:
- the style
-
setStyle
Sets the name of data style.- Parameters:
style- the new style
-
getValue
Gets the variable set.- Returns:
- the value
-
setValue
Sets the variable set.- Parameters:
value- the new value
-