com.groupdocs.metadata.core

Interfaces

Classes

Enums

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.

    Learn more

    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.
      • getManager

        public final String getManager()

        Gets the project manager.

        Returns:
        The project manager.
      • setManager

        public final void setManager(String value)

        Sets the project manager.

        Parameters:
        value - The project manager.
      • getLastSaved

        public final Date getLastSaved()

        Gets the date when the project was saved last time.

        Returns:
        The date when the project was saved last time.
      • setLastSaved

        public final void setLastSaved(Date value)

        Sets the date when the project was saved last time.

        Parameters:
        value - The date when the project was saved last time.
      • getSaveVersion

        public final int getSaveVersion()

        Gets the version of Microsoft Office Project from which a project file was saved.

        Returns:
        The version of Microsoft Office Project from which a project file was saved.
      • getLastPrinted

        public final Date getLastPrinted()

        Gets the project's last print time.

        Returns:
        The project's last print time.
      • setLastPrinted

        public final void setLastPrinted(Date value)

        Sets the project's last print time.

        Parameters:
        value - The project's last print time.
      • set

        public final void set(String propertyName,
                              String value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              double value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              boolean value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              Date value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              int value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.