Examples of DcTitleElement


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

   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getTitle() {

    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (titleEle != null) {
      return titleEle.getTextContent();
    }
    return null;
  }
View Full Code Here

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

   * <code>DcTitleElement</code> , See {@odf.element dc:title}.
   *
   * @param title set the specified document title. NULL will remove the element from the meta.xml.
   */
  public void setTitle(String title) {
    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (title == null) {
      if (titleEle != null) {
        mOfficeMetaElement.removeChild(titleEle);
      }
    } else {
      if (titleEle == null) {
        titleEle = mOfficeMetaElement.newDcTitleElement();
      }
      titleEle.setTextContent(title);
    }
  }
View Full Code Here

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

   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getTitle() {

    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (titleEle != null) {
      return titleEle.getTextContent();
    }
    return null;
  }
View Full Code Here

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

   * <code>DcTitleElement</code> , See {@odf.element dc:title}.
   *
   * @param title set the specified document title. NULL will remove the element from the meta.xml.
   */
  public void setTitle(String title) {
    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (title == null) {
      if (titleEle != null) {
        mOfficeMetaElement.removeChild(titleEle);
      }
    } else {
      if (titleEle == null) {
        titleEle = mOfficeMetaElement.newDcTitleElement();
      }
      titleEle.setTextContent(title);
    }
  }
View Full Code Here

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

   * <code>null</code>, if the element is not set.
   * @see org.odftoolkit.odfdom.dom.element.meta.DcTitleElement.
   */
  public String getTitle() {

    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (titleEle != null) {
      return titleEle.getTextContent();
    }
    return null;
  }
View Full Code Here

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

   *
   * @param title set the specified document title
   * @see org.odftoolkit.odfdom.dom.element.meta.DcTitleElement.
   */
  public void setTitle(String title) {
    DcTitleElement titleEle = OdfElement.findFirstChildNode(
        DcTitleElement.class, mOfficeMetaElement);
    if (titleEle == null) {
      titleEle = mOfficeMetaElement.newDcTitleElement();
    }
    titleEle.setTextContent(title);
  }
View Full Code Here

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

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