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

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


   * @return get the initial creator of the current document;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getInitialCreator() {
    MetaInitialCreatorElement iniCreatorEle = OdfElement.findFirstChildNode(MetaInitialCreatorElement.class,
        mOfficeMetaElement);
    if (iniCreatorEle != null) {
      return iniCreatorEle.getTextContent();
    }
    return null;
  }
View Full Code Here


   * meta:initial-creator}.
   *
   * @param initialCreator set the specified initial creator. NULL will remove the element from the meta.xml.
   */
  public void setInitialCreator(String initialCreator) {
    MetaInitialCreatorElement initialCreatorEle = OdfElement.findFirstChildNode(MetaInitialCreatorElement.class,
        mOfficeMetaElement);
    if (initialCreator == null) {
      if (initialCreatorEle != null) {
        mOfficeMetaElement.removeChild(initialCreatorEle);
      }
    } else {
      if (initialCreatorEle == null) {
        initialCreatorEle = mOfficeMetaElement.newMetaInitialCreatorElement();
      }
      initialCreatorEle.setTextContent(initialCreator);
    }
  }
View Full Code Here

   * @return get the initial creator of the current document;
   * <p>
   * <code>null</code>, if the element is not set.
   */
  public String getInitialCreator() {
    MetaInitialCreatorElement iniCreatorEle = OdfElement.findFirstChildNode(MetaInitialCreatorElement.class,
        mOfficeMetaElement);
    if (iniCreatorEle != null) {
      return iniCreatorEle.getTextContent();
    }
    return null;
  }
View Full Code Here

   * meta:initial-creator}.
   *
   * @param initialCreator set the specified initial creator. NULL will remove the element from the meta.xml.
   */
  public void setInitialCreator(String initialCreator) {
    MetaInitialCreatorElement initialCreatorEle = OdfElement.findFirstChildNode(MetaInitialCreatorElement.class,
        mOfficeMetaElement);
    if (initialCreator == null) {
      if (initialCreatorEle != null) {
        mOfficeMetaElement.removeChild(initialCreatorEle);
      }
    } else {
      if (initialCreatorEle == null) {
        initialCreatorEle = mOfficeMetaElement.newMetaInitialCreatorElement();
      }
      initialCreatorEle.setTextContent(initialCreator);
    }
  }
View Full Code Here

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

   *
   * @param initialCreator set the specified initial creator
   * @see org.odftoolkit.odfdom.dom.element.meta.MetaInitialCreatorElement.
   */
  public void setInitialCreator(String initialCreator) {
    MetaInitialCreatorElement iniCreatorEle = OdfElement.findFirstChildNode(MetaInitialCreatorElement.class,
        mOfficeMetaElement);
    if (iniCreatorEle == null) {
      iniCreatorEle = mOfficeMetaElement.newMetaInitialCreatorElement();
    }
    iniCreatorEle.setTextContent(initialCreator);
  }
View Full Code Here

   * Child element is new in Odf 1.2
   *
   * @return the element {@odf.element meta:initial-creator}
   */
  public MetaInitialCreatorElement newMetaInitialCreatorElement() {
    MetaInitialCreatorElement metaInitialCreator = ((OdfFileDom) this.ownerDocument).newOdfElement(MetaInitialCreatorElement.class);
    this.appendChild(metaInitialCreator);
    return metaInitialCreator;
  }
View Full Code Here

TOP

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

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.