public final class PackagePropertiesPart extends PackagePart implements PackageProperties
Modifier and Type | Field and Description |
---|---|
protected Nullable<java.lang.String> |
category
A categorization of the content of this package.
|
protected Nullable<java.lang.String> |
contentStatus
The status of the content.
|
protected Nullable<java.lang.String> |
contentType
The type of content represented, generally defined by a specific use and
intended audience.
|
protected Nullable<java.util.Date> |
created
Date of creation of the resource.
|
protected Nullable<java.lang.String> |
creator
An entity primarily responsible for making the content of the resource.
|
protected Nullable<java.lang.String> |
description
An explanation of the content of the resource.
|
protected Nullable<java.lang.String> |
identifier
An unambiguous reference to the resource within a given context.
|
protected Nullable<java.lang.String> |
keywords
A delimited set of keywords to support searching and indexing.
|
protected Nullable<java.lang.String> |
language
The language of the intellectual content of the resource.
|
protected Nullable<java.lang.String> |
lastModifiedBy
The user who performed the last modification.
|
protected Nullable<java.util.Date> |
lastPrinted
The date and time of the last printing.
|
protected Nullable<java.util.Date> |
modified
Date on which the resource was changed.
|
static java.lang.String |
NAMESPACE_CP_URI |
static java.lang.String |
NAMESPACE_DC_URI |
static java.lang.String |
NAMESPACE_DCTERMS_URI |
protected Nullable<java.lang.String> |
revision
The revision number.
|
protected Nullable<java.lang.String> |
subject
The topic of the content of the resource.
|
protected Nullable<java.lang.String> |
title
The name given to the resource.
|
protected Nullable<java.lang.String> |
version
The version number.
|
_container, _contentType, _partName
NAMESPACE_DC, NAMESPACE_DCTERMS
Constructor and Description |
---|
PackagePropertiesPart(OPCPackage pack,
PackagePartName partName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this part : flush this part, close the input stream and output
stream.
|
void |
flush()
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.String |
getCreatedPropertyString()
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.
|
protected java.io.InputStream |
getInputStreamImpl()
Abstract method that get the input stream of this part.
|
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.String |
getLastPrintedPropertyString()
Get last printed date formated into a String.
|
Nullable<java.util.Date> |
getModifiedProperty()
Get modified date.
|
java.lang.String |
getModifiedPropertyString()
Get modified date formated into a String.
|
protected java.io.OutputStream |
getOutputStreamImpl()
Abstract method that get the output stream of this part.
|
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.
|
boolean |
load(java.io.InputStream ios)
Load the content of this part.
|
boolean |
save(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.
|
void |
setCategoryProperty(java.lang.String category)
Set the category.
|
void |
setContentStatusProperty(java.lang.String contentStatus)
Set the content status.
|
void |
setContentTypeProperty(java.lang.String contentType)
Set the content type.
|
void |
setCreatedProperty(Nullable<java.util.Date> created)
Set the created date.
|
void |
setCreatedProperty(java.lang.String created)
Set the created date.
|
void |
setCreatorProperty(java.lang.String creator)
Set the creator.
|
void |
setDescriptionProperty(java.lang.String description)
Set the description.
|
void |
setIdentifierProperty(java.lang.String identifier)
Set identifier.
|
void |
setKeywordsProperty(java.lang.String keywords)
Set keywords.
|
void |
setLanguageProperty(java.lang.String language)
Set language.
|
void |
setLastModifiedByProperty(java.lang.String lastModifiedBy)
Set last modifications author.
|
void |
setLastPrintedProperty(Nullable<java.util.Date> lastPrinted)
Set last printed date.
|
void |
setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date.
|
void |
setModifiedProperty(Nullable<java.util.Date> modified)
Set last modification date.
|
void |
setModifiedProperty(java.lang.String modified)
Set last modification date.
|
void |
setRevisionProperty(java.lang.String revision)
Set revision.
|
void |
setSubjectProperty(java.lang.String subject)
Set subject.
|
void |
setTitleProperty(java.lang.String title)
Set title.
|
void |
setVersionProperty(java.lang.String version)
Set version.
|
addExternalRelationship, addExternalRelationship, addRelationship, addRelationship, addRelationship, addRelationship, clear, clearRelationships, compareTo, findExistingRelation, getContentType, getContentTypeDetails, getInputStream, getOutputStream, getPackage, getPartName, getRelatedPart, getRelationship, getRelationships, getRelationshipsByType, getSize, hasRelationships, isDeleted, isRelationshipExists, isRelationshipPart, removeRelationship, setContentType, setDeleted, toString
public static final java.lang.String NAMESPACE_DC_URI
public static final java.lang.String NAMESPACE_CP_URI
public static final java.lang.String NAMESPACE_DCTERMS_URI
protected Nullable<java.lang.String> category
protected Nullable<java.lang.String> contentStatus
protected Nullable<java.lang.String> contentType
protected Nullable<java.util.Date> created
protected Nullable<java.lang.String> creator
protected Nullable<java.lang.String> description
protected Nullable<java.lang.String> identifier
protected Nullable<java.lang.String> keywords
protected Nullable<java.lang.String> language
protected Nullable<java.lang.String> lastModifiedBy
protected Nullable<java.util.Date> lastPrinted
protected Nullable<java.util.Date> modified
protected Nullable<java.lang.String> revision
protected Nullable<java.lang.String> subject
protected Nullable<java.lang.String> title
protected Nullable<java.lang.String> version
public PackagePropertiesPart(OPCPackage pack, PackagePartName partName) throws InvalidFormatException
pack
- Container package.partName
- Name of this part.InvalidFormatException
- Throws if the content is invalid.public Nullable<java.lang.String> getCategoryProperty()
getCategoryProperty
in interface PackageProperties
PackageProperties.getCategoryProperty()
public Nullable<java.lang.String> getContentStatusProperty()
getContentStatusProperty
in interface PackageProperties
PackageProperties.getContentStatusProperty()
public Nullable<java.lang.String> getContentTypeProperty()
getContentTypeProperty
in interface PackageProperties
PackageProperties.getContentTypeProperty()
public Nullable<java.util.Date> getCreatedProperty()
getCreatedProperty
in interface PackageProperties
PackageProperties.getCreatedProperty()
public java.lang.String getCreatedPropertyString()
public Nullable<java.lang.String> getCreatorProperty()
getCreatorProperty
in interface PackageProperties
PackageProperties.getCreatorProperty()
public Nullable<java.lang.String> getDescriptionProperty()
getDescriptionProperty
in interface PackageProperties
PackageProperties.getDescriptionProperty()
public Nullable<java.lang.String> getIdentifierProperty()
getIdentifierProperty
in interface PackageProperties
PackageProperties.getIdentifierProperty()
public Nullable<java.lang.String> getKeywordsProperty()
getKeywordsProperty
in interface PackageProperties
PackageProperties.getKeywordsProperty()
public Nullable<java.lang.String> getLanguageProperty()
getLanguageProperty
in interface PackageProperties
PackageProperties.getLanguageProperty()
public Nullable<java.lang.String> getLastModifiedByProperty()
getLastModifiedByProperty
in interface PackageProperties
PackageProperties.getLastModifiedByProperty()
public Nullable<java.util.Date> getLastPrintedProperty()
getLastPrintedProperty
in interface PackageProperties
PackageProperties.getLastPrintedProperty()
public java.lang.String getLastPrintedPropertyString()
public Nullable<java.util.Date> getModifiedProperty()
getModifiedProperty
in interface PackageProperties
PackageProperties.getModifiedProperty()
public java.lang.String getModifiedPropertyString()
public Nullable<java.lang.String> getRevisionProperty()
getRevisionProperty
in interface PackageProperties
PackageProperties.getRevisionProperty()
public Nullable<java.lang.String> getSubjectProperty()
getSubjectProperty
in interface PackageProperties
PackageProperties.getSubjectProperty()
public Nullable<java.lang.String> getTitleProperty()
getTitleProperty
in interface PackageProperties
PackageProperties.getTitleProperty()
public Nullable<java.lang.String> getVersionProperty()
getVersionProperty
in interface PackageProperties
PackageProperties.getVersionProperty()
public void setCategoryProperty(java.lang.String category)
setCategoryProperty
in interface PackageProperties
PackageProperties.setCategoryProperty(java.lang.String)
public void setContentStatusProperty(java.lang.String contentStatus)
setContentStatusProperty
in interface PackageProperties
PackageProperties.setContentStatusProperty(java.lang.String)
public void setContentTypeProperty(java.lang.String contentType)
setContentTypeProperty
in interface PackageProperties
PackageProperties.setContentTypeProperty(java.lang.String)
public void setCreatedProperty(java.lang.String created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setCreatedProperty(Nullable<java.util.Date> created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setCreatorProperty(java.lang.String creator)
setCreatorProperty
in interface PackageProperties
PackageProperties.setCreatorProperty(java.lang.String)
public void setDescriptionProperty(java.lang.String description)
setDescriptionProperty
in interface PackageProperties
PackageProperties.setDescriptionProperty(java.lang.String)
public void setIdentifierProperty(java.lang.String identifier)
setIdentifierProperty
in interface PackageProperties
PackageProperties.setIdentifierProperty(java.lang.String)
public void setKeywordsProperty(java.lang.String keywords)
setKeywordsProperty
in interface PackageProperties
PackageProperties.setKeywordsProperty(java.lang.String)
public void setLanguageProperty(java.lang.String language)
setLanguageProperty
in interface PackageProperties
PackageProperties.setLanguageProperty(java.lang.String)
public void setLastModifiedByProperty(java.lang.String lastModifiedBy)
setLastModifiedByProperty
in interface PackageProperties
PackageProperties.setLastModifiedByProperty(java.lang.String)
public void setLastPrintedProperty(java.lang.String lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setLastPrintedProperty(Nullable<java.util.Date> lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setModifiedProperty(java.lang.String modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setModifiedProperty(Nullable<java.util.Date> modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setRevisionProperty(java.lang.String revision)
setRevisionProperty
in interface PackageProperties
PackageProperties.setRevisionProperty(java.lang.String)
public void setSubjectProperty(java.lang.String subject)
setSubjectProperty
in interface PackageProperties
PackageProperties.setSubjectProperty(java.lang.String)
public void setTitleProperty(java.lang.String title)
setTitleProperty
in interface PackageProperties
PackageProperties.setTitleProperty(java.lang.String)
public void setVersionProperty(java.lang.String version)
setVersionProperty
in interface PackageProperties
PackageProperties.setVersionProperty(java.lang.String)
protected java.io.InputStream getInputStreamImpl()
PackagePart
getInputStreamImpl
in class PackagePart
protected java.io.OutputStream getOutputStreamImpl()
PackagePart
getOutputStreamImpl
in class PackagePart
public boolean save(java.io.OutputStream zos)
PackagePart
save
in class PackagePart
zos
- Output stream to save this part.public boolean load(java.io.InputStream ios)
PackagePart
load
in class PackagePart
ios
- The input stream of the content to load.public void close()
PackagePart
close
in class PackagePart
public void flush()
PackagePart
flush
in class PackagePart
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.