Package org.odftoolkit.odfdom.dom.element.meta

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaEditingCyclesElement


   * @return the number of times that the document has been edited;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public Integer getEditingCycles() {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCyclesEle != null) {
      return Integer.valueOf(editingCyclesEle.getTextContent());
    }
    return null;
  }
View Full Code Here


   * meta:editing-cycles}.
   *
   * @param editingCycles  set the specified edit times. NULL will remove the element from the meta.xml.
   */
  public void setEditingCycles(Integer editingCycles) {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCycles == null) {
      if (editingCyclesEle != null) {
        mOfficeMetaElement.removeChild(editingCyclesEle);
      }
    } else {
      if (editingCyclesEle == null) {
        editingCyclesEle = mOfficeMetaElement.newMetaEditingCyclesElement();
      }
      editingCyclesEle.setTextContent(String.valueOf(editingCycles));
    }
  }
View Full Code Here

   * @return the number of times that the document has been edited;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public Integer getEditingCycles() {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCyclesEle != null) {
      return Integer.valueOf(editingCyclesEle.getTextContent());
    }
    return null;
  }
View Full Code Here

   * meta:editing-cycles}.
   *
   * @param editingCycles  set the specified edit times. NULL will remove the element from the meta.xml.
   */
  public void setEditingCycles(Integer editingCycles) {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCycles == null) {
      if (editingCyclesEle != null) {
        mOfficeMetaElement.removeChild(editingCyclesEle);
      }
    } else {
      if (editingCyclesEle == null) {
        editingCyclesEle = mOfficeMetaElement.newMetaEditingCyclesElement();
      }
      editingCyclesEle.setTextContent(String.valueOf(editingCycles));
    }
  }
View Full Code Here

   * <p>
   * <code>null</code>, if the element is not set.
   * @see org.odftoolkit.odfdom.dom.element.meta.MetaEditingCyclesElement
   */
  public Integer getEditingCycles() {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCyclesEle != null) {
      return Integer.valueOf(editingCyclesEle.getTextContent());
    }
    return null;
  }
View Full Code Here

   *
   * @param editingCycles  set the specified edit times
   * @see org.odftoolkit.odfdom.dom.element.meta.MetaEditingCyclesElement
   */
  public void setEditingCycles(Integer editingCycles) {
    MetaEditingCyclesElement editingCyclesEle = OdfElement.findFirstChildNode(MetaEditingCyclesElement.class,
        mOfficeMetaElement);
    if (editingCyclesEle == null) {
      editingCyclesEle = mOfficeMetaElement.newMetaEditingCyclesElement();
    }
    editingCyclesEle.setTextContent(String.valueOf(editingCycles));
  }
View Full Code Here

   * Child element is new in Odf 1.2
   *
   * @return the element {@odf.element meta:editing-cycles}
   */
  public MetaEditingCyclesElement newMetaEditingCyclesElement() {
    MetaEditingCyclesElement metaEditingCycles = ((OdfFileDom) this.ownerDocument).newOdfElement(MetaEditingCyclesElement.class);
    this.appendChild(metaEditingCycles);
    return metaEditingCycles;
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.meta.MetaEditingCyclesElement

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.