Package org.odftoolkit.odfdom.dom.attribute.number

Examples of org.odftoolkit.odfdom.dom.attribute.number.NumberFormatSourceAttribute


   * Receives the value of the ODFDOM attribute representation <code>NumberFormatSourceAttribute</code> , See {@odf.attribute number:format-source}
   *
   * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public String getNumberFormatSourceAttribute() {
    NumberFormatSourceAttribute attr = (NumberFormatSourceAttribute) getOdfAttribute(OdfDocumentNamespace.NUMBER, "format-source");
    if (attr != null) {
      return String.valueOf(attr.getValue());
    }
    return NumberFormatSourceAttribute.DEFAULT_VALUE;
  }
View Full Code Here


   * Sets the value of ODFDOM attribute representation <code>NumberFormatSourceAttribute</code> , See {@odf.attribute number:format-source}
   *
   * @param numberFormatSourceValue   The type is <code>String</code>
   */
  public void setNumberFormatSourceAttribute(String numberFormatSourceValue) {
    NumberFormatSourceAttribute attr = new NumberFormatSourceAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setValue(numberFormatSourceValue);
  }
View Full Code Here

   * Receives the value of the ODFDOM attribute representation <code>NumberFormatSourceAttribute</code> , See {@odf.attribute number:format-source}
   *
   * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public String getNumberFormatSourceAttribute() {
    NumberFormatSourceAttribute attr = (NumberFormatSourceAttribute) getOdfAttribute(OdfDocumentNamespace.NUMBER, "format-source");
    if (attr != null) {
      return String.valueOf(attr.getValue());
    }
    return NumberFormatSourceAttribute.DEFAULT_VALUE;
  }
View Full Code Here

   * Sets the value of ODFDOM attribute representation <code>NumberFormatSourceAttribute</code> , See {@odf.attribute number:format-source}
   *
   * @param numberFormatSourceValue   The type is <code>String</code>
   */
  public void setNumberFormatSourceAttribute(String numberFormatSourceValue) {
    NumberFormatSourceAttribute attr = new NumberFormatSourceAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setValue(numberFormatSourceValue);
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.attribute.number.NumberFormatSourceAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.