Package com.independentsoft.office.odf
Class ChangeInfo
java.lang.Object
com.independentsoft.office.odf.ChangeInfo
- All Implemented Interfaces:
IContentElement
Specifies who made a change and when. It may also contain a comment on the change.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the name of the person who last modified a document, who created an annotation, who authored a change.getDate()Gets the date and time when the document was last modified, when an annotation was created, when a change was made.Contains the paragraphs, which is the basic unit of text in an OpenDocument file.Returns the parent content element.voidsetCreator(String creator)Sets the name of the person who last modified a document, who created an annotation, who authored a change.voidSets the date and time when the document was last modified, when an annotation was created, when a change was made.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current ChangeInfo object to its equivalent string representation.
-
Constructor Details
-
ChangeInfo
public ChangeInfo()Initializes a new instance of the ChangeInfo class.
-
-
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 interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ChangeInfo object to its equivalent string representation. -
getParagraphs
Contains the paragraphs, which is the basic unit of text in an OpenDocument file.- Returns:
- the paragraphs
-
getCreator
Gets the name of the person who last modified a document, who created an annotation, who authored a change.- Returns:
- the creator
-
setCreator
Sets the name of the person who last modified a document, who created an annotation, who authored a change.- Parameters:
creator- the new creator
-
getDate
Gets the date and time when the document was last modified, when an annotation was created, when a change was made.- Returns:
- the date
-
setDate
Sets the date and time when the document was last modified, when an annotation was created, when a change was made.- Parameters:
date- the new date
-