org.apache.poi.openxml4j.opc.internal
Class PackagePropertiesPart
- java.lang.Object
-
- org.apache.poi.openxml4j.opc.PackagePart
-
- org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart
-
- All Implemented Interfaces:
- java.lang.Comparable<PackagePart>, PackageProperties, RelationshipSource
public final class PackagePropertiesPart extends PackagePart implements PackageProperties
Represents the core properties part of a package.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringNAMESPACE_CP_URIstatic java.lang.StringNAMESPACE_DC_URIstatic java.lang.StringNAMESPACE_DCTERMS_URI-
Fields inherited from interface org.apache.poi.openxml4j.opc.PackageProperties
NAMESPACE_DC, NAMESPACE_DCTERMS
-
-
Constructor Summary
Constructors Constructor and Description PackagePropertiesPart(OPCPackage pack, PackagePartName partName)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Close this part : flush this part, close the input stream and output stream.voidflush()Flush the content of this part.Nullable<java.lang.String>getCategoryProperty()Get the category property.Nullable<java.lang.String>getContentStatusProperty()Get content status.Nullable<java.lang.String>getContentTypeProperty()Get content type.Nullable<java.util.Date>getCreatedProperty()Get created date.java.lang.StringgetCreatedPropertyString()Get created date formated into a String.Nullable<java.lang.String>getCreatorProperty()Get creator.Nullable<java.lang.String>getDescriptionProperty()Get description.Nullable<java.lang.String>getIdentifierProperty()Get identifier.Nullable<java.lang.String>getKeywordsProperty()Get keywords.Nullable<java.lang.String>getLanguageProperty()Get the language.Nullable<java.lang.String>getLastModifiedByProperty()Get the author of last modifications.Nullable<java.util.Date>getLastPrintedProperty()Get last printed date.java.lang.StringgetLastPrintedPropertyString()Get last printed date formated into a String.Nullable<java.util.Date>getModifiedProperty()Get modified date.java.lang.StringgetModifiedPropertyString()Get modified date formated into a String.Nullable<java.lang.String>getRevisionProperty()Get revision.Nullable<java.lang.String>getSubjectProperty()Get subject.Nullable<java.lang.String>getTitleProperty()Get title.Nullable<java.lang.String>getVersionProperty()Get version.booleanload(java.io.InputStream ios)Load the content of this part.booleansave(java.io.OutputStream zos)Save the content of this part and the associated relationships part (if this part own at least one relationship) into the specified output stream.voidsetCategoryProperty(java.lang.String category)Set the category.voidsetContentStatusProperty(java.lang.String contentStatus)Set the content status.voidsetContentTypeProperty(java.lang.String contentType)Set the content type.voidsetCreatedProperty(Nullable<java.util.Date> created)Set the created date.voidsetCreatedProperty(java.lang.String created)Set the created date.voidsetCreatorProperty(java.lang.String creator)Set the creator.voidsetDescriptionProperty(java.lang.String description)Set the description.voidsetIdentifierProperty(java.lang.String identifier)Set identifier.voidsetKeywordsProperty(java.lang.String keywords)Set keywords.voidsetLanguageProperty(java.lang.String language)Set language.voidsetLastModifiedByProperty(java.lang.String lastModifiedBy)Set last modifications author.voidsetLastPrintedProperty(Nullable<java.util.Date> lastPrinted)Set last printed date.voidsetLastPrintedProperty(java.lang.String lastPrinted)Set last printed date.voidsetModifiedProperty(Nullable<java.util.Date> modified)Set last modification date.voidsetModifiedProperty(java.lang.String modified)Set last modification date.voidsetRevisionProperty(java.lang.String revision)Set revision.voidsetSubjectProperty(java.lang.String subject)Set subject.voidsetTitleProperty(java.lang.String title)Set title.voidsetVersionProperty(java.lang.String version)Set version.-
Methods inherited from class org.apache.poi.openxml4j.opc.PackagePart
addExternalRelationship, addExternalRelationship, addRelationship, addRelationship, addRelationship, addRelationship, clear, clearRelationships, compareTo, getContentType, getContentTypeDetails, getInputStream, getOutputStream, getPackage, getPartName, getRelatedPart, getRelationship, getRelationships, getRelationshipsByType, getSize, hasRelationships, isDeleted, isRelationshipExists, isRelationshipPart, removeRelationship, setContentType, setDeleted, toString
-
-
-
-
Field Detail
-
NAMESPACE_DC_URI
public static final java.lang.String NAMESPACE_DC_URI
- See Also:
- Constant Field Values
-
NAMESPACE_CP_URI
public static final java.lang.String NAMESPACE_CP_URI
- See Also:
- Constant Field Values
-
NAMESPACE_DCTERMS_URI
public static final java.lang.String NAMESPACE_DCTERMS_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PackagePropertiesPart
public PackagePropertiesPart(OPCPackage pack, PackagePartName partName) throws InvalidFormatException
Constructor.- Parameters:
pack- Container package.partName- Name of this part.- Throws:
InvalidFormatException- Throws if the content is invalid.
-
-
Method Detail
-
getCategoryProperty
public Nullable<java.lang.String> getCategoryProperty()
Get the category property.- Specified by:
getCategoryPropertyin interfacePackageProperties- See Also:
PackageProperties.getCategoryProperty()
-
getContentStatusProperty
public Nullable<java.lang.String> getContentStatusProperty()
Get content status.- Specified by:
getContentStatusPropertyin interfacePackageProperties- See Also:
PackageProperties.getContentStatusProperty()
-
getContentTypeProperty
public Nullable<java.lang.String> getContentTypeProperty()
Get content type.- Specified by:
getContentTypePropertyin interfacePackageProperties- See Also:
PackageProperties.getContentTypeProperty()
-
getCreatedProperty
public Nullable<java.util.Date> getCreatedProperty()
Get created date.- Specified by:
getCreatedPropertyin interfacePackageProperties- See Also:
PackageProperties.getCreatedProperty()
-
getCreatedPropertyString
public java.lang.String getCreatedPropertyString()
Get created date formated into a String.- Returns:
- A string representation of the created date.
-
getCreatorProperty
public Nullable<java.lang.String> getCreatorProperty()
Get creator.- Specified by:
getCreatorPropertyin interfacePackageProperties- See Also:
PackageProperties.getCreatorProperty()
-
getDescriptionProperty
public Nullable<java.lang.String> getDescriptionProperty()
Get description.- Specified by:
getDescriptionPropertyin interfacePackageProperties- See Also:
PackageProperties.getDescriptionProperty()
-
getIdentifierProperty
public Nullable<java.lang.String> getIdentifierProperty()
Get identifier.- Specified by:
getIdentifierPropertyin interfacePackageProperties- See Also:
PackageProperties.getIdentifierProperty()
-
getKeywordsProperty
public Nullable<java.lang.String> getKeywordsProperty()
Get keywords.- Specified by:
getKeywordsPropertyin interfacePackageProperties- See Also:
PackageProperties.getKeywordsProperty()
-
getLanguageProperty
public Nullable<java.lang.String> getLanguageProperty()
Get the language.- Specified by:
getLanguagePropertyin interfacePackageProperties- See Also:
PackageProperties.getLanguageProperty()
-
getLastModifiedByProperty
public Nullable<java.lang.String> getLastModifiedByProperty()
Get the author of last modifications.- Specified by:
getLastModifiedByPropertyin interfacePackageProperties- See Also:
PackageProperties.getLastModifiedByProperty()
-
getLastPrintedProperty
public Nullable<java.util.Date> getLastPrintedProperty()
Get last printed date.- Specified by:
getLastPrintedPropertyin interfacePackageProperties- See Also:
PackageProperties.getLastPrintedProperty()
-
getLastPrintedPropertyString
public java.lang.String getLastPrintedPropertyString()
Get last printed date formated into a String.- Returns:
- A string representation of the last printed date.
-
getModifiedProperty
public Nullable<java.util.Date> getModifiedProperty()
Get modified date.- Specified by:
getModifiedPropertyin interfacePackageProperties- See Also:
PackageProperties.getModifiedProperty()
-
getModifiedPropertyString
public java.lang.String getModifiedPropertyString()
Get modified date formated into a String.- Returns:
- A string representation of the modified date.
-
getRevisionProperty
public Nullable<java.lang.String> getRevisionProperty()
Get revision.- Specified by:
getRevisionPropertyin interfacePackageProperties- See Also:
PackageProperties.getRevisionProperty()
-
getSubjectProperty
public Nullable<java.lang.String> getSubjectProperty()
Get subject.- Specified by:
getSubjectPropertyin interfacePackageProperties- See Also:
PackageProperties.getSubjectProperty()
-
getTitleProperty
public Nullable<java.lang.String> getTitleProperty()
Get title.- Specified by:
getTitlePropertyin interfacePackageProperties- See Also:
PackageProperties.getTitleProperty()
-
getVersionProperty
public Nullable<java.lang.String> getVersionProperty()
Get version.- Specified by:
getVersionPropertyin interfacePackageProperties- See Also:
PackageProperties.getVersionProperty()
-
setCategoryProperty
public void setCategoryProperty(java.lang.String category)
Set the category.- Specified by:
setCategoryPropertyin interfacePackageProperties- See Also:
PackageProperties.setCategoryProperty(java.lang.String)
-
setContentStatusProperty
public void setContentStatusProperty(java.lang.String contentStatus)
Set the content status.- Specified by:
setContentStatusPropertyin interfacePackageProperties- See Also:
PackageProperties.setContentStatusProperty(java.lang.String)
-
setContentTypeProperty
public void setContentTypeProperty(java.lang.String contentType)
Set the content type.- Specified by:
setContentTypePropertyin interfacePackageProperties- See Also:
PackageProperties.setContentTypeProperty(java.lang.String)
-
setCreatedProperty
public void setCreatedProperty(java.lang.String created)
Set the created date.- Specified by:
setCreatedPropertyin interfacePackageProperties- See Also:
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setCreatedProperty
public void setCreatedProperty(Nullable<java.util.Date> created)
Set the created date.- Specified by:
setCreatedPropertyin interfacePackageProperties- See Also:
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setCreatorProperty
public void setCreatorProperty(java.lang.String creator)
Set the creator.- Specified by:
setCreatorPropertyin interfacePackageProperties- See Also:
PackageProperties.setCreatorProperty(java.lang.String)
-
setDescriptionProperty
public void setDescriptionProperty(java.lang.String description)
Set the description.- Specified by:
setDescriptionPropertyin interfacePackageProperties- See Also:
PackageProperties.setDescriptionProperty(java.lang.String)
-
setIdentifierProperty
public void setIdentifierProperty(java.lang.String identifier)
Set identifier.- Specified by:
setIdentifierPropertyin interfacePackageProperties- See Also:
PackageProperties.setIdentifierProperty(java.lang.String)
-
setKeywordsProperty
public void setKeywordsProperty(java.lang.String keywords)
Set keywords.- Specified by:
setKeywordsPropertyin interfacePackageProperties- See Also:
PackageProperties.setKeywordsProperty(java.lang.String)
-
setLanguageProperty
public void setLanguageProperty(java.lang.String language)
Set language.- Specified by:
setLanguagePropertyin interfacePackageProperties- See Also:
PackageProperties.setLanguageProperty(java.lang.String)
-
setLastModifiedByProperty
public void setLastModifiedByProperty(java.lang.String lastModifiedBy)
Set last modifications author.- Specified by:
setLastModifiedByPropertyin interfacePackageProperties- See Also:
PackageProperties.setLastModifiedByProperty(java.lang.String)
-
setLastPrintedProperty
public void setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date.- Specified by:
setLastPrintedPropertyin interfacePackageProperties- See Also:
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setLastPrintedProperty
public void setLastPrintedProperty(Nullable<java.util.Date> lastPrinted)
Set last printed date.- Specified by:
setLastPrintedPropertyin interfacePackageProperties- See Also:
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setModifiedProperty
public void setModifiedProperty(java.lang.String modified)
Set last modification date.- Specified by:
setModifiedPropertyin interfacePackageProperties- See Also:
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setModifiedProperty
public void setModifiedProperty(Nullable<java.util.Date> modified)
Set last modification date.- Specified by:
setModifiedPropertyin interfacePackageProperties- See Also:
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
-
setRevisionProperty
public void setRevisionProperty(java.lang.String revision)
Set revision.- Specified by:
setRevisionPropertyin interfacePackageProperties- See Also:
PackageProperties.setRevisionProperty(java.lang.String)
-
setSubjectProperty
public void setSubjectProperty(java.lang.String subject)
Set subject.- Specified by:
setSubjectPropertyin interfacePackageProperties- See Also:
PackageProperties.setSubjectProperty(java.lang.String)
-
setTitleProperty
public void setTitleProperty(java.lang.String title)
Set title.- Specified by:
setTitlePropertyin interfacePackageProperties- See Also:
PackageProperties.setTitleProperty(java.lang.String)
-
setVersionProperty
public void setVersionProperty(java.lang.String version)
Set version.- Specified by:
setVersionPropertyin interfacePackageProperties- See Also:
PackageProperties.setVersionProperty(java.lang.String)
-
save
public boolean save(java.io.OutputStream zos)
Description copied from class:PackagePartSave the content of this part and the associated relationships part (if this part own at least one relationship) into the specified output stream.- Specified by:
savein classPackagePart- Parameters:
zos- Output stream to save this part.
-
load
public boolean load(java.io.InputStream ios)
Description copied from class:PackagePartLoad the content of this part.- Specified by:
loadin classPackagePart- Parameters:
ios- The input stream of the content to load.- Returns:
- true if the content has been successfully loaded, else false.
-
close
public void close()
Description copied from class:PackagePartClose this part : flush this part, close the input stream and output stream. After this method call, the part must be available for packaging.- Specified by:
closein classPackagePart
-
flush
public void flush()
Description copied from class:PackagePartFlush the content of this part. If the input stream and/or output stream as in a waiting state to read or write, the must to empty their respective buffer.- Specified by:
flushin classPackagePart
-
-
DataMelt 3.0 © DataMelt by jWork.ORG