public final class PackagePropertiesPart extends PackagePart implements PackageProperties
Modifier and Type | Field and Description |
---|---|
protected java.util.Optional<java.lang.String> |
category
A categorization of the content of this package.
|
protected java.util.Optional<java.lang.String> |
contentStatus
The status of the content.
|
protected java.util.Optional<java.lang.String> |
contentType
The type of content represented, generally defined by a specific use and
intended audience.
|
protected java.util.Optional<java.util.Date> |
created
Date of creation of the resource.
|
protected java.util.Optional<java.lang.String> |
creator
An entity primarily responsible for making the content of the resource.
|
protected java.util.Optional<java.lang.String> |
description
An explanation of the content of the resource.
|
protected java.util.Optional<java.lang.String> |
identifier
An unambiguous reference to the resource within a given context.
|
protected java.util.Optional<java.lang.String> |
keywords
A delimited set of keywords to support searching and indexing.
|
protected java.util.Optional<java.lang.String> |
language
The language of the intellectual content of the resource.
|
protected java.util.Optional<java.lang.String> |
lastModifiedBy
The user who performed the last modification.
|
protected java.util.Optional<java.util.Date> |
lastPrinted
The date and time of the last printing.
|
protected java.util.Optional<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 java.util.Optional<java.lang.String> |
revision
The revision number.
|
protected java.util.Optional<java.lang.String> |
subject
The topic of the content of the resource.
|
protected java.util.Optional<java.lang.String> |
title
The name given to the resource.
|
protected java.util.Optional<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.
|
java.util.Optional<java.lang.String> |
getCategoryProperty()
Get the category property.
|
java.util.Optional<java.lang.String> |
getContentStatusProperty()
Get content status.
|
java.util.Optional<java.lang.String> |
getContentTypeProperty()
Get content type.
|
java.util.Optional<java.util.Date> |
getCreatedProperty()
Get created date.
|
java.lang.String |
getCreatedPropertyString()
Get created date formated into a String.
|
java.util.Optional<java.lang.String> |
getCreatorProperty()
Get creator.
|
java.util.Optional<java.lang.String> |
getDescriptionProperty()
Get description.
|
java.util.Optional<java.lang.String> |
getIdentifierProperty()
Get identifier.
|
protected java.io.InputStream |
getInputStreamImpl()
Method that gets the input stream for this part.
|
java.util.Optional<java.lang.String> |
getKeywordsProperty()
Get keywords.
|
java.util.Optional<java.lang.String> |
getLanguageProperty()
Get the language.
|
java.util.Optional<java.lang.String> |
getLastModifiedByProperty()
Get the author of last modifications.
|
java.util.Optional<java.util.Date> |
getLastPrintedProperty()
Get last printed date.
|
java.lang.String |
getLastPrintedPropertyString()
Get last printed date formated into a String.
|
java.util.Optional<java.util.Date> |
getModifiedProperty()
Get modified date.
|
java.lang.String |
getModifiedPropertyString()
Get modified date formated into a String.
|
protected java.io.OutputStream |
getOutputStreamImpl()
Method that gets the output stream for this part.
|
java.util.Optional<java.lang.String> |
getRevisionProperty()
Get revision.
|
java.util.Optional<java.lang.String> |
getSubjectProperty()
Get subject.
|
java.util.Optional<java.lang.String> |
getTitleProperty()
Get title.
|
java.util.Optional<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.util.Optional<java.lang.String> category)
Set the category.
|
void |
setCategoryProperty(java.lang.String category)
Set the category.
|
void |
setContentStatusProperty(java.util.Optional<java.lang.String> contentStatus)
Set the content status.
|
void |
setContentStatusProperty(java.lang.String contentStatus)
Set the content status.
|
void |
setContentTypeProperty(java.util.Optional<java.lang.String> contentType)
Set the content type.
|
void |
setContentTypeProperty(java.lang.String contentType)
Set the content type.
|
void |
setCreatedProperty(java.util.Optional<java.util.Date> created)
Set the created date.
|
void |
setCreatedProperty(java.lang.String created)
Set the created date.
|
void |
setCreatorProperty(java.util.Optional<java.lang.String> creator)
Set the creator.
|
void |
setCreatorProperty(java.lang.String creator)
Set the creator.
|
void |
setDescriptionProperty(java.util.Optional<java.lang.String> description)
Set the description.
|
void |
setDescriptionProperty(java.lang.String description)
Set the description.
|
void |
setIdentifierProperty(java.util.Optional<java.lang.String> identifier)
Set identifier.
|
void |
setIdentifierProperty(java.lang.String identifier)
Set identifier.
|
void |
setKeywordsProperty(java.util.Optional<java.lang.String> keywords)
Set keywords.
|
void |
setKeywordsProperty(java.lang.String keywords)
Set keywords.
|
void |
setLanguageProperty(java.util.Optional<java.lang.String> language)
Set language.
|
void |
setLanguageProperty(java.lang.String language)
Set language.
|
void |
setLastModifiedByProperty(java.util.Optional<java.lang.String> lastModifiedBy)
Set last modifications author.
|
void |
setLastModifiedByProperty(java.lang.String lastModifiedBy)
Set last modifications author.
|
void |
setLastPrintedProperty(java.util.Optional<java.util.Date> lastPrinted)
Set last printed date.
|
void |
setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date.
|
void |
setModifiedProperty(java.util.Optional<java.util.Date> modified)
Set last modification date.
|
void |
setModifiedProperty(java.lang.String modified)
Set last modification date.
|
void |
setRevisionProperty(java.util.Optional<java.lang.String> revision)
Set revision.
|
void |
setRevisionProperty(java.lang.String revision)
Set revision.
|
void |
setSubjectProperty(java.util.Optional<java.lang.String> subject)
Set subject.
|
void |
setSubjectProperty(java.lang.String subject)
Set subject.
|
void |
setTitleProperty(java.util.Optional<java.lang.String> title)
Set title.
|
void |
setTitleProperty(java.lang.String title)
Set title.
|
void |
setVersionProperty(java.util.Optional<java.lang.String> version)
Set version.
|
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 java.util.Optional<java.lang.String> category
protected java.util.Optional<java.lang.String> contentStatus
protected java.util.Optional<java.lang.String> contentType
protected java.util.Optional<java.util.Date> created
protected java.util.Optional<java.lang.String> creator
protected java.util.Optional<java.lang.String> description
protected java.util.Optional<java.lang.String> identifier
protected java.util.Optional<java.lang.String> keywords
protected java.util.Optional<java.lang.String> language
protected java.util.Optional<java.lang.String> lastModifiedBy
protected java.util.Optional<java.util.Date> lastPrinted
protected java.util.Optional<java.util.Date> modified
protected java.util.Optional<java.lang.String> revision
protected java.util.Optional<java.lang.String> subject
protected java.util.Optional<java.lang.String> title
protected java.util.Optional<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 java.util.Optional<java.lang.String> getCategoryProperty()
getCategoryProperty
in interface PackageProperties
PackageProperties.getCategoryProperty()
public java.util.Optional<java.lang.String> getContentStatusProperty()
getContentStatusProperty
in interface PackageProperties
PackageProperties.getContentStatusProperty()
public java.util.Optional<java.lang.String> getContentTypeProperty()
getContentTypeProperty
in interface PackageProperties
PackageProperties.getContentTypeProperty()
public java.util.Optional<java.util.Date> getCreatedProperty()
getCreatedProperty
in interface PackageProperties
PackageProperties.getCreatedProperty()
public java.lang.String getCreatedPropertyString()
public java.util.Optional<java.lang.String> getCreatorProperty()
getCreatorProperty
in interface PackageProperties
PackageProperties.getCreatorProperty()
public java.util.Optional<java.lang.String> getDescriptionProperty()
getDescriptionProperty
in interface PackageProperties
PackageProperties.getDescriptionProperty()
public java.util.Optional<java.lang.String> getIdentifierProperty()
getIdentifierProperty
in interface PackageProperties
PackageProperties.getIdentifierProperty()
public java.util.Optional<java.lang.String> getKeywordsProperty()
getKeywordsProperty
in interface PackageProperties
PackageProperties.getKeywordsProperty()
public java.util.Optional<java.lang.String> getLanguageProperty()
getLanguageProperty
in interface PackageProperties
PackageProperties.getLanguageProperty()
public java.util.Optional<java.lang.String> getLastModifiedByProperty()
getLastModifiedByProperty
in interface PackageProperties
PackageProperties.getLastModifiedByProperty()
public java.util.Optional<java.util.Date> getLastPrintedProperty()
getLastPrintedProperty
in interface PackageProperties
PackageProperties.getLastPrintedProperty()
public java.lang.String getLastPrintedPropertyString()
public java.util.Optional<java.util.Date> getModifiedProperty()
getModifiedProperty
in interface PackageProperties
PackageProperties.getModifiedProperty()
public java.lang.String getModifiedPropertyString()
public java.util.Optional<java.lang.String> getRevisionProperty()
getRevisionProperty
in interface PackageProperties
PackageProperties.getRevisionProperty()
public java.util.Optional<java.lang.String> getSubjectProperty()
getSubjectProperty
in interface PackageProperties
PackageProperties.getSubjectProperty()
public java.util.Optional<java.lang.String> getTitleProperty()
getTitleProperty
in interface PackageProperties
PackageProperties.getTitleProperty()
public java.util.Optional<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 setCategoryProperty(java.util.Optional<java.lang.String> category)
setCategoryProperty
in interface PackageProperties
PackageProperties.setCategoryProperty(java.util.Optional)
public void setContentStatusProperty(java.lang.String contentStatus)
setContentStatusProperty
in interface PackageProperties
PackageProperties.setContentStatusProperty(java.lang.String)
public void setContentStatusProperty(java.util.Optional<java.lang.String> contentStatus)
setContentStatusProperty
in interface PackageProperties
PackageProperties.setContentStatusProperty(java.util.Optional)
public void setContentTypeProperty(java.lang.String contentType)
setContentTypeProperty
in interface PackageProperties
PackageProperties.setContentTypeProperty(java.lang.String)
public void setContentTypeProperty(java.util.Optional<java.lang.String> contentType)
setContentTypeProperty
in interface PackageProperties
PackageProperties.setContentTypeProperty(java.util.Optional)
public void setCreatedProperty(java.lang.String created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(java.util.Optional)
public void setCreatedProperty(java.util.Optional<java.util.Date> created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(java.util.Optional)
public void setCreatorProperty(java.lang.String creator)
setCreatorProperty
in interface PackageProperties
PackageProperties.setCreatorProperty(java.lang.String)
public void setCreatorProperty(java.util.Optional<java.lang.String> creator)
setCreatorProperty
in interface PackageProperties
PackageProperties.setCreatorProperty(java.util.Optional)
public void setDescriptionProperty(java.lang.String description)
setDescriptionProperty
in interface PackageProperties
PackageProperties.setDescriptionProperty(java.lang.String)
public void setDescriptionProperty(java.util.Optional<java.lang.String> description)
setDescriptionProperty
in interface PackageProperties
PackageProperties.setDescriptionProperty(java.util.Optional)
public void setIdentifierProperty(java.lang.String identifier)
setIdentifierProperty
in interface PackageProperties
PackageProperties.setIdentifierProperty(java.lang.String)
public void setIdentifierProperty(java.util.Optional<java.lang.String> identifier)
setIdentifierProperty
in interface PackageProperties
PackageProperties.setIdentifierProperty(java.util.Optional)
public void setKeywordsProperty(java.lang.String keywords)
setKeywordsProperty
in interface PackageProperties
PackageProperties.setKeywordsProperty(java.lang.String)
public void setKeywordsProperty(java.util.Optional<java.lang.String> keywords)
setKeywordsProperty
in interface PackageProperties
PackageProperties.setKeywordsProperty(java.util.Optional)
public void setLanguageProperty(java.lang.String language)
setLanguageProperty
in interface PackageProperties
PackageProperties.setLanguageProperty(java.lang.String)
public void setLanguageProperty(java.util.Optional<java.lang.String> language)
setLanguageProperty
in interface PackageProperties
PackageProperties.setLanguageProperty(java.util.Optional)
public void setLastModifiedByProperty(java.lang.String lastModifiedBy)
setLastModifiedByProperty
in interface PackageProperties
PackageProperties.setLastModifiedByProperty(java.lang.String)
public void setLastModifiedByProperty(java.util.Optional<java.lang.String> lastModifiedBy)
setLastModifiedByProperty
in interface PackageProperties
PackageProperties.setLastModifiedByProperty(java.util.Optional)
public void setLastPrintedProperty(java.lang.String lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(java.util.Optional)
public void setLastPrintedProperty(java.util.Optional<java.util.Date> lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(java.util.Optional)
public void setModifiedProperty(java.lang.String modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(java.util.Optional)
public void setModifiedProperty(java.util.Optional<java.util.Date> modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(java.util.Optional)
public void setRevisionProperty(java.util.Optional<java.lang.String> revision)
setRevisionProperty
in interface PackageProperties
PackageProperties.setRevisionProperty(java.util.Optional)
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 setSubjectProperty(java.util.Optional<java.lang.String> subject)
setSubjectProperty
in interface PackageProperties
PackageProperties.setSubjectProperty(java.util.Optional)
public void setTitleProperty(java.lang.String title)
setTitleProperty
in interface PackageProperties
PackageProperties.setTitleProperty(java.lang.String)
public void setTitleProperty(java.util.Optional<java.lang.String> title)
setTitleProperty
in interface PackageProperties
PackageProperties.setTitleProperty(java.util.Optional)
public void setVersionProperty(java.lang.String version)
setVersionProperty
in interface PackageProperties
PackageProperties.setVersionProperty(java.lang.String)
public void setVersionProperty(java.util.Optional<java.lang.String> version)
setVersionProperty
in interface PackageProperties
PackageProperties.setVersionProperty(java.util.Optional)
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.POILogger
public boolean load(java.io.InputStream ios)
PackagePart
load
in class PackagePart
ios
- The input stream of the content to load.POILogger
public void close()
PackagePart
close
in class PackagePart
public void flush()
PackagePart
flush
in class PackagePart
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.