Class NumberNumberElement

All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class NumberNumberElement extends OdfElement
DOM implementation of OpenDocument element <number:number>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • NumberNumberElement

      public NumberNumberElement(OdfFileDom ownerDoc)
      Create the instance of NumberNumberElement
      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:number>.
    • getNumberDecimalPlacesAttribute

      public Integer getNumberDecimalPlacesAttribute()
      Receives the value of the ODFDOM attribute representation NumberDecimalPlacesAttribute , See @number:decimal-places
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setNumberDecimalPlacesAttribute

      public void setNumberDecimalPlacesAttribute(Integer numberDecimalPlacesValue)
      Sets the value of ODFDOM attribute representation NumberDecimalPlacesAttribute , See @number:decimal-places
      Parameters:
      numberDecimalPlacesValue - The type is Integer
    • getNumberDecimalReplacementAttribute

      public String getNumberDecimalReplacementAttribute()
      Receives the value of the ODFDOM attribute representation NumberDecimalReplacementAttribute , See @number:decimal-replacement
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setNumberDecimalReplacementAttribute

      public void setNumberDecimalReplacementAttribute(String numberDecimalReplacementValue)
      Sets the value of ODFDOM attribute representation NumberDecimalReplacementAttribute , See @number:decimal-replacement
      Parameters:
      numberDecimalReplacementValue - The type is String
    • getNumberDisplayFactorAttribute

      public Double getNumberDisplayFactorAttribute()
      Receives the value of the ODFDOM attribute representation NumberDisplayFactorAttribute , See @number:display-factor
      Returns:
      - the Double , the value or null, if the attribute is not set and no default value defined.
    • setNumberDisplayFactorAttribute

      public void setNumberDisplayFactorAttribute(Double numberDisplayFactorValue)
      Sets the value of ODFDOM attribute representation NumberDisplayFactorAttribute , See @number:display-factor
      Parameters:
      numberDisplayFactorValue - The type is Double
    • getNumberGroupingAttribute

      public Boolean getNumberGroupingAttribute()
      Receives the value of the ODFDOM attribute representation NumberGroupingAttribute , See @number:grouping
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setNumberGroupingAttribute

      public void setNumberGroupingAttribute(Boolean numberGroupingValue)
      Sets the value of ODFDOM attribute representation NumberGroupingAttribute , See @number:grouping
      Parameters:
      numberGroupingValue - The type is Boolean
    • getNumberMinIntegerDigitsAttribute

      public Integer getNumberMinIntegerDigitsAttribute()
      Receives the value of the ODFDOM attribute representation NumberMinIntegerDigitsAttribute , See @number:min-integer-digits
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setNumberMinIntegerDigitsAttribute

      public void setNumberMinIntegerDigitsAttribute(Integer numberMinIntegerDigitsValue)
      Sets the value of ODFDOM attribute representation NumberMinIntegerDigitsAttribute , See @number:min-integer-digits
      Parameters:
      numberMinIntegerDigitsValue - The type is Integer
    • newNumberEmbeddedTextElement

      public NumberEmbeddedTextElement newNumberEmbeddedTextElement(int numberPositionValue)
      Create child element <number:embedded-text>.
      Parameters:
      numberPositionValue - the Integer value of NumberPositionAttribute , see @number:position at specification
      Returns:
      the element <number:embedded-text>
    • 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