Class CharacterCount
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.CharacterCount
- All Implemented Interfaces:
IContentElement,IParagraphContent
Specifies the number of characters that an OpenDocument producer has counted for a document.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the CharacterCount class.CharacterCount(InternalXMLStreamReader reader)Instantiates a new character count. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Specifies the numbering sequence.Returns the parent content element.getValue()Gets the number of characters that an OpenDocument producer has counted for a document.voidsetNumberFormat(String numberFormat)Specifies the numbering sequence.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the number of characters that an OpenDocument producer has counted for a document.toString()Converts the value of the current CharacterCount object to its equivalent string representation.
-
Constructor Details
-
CharacterCount
public CharacterCount()Initializes a new instance of the CharacterCount class. -
CharacterCount
Instantiates a new character count.- 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 CharacterCount object to its equivalent string representation. -
getNumberFormat
Specifies the numbering sequence. The defined values are: - 1: Hindu-Arabic number sequence starts with 1. - a: number sequence of lowercase Modern Latin basic alphabet characters starts with "a". - A: number sequence of uppercase Modern Latin basic alphabet characters starts with "A". - i: number sequence of lowercase Roman numerals starts with "i". - I: number sequence of uppercase Roman numerals start with "I".- Returns:
- the number format
-
setNumberFormat
Specifies the numbering sequence. The defined values are: - 1: Hindu-Arabic number sequence starts with 1. - a: number sequence of lowercase Modern Latin basic alphabet characters starts with "a". - A: number sequence of uppercase Modern Latin basic alphabet characters starts with "A". - i: number sequence of lowercase Roman numerals starts with "i". - I: number sequence of uppercase Roman numerals start with "I".- Parameters:
numberFormat- the new number format
-
getValue
Gets the number of characters that an OpenDocument producer has counted for a document.- Returns:
- the value
-
setValue
Sets the number of characters that an OpenDocument producer has counted for a document.- Parameters:
value- the new value
-