Examples of DcDescriptionElement


Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   * @return the description of the current document;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getDescription() {
    DcDescriptionElement descEle = OdfElement.findFirstChildNode(
        DcDescriptionElement.class, mOfficeMetaElement);
    if (descEle != null) {
      return descEle.getTextContent();
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   * dc:description}.
   *
   * @param description set the specified document description. NULL will remove the element from the meta.xml.
   */
  public void setDescription(String description) {
    DcDescriptionElement descEle = OdfElement.findFirstChildNode(
        DcDescriptionElement.class, mOfficeMetaElement);
    if (description == null) {
      if (descEle != null) {
        mOfficeMetaElement.removeChild(descEle);
      }
    } else {
      if (descEle == null) {
        descEle = mOfficeMetaElement.newDcDescriptionElement();
      }
      descEle.setTextContent(description);
    }
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   * @return the description of the current document;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getDescription() {
    DcDescriptionElement descEle = OdfElement.findFirstChildNode(
        DcDescriptionElement.class, mOfficeMetaElement);
    if (descEle != null) {
      return descEle.getTextContent();
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   * dc:description}.
   *
   * @param description set the specified document description. NULL will remove the element from the meta.xml.
   */
  public void setDescription(String description) {
    DcDescriptionElement descEle = OdfElement.findFirstChildNode(
        DcDescriptionElement.class, mOfficeMetaElement);
    if (description == null) {
      if (descEle != null) {
        mOfficeMetaElement.removeChild(descEle);
      }
    } else {
      if (descEle == null) {
        descEle = mOfficeMetaElement.newDcDescriptionElement();
      }
      descEle.setTextContent(description);
    }
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

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

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   *
   * @param description set the specified document description
   * @see org.odftoolkit.odfdom.dom.element.meta.DcDescriptionElement.
   */
  public void setDescription(String description) {
    DcDescriptionElement descEle = OdfElement.findFirstChildNode(
        DcDescriptionElement.class, mOfficeMetaElement);
    if (descEle == null) {
      descEle = mOfficeMetaElement.newDcDescriptionElement();
    }
    descEle.setTextContent(description);
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDescriptionElement

   * Child element is new in Odf 1.2
   *
   * @return the element {@odf.element dc:description}
   */
  public DcDescriptionElement newDcDescriptionElement() {
    DcDescriptionElement dcDescription = ((OdfFileDom) this.ownerDocument).newOdfElement(DcDescriptionElement.class);
    this.appendChild(dcDescription);
    return dcDescription;
  }
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.