Examples of MetaEditingCyclesElement


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

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

   * 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

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

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

   * 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

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

   * <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

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

   *
   * @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

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

   * 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
Copyright © 2018 www.massapi.com. 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.