Class CreationTime

java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.CreationTime
All Implemented Interfaces:
IContentElement, IParagraphContent

public class CreationTime extends Field
Represents the date and time when a document was created.
  • Constructor Details

    • CreationTime

      public CreationTime()
      Initializes a new instance of the CreationTime class.
    • CreationTime

      public CreationTime(InternalXMLStreamReader reader) throws XMLStreamException
      Instantiates a new creation time.
      Parameters:
      reader - the reader
      Throws:
      XMLStreamException - the xML stream exception
  • Method Details

    • getContentElements

      public List<IContentElement> getContentElements()
      Returns all content elements.
      Specified by:
      getContentElements in interface IContentElement
      Specified by:
      getContentElements in class Field
      Returns:
      A collection of content elements.
    • getParent

      public IContentElement getParent()
      Returns the parent content element.
      Specified by:
      getParent in interface IContentElement
      Overrides:
      getParent in class Field
      Returns:
      the parent
    • setParent

      public void setParent(IContentElement parent)
      Sets the parent content element.
      Specified by:
      setParent in interface IContentElement
      Overrides:
      setParent in class Field
      Parameters:
      parent - the new parent
    • clone

      public CreationTime clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IParagraphContent
      Specified by:
      clone in class Field
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current CreationTime object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getStyle

      public String getStyle()
      Gets the data style to format a numeric value.
      Returns:
      the style
    • setStyle

      public void setStyle(String style)
      Sets the data style to format a numeric value.
      Parameters:
      style - the new style
    • getTimeValue

      public String getTimeValue()
      Gets the time at which a document was last edited.If no value is specified, whether the field is marked as fixed or not, the current time is assumed.
      Returns:
      the time value
    • setTimeValue

      public void setTimeValue(String timeValue)
      Sets the time at which a document was last edited.If no value is specified, whether the field is marked as fixed or not, the current time is assumed.
      Parameters:
      timeValue - the new time value
    • getValue

      public String getValue()
      Gets the creation time value.
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Sets the creation time value.
      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