Package com.independentsoft.office.odf
Class ChangedRegion
java.lang.Object
com.independentsoft.office.odf.ChangedRegion
- All Implemented Interfaces:
IContentElement
Represents a list of tracked changes for any changed region of a document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Deletion object to the content.voidadd(FormatChange formatChange)Adds a FormatChange object to the content.voidadd(IChangedRegionContent change)Adds an IChangedRegionContent object to the content.voidAdds a Insertion object to the content.clone()Creates a new object that is a deep copy of the current instance.Contains a collection of IChangedRegionContent objects.Returns all content elements.getID()Gets the identifier.Returns the parent content element.voidSets the identifier.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current ChangedRegion object to its equivalent string representation.
-
Constructor Details
-
ChangedRegion
public ChangedRegion()Initializes a new instance of the ChangedRegion class.
-
-
Method Details
-
add
Adds a Deletion object to the content.- Parameters:
deletion- the deletion
-
add
Adds a Insertion object to the content.- Parameters:
insertion- the insertion
-
add
Adds a FormatChange object to the content.- Parameters:
formatChange- the format change
-
add
Adds an IChangedRegionContent object to the content.- Parameters:
change- the change
-
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 interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ChangedRegion object to its equivalent string representation. -
getContent
Contains a collection of IChangedRegionContent objects.- Returns:
- the content
-
getID
Gets the identifier.- Returns:
- the id
-
setID
Sets the identifier.- Parameters:
id- the new id
-