Package com.independentsoft.office.odf
Class Change
java.lang.Object
com.independentsoft.office.odf.Change
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent,IHeaderFooterContent
Represents a position in an empty region where text has been deleted.
-
Constructor Summary
ConstructorsConstructorDescriptionChange()Initializes a new instance of the Change class.Change(InternalXMLStreamReader reader)Instantiates a new change. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.getID()Gets an id to the element that contains change information.Returns the parent content element.voidSets an id to the element that contains change information.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current Change object to its equivalent string representation.
-
Constructor Details
-
Change
public Change()Initializes a new instance of the Change class. -
Change
Instantiates a new change.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIHeaderFooterContent- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceITextContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Change object to its equivalent string representation. -
getID
Gets an id to the element that contains change information.- Returns:
- the id
-
setID
Sets an id to the element that contains change information.- Parameters:
id- the new id
-