Class SequenceVariableDeclaration
java.lang.Object
com.independentsoft.office.odf.fields.SequenceVariableDeclaration
Represents declare sequence variables used to number items within an OpenDocument text document.Sequence variables are commonly used for sequential numbering. However, expression formulas can be included in sequence fields to support more advanced sequences.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the SequenceVariableDeclaration class.Instantiates a new sequence variable declaration. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.getName()Gets the unique name of a variable to be declared.intGets the numbering of a sequence by chapter.Gets the character used to separate values representing levels in an outline.voidSets the unique name of a variable to be declared.voidsetOutlineLevel(int outlineLevel)Sets the numbering of a sequence by chapter.voidsetSeparationCharacter(String separationCharacter)Sets the character used to separate values representing levels in an outline.toString()Converts the value of the current SequenceVariableDeclaration object to its equivalent string representation.
-
Constructor Details
-
SequenceVariableDeclaration
public SequenceVariableDeclaration()Initializes a new instance of the SequenceVariableDeclaration class. -
SequenceVariableDeclaration
Instantiates a new sequence 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 SequenceVariableDeclaration object to its equivalent string representation. -
getName
Gets the unique name of a variable to be declared.- Returns:
- the name
-
setName
Sets the unique name of a variable to be declared.- Parameters:
name- the new name
-
getOutlineLevel
public int getOutlineLevel()Gets the numbering of a sequence by chapter. This attribute specifies an outline level that determines which chapters to reference for the chapter-specific numbering. All chapters that are at or below the specified outline level reset the value of the sequence to zero, the default value. The chapter number of the last chapter at or below the specified outline level is prefixed to the sequence number. Choosing an outline level of zero results in a straight sequence of all sequence elements for that sequence variable.- Returns:
- the outline level
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)Sets the numbering of a sequence by chapter. This attribute specifies an outline level that determines which chapters to reference for the chapter-specific numbering. All chapters that are at or below the specified outline level reset the value of the sequence to zero, the default value. The chapter number of the last chapter at or below the specified outline level is prefixed to the sequence number. Choosing an outline level of zero results in a straight sequence of all sequence elements for that sequence variable.- Parameters:
outlineLevel- the new outline level
-
getSeparationCharacter
Gets the character used to separate values representing levels in an outline.- Returns:
- the separation character
-
setSeparationCharacter
Sets the character used to separate values representing levels in an outline.- Parameters:
separationCharacter- the new separation character
-