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); }
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Gets the author of the project.
|
String |
getCategory()
Gets the category.
|
String |
getComments()
Gets the user comments.
|
String |
getCompany()
Gets the company.
|
Date |
getCreationDate()
Gets the creation date.
|
String |
getHyperlinkBase()
Gets the hyperlink base.
|
String |
getKeywords()
Gets the keywords.
|
String |
getLastAuthor()
Gets the last author.
|
Date |
getLastPrinted()
Gets the project's last print time.
|
Date |
getLastSaved()
Gets the date when the project was saved last time.
|
String |
getManager()
Gets the project manager.
|
int |
getRevision()
Gets the revision number.
|
int |
getSaveVersion()
Gets the version of Microsoft Office Project from which a project file was saved.
|
String |
getSubject()
Gets the subject.
|
String |
getTemplate()
Gets the template.
|
String |
getTitle()
Gets the title.
|
void |
set(String propertyName,
boolean value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
Date value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
double value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
int value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
String value)
Adds or replaces the metadata property with the specified name.
|
void |
setAuthor(String value)
Sets the author of the project.
|
void |
setCategory(String value)
Sets the category.
|
void |
setComments(String value)
Sets the user comments.
|
void |
setCompany(String value)
Sets the company.
|
void |
setCreationDate(Date value)
Sets the creation date.
|
void |
setHyperlinkBase(String value)
Sets the hyperlink base.
|
void |
setKeywords(String value)
Sets the keywords.
|
void |
setLastAuthor(String value)
Sets the last author.
|
void |
setLastPrinted(Date value)
Sets the project's last print time.
|
void |
setLastSaved(Date value)
Sets the date when the project was saved last time.
|
void |
setManager(String value)
Sets the project manager.
|
void |
setRevision(int value)
Sets the revision number.
|
void |
setSubject(String value)
Sets the subject.
|
void |
setTemplate(String value)
Sets the template.
|
void |
setTitle(String value)
Sets the title.
|
clear, clearBuiltInProperties, clearCustomProperties, remove
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final String getAuthor()
Gets the author of the project.
public final void setAuthor(String value)
Sets the author of the project.
value
- The author of the project.public final String getCategory()
Gets the category.
public final void setCategory(String value)
Sets the category.
value
- The category.public final String getComments()
Gets the user comments.
public final void setComments(String value)
Sets the user comments.
value
- The user comments.public final String getCompany()
Gets the company.
public final void setCompany(String value)
Sets the company.
value
- The company.public final Date getCreationDate()
Gets the creation date.
public final void setCreationDate(Date value)
Sets the creation date.
value
- The creation date.public final String getHyperlinkBase()
Gets the hyperlink base.
public final void setHyperlinkBase(String value)
Sets the hyperlink base.
value
- The hyperlink base.public final String getKeywords()
Gets the keywords.
public final void setKeywords(String value)
Sets the keywords.
value
- The keywords.public final String getLastAuthor()
Gets the last author.
public final void setLastAuthor(String value)
Sets the last author.
value
- The last author.public final int getRevision()
Gets the revision number.
public final void setRevision(int value)
Sets the revision number.
value
- The revision number.public final String getSubject()
Gets the subject.
public final void setSubject(String value)
Sets the subject.
value
- The subject.public final String getTitle()
Gets the title.
public final void setTitle(String value)
Sets the title.
value
- The title.public final String getTemplate()
Gets the template.
public final void setTemplate(String value)
Sets the template.
value
- The template.public final String getManager()
Gets the project manager.
public final void setManager(String value)
Sets the project manager.
value
- The project manager.public final Date getLastSaved()
Gets the date when the project was saved last time.
public final void setLastSaved(Date value)
Sets the date when the project was saved last time.
value
- The date when the project was saved last time.public final int getSaveVersion()
Gets the version of Microsoft Office Project from which a project file was saved.
public final Date getLastPrinted()
Gets the project's last print time.
public final void setLastPrinted(Date value)
Sets the project's last print time.
value
- The project's last print time.public final void set(String propertyName, String value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, double value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, boolean value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, Date value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, int value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.