Class NumberTimeStyleElement

All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
OdfNumberTimeStyle

public abstract class NumberTimeStyleElement extends NumberDataStyleElementBase
DOM implementation of OpenDocument element <number:time-style>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • NumberTimeStyleElement

      public NumberTimeStyleElement(OdfFileDom ownerDoc)
      Create the instance of NumberTimeStyleElement
      Parameters:
      ownerDoc - The type is OdfFileDom
  • Method Details

    • getOdfName

      public OdfName getOdfName()
      Get the element name
      Specified by:
      getOdfName in class OdfElement
      Returns:
      return OdfName the name of element <number:time-style>.
    • getNumberFormatSourceAttribute

      public String getNumberFormatSourceAttribute()
      Receives the value of the ODFDOM attribute representation NumberFormatSourceAttribute , See @number:format-source
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setNumberFormatSourceAttribute

      public void setNumberFormatSourceAttribute(String numberFormatSourceValue)
      Sets the value of ODFDOM attribute representation NumberFormatSourceAttribute , See @number:format-source
      Parameters:
      numberFormatSourceValue - The type is String
    • getNumberTruncateOnOverflowAttribute

      public Boolean getNumberTruncateOnOverflowAttribute()
      Receives the value of the ODFDOM attribute representation NumberTruncateOnOverflowAttribute , See @number:truncate-on-overflow
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setNumberTruncateOnOverflowAttribute

      public void setNumberTruncateOnOverflowAttribute(Boolean numberTruncateOnOverflowValue)
      Sets the value of ODFDOM attribute representation NumberTruncateOnOverflowAttribute , See @number:truncate-on-overflow
      Parameters:
      numberTruncateOnOverflowValue - The type is Boolean
    • newNumberAmPmElement

      public NumberAmPmElement newNumberAmPmElement()
      Create child element <number:am-pm>.
      Returns:
      the element <number:am-pm>
    • newNumberHoursElement

      public NumberHoursElement newNumberHoursElement()
      Create child element <number:hours>.
      Returns:
      the element <number:hours>
    • newNumberMinutesElement

      public NumberMinutesElement newNumberMinutesElement()
      Create child element <number:minutes>.
      Returns:
      the element <number:minutes>
    • newNumberSecondsElement

      public NumberSecondsElement newNumberSecondsElement()
      Create child element <number:seconds>.
      Returns:
      the element <number:seconds>
    • accept

      public void accept(ElementVisitor visitor)
      Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.
      Overrides:
      accept in class OdfElement
      Parameters:
      visitor - an instance of DefaultElementVisitor