Class EditDuration
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.EditDuration
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents the total time spent editing a document.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the EditDuration class.EditDuration(InternalXMLStreamReader reader)Instantiates a new edits the duration. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the value of EditDuration object if its value is fixed.Returns the parent content element.getStyle()Gets the name of a data style.getValue()Gets the total time spent editing a document.booleanisFixed()Specifies whether the value of a field element is fixed.voidsetDuration(String duration)Sets the value of EditDuration object if its value is fixed.voidsetFixed(boolean isFixed)Specifies whether the value of a field element is fixed.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the name of a data style.voidSets the total time spent editing a document.toString()Converts the value of the current EditDuration object to its equivalent string representation.
-
Constructor Details
-
EditDuration
public EditDuration()Initializes a new instance of the EditDuration class. -
EditDuration
Instantiates a new edits the duration.- 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 EditDuration object to its equivalent string representation. -
getStyle
Gets the name of a data style.- Returns:
- the style
-
setStyle
Sets the name of a data style.- Parameters:
style- the new style
-
getDuration
Gets the value of EditDuration object if its value is fixed.- Returns:
- the duration
-
setDuration
Sets the value of EditDuration object if its value is fixed.- Parameters:
duration- the new duration
-
getValue
Gets the total time spent editing a document.- Returns:
- the value
-
setValue
Sets the total time spent editing a document.- Parameters:
value- the new value
-
isFixed
public boolean isFixed()Specifies whether the value of a field element is fixed. The defined values are: - false: value of field element may be replaced with a new value in future edits. - true: value of field element shall be preserved in future edits.- Returns:
- true, if is fixed
-
setFixed
public void setFixed(boolean isFixed)Specifies whether the value of a field element is fixed. The defined values are: - false: value of field element may be replaced with a new value in future edits. - true: value of field element shall be preserved in future edits.- Parameters:
isFixed- the new fixed
-