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); }
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.
|
int |
getRevision()
Gets the revision number.
|
String |
getSubject()
Gets the subject.
|
String |
getTemplate()
Gets the template.
|
String |
getTitle()
Gets the title.
|
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 |
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, iterator, removeProperties, sanitize, setProperties, updateProperties
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.Copyright © 2020. All rights reserved.