com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class ProjectManagementPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public final class ProjectManagementPackage
    extends DocumentPackage

    Represents a native metadata package in a project management file.

    This code sample demonstrates how to update built-in properties in a ProjectManagement document.

    try (Metadata metadata = new Metadata(Constants.InputMpp)) {
         ProjectManagementRootPackage root = metadata.getRootPackageGeneric();
         root.getDocumentProperties().setAuthor("test author");
         root.getDocumentProperties().setCreationDate(new Date());
         root.getDocumentProperties().setCompany("GroupDocs");
         root.getDocumentProperties().setComments("test comment");
         root.getDocumentProperties().setKeywords("metadata, built-in, update");
         // ...
         metadata.save(Constants.OutputMpp);
     }
     
    • Method Detail

      • getAuthor

        public final String getAuthor()

        Gets the author of the project.

        Returns:
        The author of the project.
      • setAuthor

        public final void setAuthor(String value)

        Sets the author of the project.

        Parameters:
        value - The author of the project.
      • getCategory

        public final String getCategory()

        Gets the category.

        Returns:
        The category.
      • setCategory

        public final void setCategory(String value)

        Sets the category.

        Parameters:
        value - The category.
      • getComments

        public final String getComments()

        Gets the user comments.

        Returns:
        The user comments.
      • setComments

        public final void setComments(String value)

        Sets the user comments.

        Parameters:
        value - The user comments.
      • getCompany

        public final String getCompany()

        Gets the company.

        Returns:
        The company.
      • setCompany

        public final void setCompany(String value)

        Sets the company.

        Parameters:
        value - The company.
      • getCreationDate

        public final Date getCreationDate()

        Gets the creation date.

        Returns:
        The creation date.
      • setCreationDate

        public final void setCreationDate(Date value)

        Sets the creation date.

        Parameters:
        value - The creation date.
      • getHyperlinkBase

        public final String getHyperlinkBase()

        Gets the hyperlink base.

        Returns:
        The hyperlink base.
      • setHyperlinkBase

        public final void setHyperlinkBase(String value)

        Sets the hyperlink base.

        Parameters:
        value - The hyperlink base.
      • getKeywords

        public final String getKeywords()

        Gets the keywords.

        Returns:
        The keywords.
      • setKeywords

        public final void setKeywords(String value)

        Sets the keywords.

        Parameters:
        value - The keywords.
      • getLastAuthor

        public final String getLastAuthor()

        Gets the last author.

        Returns:
        The last author.
      • setLastAuthor

        public final void setLastAuthor(String value)

        Sets the last author.

        Parameters:
        value - The last author.
      • getRevision

        public final int getRevision()

        Gets the revision number.

        Returns:
        The revision number.
      • setRevision

        public final void setRevision(int value)

        Sets the revision number.

        Parameters:
        value - The revision number.
      • getSubject

        public final String getSubject()

        Gets the subject.

        Returns:
        The subject.
      • setSubject

        public final void setSubject(String value)

        Sets the subject.

        Parameters:
        value - The subject.
      • getTitle

        public final String getTitle()

        Gets the title.

        Returns:
        The title.
      • setTitle

        public final void setTitle(String value)

        Sets the title.

        Parameters:
        value - The title.
      • getTemplate

        public final String getTemplate()

        Gets the template.

        Returns:
        The template.
      • setTemplate

        public final void setTemplate(String value)

        Sets the template.

        Parameters:
        value - The template.