Examples of DcSubjectElement


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

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

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

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

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

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

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

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

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

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

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

   *
   * @param subject set the specified document subject.
   * @see org.odftoolkit.odfdom.dom.element.meta.DcSubjectElement.
   */
  public void setSubject(String subject) {
    DcSubjectElement subjectEle = OdfElement.findFirstChildNode(
        DcSubjectElement.class, mOfficeMetaElement);
    if (subjectEle == null) {
      subjectEle = mOfficeMetaElement.newDcSubjectElement();
    }
    subjectEle.setTextContent(subject);
  }
View Full Code Here

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

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