public final class PackagePropertiesPart extends PackagePart implements PackageProperties
Modifier and Type | Field and Description |
---|---|
protected Nullable<String> |
category
A categorization of the content of this package.
|
protected Nullable<String> |
contentStatus
The status of the content.
|
protected Nullable<String> |
contentType
The type of content represented, generally defined by a specific use and
intended audience.
|
protected Nullable<Date> |
created
Date of creation of the resource.
|
protected Nullable<String> |
creator
An entity primarily responsible for making the content of the resource.
|
protected Nullable<String> |
description
An explanation of the content of the resource.
|
protected Nullable<String> |
identifier
An unambiguous reference to the resource within a given context.
|
protected Nullable<String> |
keywords
A delimited set of keywords to support searching and indexing.
|
protected Nullable<String> |
language
The language of the intellectual content of the resource.
|
protected Nullable<String> |
lastModifiedBy
The user who performed the last modification.
|
protected Nullable<Date> |
lastPrinted
The date and time of the last printing.
|
protected Nullable<Date> |
modified
Date on which the resource was changed.
|
static String |
NAMESPACE_CP_URI |
static String |
NAMESPACE_DC_URI |
static String |
NAMESPACE_DCTERMS_URI |
static String |
NAMESPACE_XSI_URI |
protected Nullable<String> |
revision
The revision number.
|
protected Nullable<String> |
subject
The topic of the content of the resource.
|
protected Nullable<String> |
title
The name given to the resource.
|
protected Nullable<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<String> |
getCategoryProperty()
Get the category property.
|
Nullable<String> |
getContentStatusProperty()
Get content status.
|
Nullable<String> |
getContentTypeProperty()
Get content type.
|
Nullable<Date> |
getCreatedProperty()
Get created date.
|
String |
getCreatedPropertyString()
Get created date formated into a String.
|
Nullable<String> |
getCreatorProperty()
Get creator.
|
Nullable<String> |
getDescriptionProperty()
Get description.
|
Nullable<String> |
getIdentifierProperty()
Get identifier.
|
protected InputStream |
getInputStreamImpl()
Abtract method that get the input stream of this part.
|
Nullable<String> |
getKeywordsProperty()
Get keywords.
|
Nullable<String> |
getLanguageProperty()
Get the language.
|
Nullable<String> |
getLastModifiedByProperty()
Get the author of last modifications.
|
Nullable<Date> |
getLastPrintedProperty()
Get last printed date.
|
String |
getLastPrintedPropertyString()
Get last printed date formated into a String.
|
Nullable<Date> |
getModifiedProperty()
Get modified date.
|
String |
getModifiedPropertyString()
Get modified date formated into a String.
|
protected OutputStream |
getOutputStreamImpl()
Abstract method that get the output stream of this part.
|
Nullable<String> |
getRevisionProperty()
Get revision.
|
Nullable<String> |
getSubjectProperty()
Get subject.
|
Nullable<String> |
getTitleProperty()
Get title.
|
Nullable<String> |
getVersionProperty()
Get version.
|
boolean |
load(InputStream ios)
Load the content of this part.
|
boolean |
save(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(String category)
Set the category.
|
void |
setContentStatusProperty(String contentStatus)
Set the content status.
|
void |
setContentTypeProperty(String contentType)
Set the content type.
|
void |
setCreatedProperty(Nullable<Date> created)
Set the created date.
|
void |
setCreatedProperty(String created)
Set the created date.
|
void |
setCreatorProperty(String creator)
Set the creator.
|
void |
setDescriptionProperty(String description)
Set the description.
|
void |
setIdentifierProperty(String identifier)
Set identifier.
|
void |
setKeywordsProperty(String keywords)
Set keywords.
|
void |
setLanguageProperty(String language)
Set language.
|
void |
setLastModifiedByProperty(String lastModifiedBy)
Set last modifications author.
|
void |
setLastPrintedProperty(Nullable<Date> lastPrinted)
Set last printed date.
|
void |
setLastPrintedProperty(String lastPrinted)
Set last printed date.
|
void |
setModifiedProperty(Nullable<Date> modified)
Set last modification date.
|
void |
setModifiedProperty(String modified)
Set last modification date.
|
void |
setRevisionProperty(String revision)
Set revision.
|
void |
setSubjectProperty(String subject)
Set subject.
|
void |
setTitleProperty(String title)
Set title.
|
void |
setVersionProperty(String version)
Set version.
|
addExternalRelationship, addExternalRelationship, addRelationship, addRelationship, addRelationship, addRelationship, clearRelationships, getContentType, getInputStream, getOutputStream, getPackage, getPartName, getRelatedPart, getRelationship, getRelationships, getRelationshipsByType, hasRelationships, isDeleted, isRelationshipExists, isRelationshipPart, removeRelationship, setContentType, setDeleted, toString
public static final String NAMESPACE_DC_URI
public static final String NAMESPACE_CP_URI
public static final String NAMESPACE_DCTERMS_URI
public static final String NAMESPACE_XSI_URI
protected Nullable<String> category
protected Nullable<String> contentStatus
protected Nullable<String> contentType
protected Nullable<String> creator
protected Nullable<String> description
protected Nullable<String> identifier
protected Nullable<String> keywords
protected Nullable<String> language
protected Nullable<String> lastModifiedBy
protected Nullable<String> revision
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<String> getCategoryProperty()
getCategoryProperty
in interface PackageProperties
PackageProperties.getCategoryProperty()
public Nullable<String> getContentStatusProperty()
getContentStatusProperty
in interface PackageProperties
PackageProperties.getContentStatusProperty()
public Nullable<String> getContentTypeProperty()
getContentTypeProperty
in interface PackageProperties
PackageProperties.getContentTypeProperty()
public Nullable<Date> getCreatedProperty()
getCreatedProperty
in interface PackageProperties
PackageProperties.getCreatedProperty()
public String getCreatedPropertyString()
public Nullable<String> getCreatorProperty()
getCreatorProperty
in interface PackageProperties
PackageProperties.getCreatorProperty()
public Nullable<String> getDescriptionProperty()
getDescriptionProperty
in interface PackageProperties
PackageProperties.getDescriptionProperty()
public Nullable<String> getIdentifierProperty()
getIdentifierProperty
in interface PackageProperties
PackageProperties.getIdentifierProperty()
public Nullable<String> getKeywordsProperty()
getKeywordsProperty
in interface PackageProperties
PackageProperties.getKeywordsProperty()
public Nullable<String> getLanguageProperty()
getLanguageProperty
in interface PackageProperties
PackageProperties.getLanguageProperty()
public Nullable<String> getLastModifiedByProperty()
getLastModifiedByProperty
in interface PackageProperties
PackageProperties.getLastModifiedByProperty()
public Nullable<Date> getLastPrintedProperty()
getLastPrintedProperty
in interface PackageProperties
PackageProperties.getLastPrintedProperty()
public String getLastPrintedPropertyString()
public Nullable<Date> getModifiedProperty()
getModifiedProperty
in interface PackageProperties
PackageProperties.getModifiedProperty()
public String getModifiedPropertyString()
public Nullable<String> getRevisionProperty()
getRevisionProperty
in interface PackageProperties
PackageProperties.getRevisionProperty()
public Nullable<String> getSubjectProperty()
getSubjectProperty
in interface PackageProperties
PackageProperties.getSubjectProperty()
public Nullable<String> getTitleProperty()
getTitleProperty
in interface PackageProperties
PackageProperties.getTitleProperty()
public Nullable<String> getVersionProperty()
getVersionProperty
in interface PackageProperties
PackageProperties.getVersionProperty()
public void setCategoryProperty(String category)
setCategoryProperty
in interface PackageProperties
PackageProperties.setCategoryProperty(java.lang.String)
public void setContentStatusProperty(String contentStatus)
setContentStatusProperty
in interface PackageProperties
PackageProperties.setContentStatusProperty(java.lang.String)
public void setContentTypeProperty(String contentType)
setContentTypeProperty
in interface PackageProperties
PackageProperties.setContentTypeProperty(java.lang.String)
public void setCreatedProperty(String created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setCreatedProperty(Nullable<Date> created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setCreatorProperty(String creator)
setCreatorProperty
in interface PackageProperties
PackageProperties.setCreatorProperty(java.lang.String)
public void setDescriptionProperty(String description)
setDescriptionProperty
in interface PackageProperties
PackageProperties.setDescriptionProperty(java.lang.String)
public void setIdentifierProperty(String identifier)
setIdentifierProperty
in interface PackageProperties
PackageProperties.setIdentifierProperty(java.lang.String)
public void setKeywordsProperty(String keywords)
setKeywordsProperty
in interface PackageProperties
PackageProperties.setKeywordsProperty(java.lang.String)
public void setLanguageProperty(String language)
setLanguageProperty
in interface PackageProperties
PackageProperties.setLanguageProperty(java.lang.String)
public void setLastModifiedByProperty(String lastModifiedBy)
setLastModifiedByProperty
in interface PackageProperties
PackageProperties.setLastModifiedByProperty(java.lang.String)
public void setLastPrintedProperty(String lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setLastPrintedProperty(Nullable<Date> lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setModifiedProperty(String modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setModifiedProperty(Nullable<Date> modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.zkoss.poi.openxml4j.util.Nullable)
public void setRevisionProperty(String revision)
setRevisionProperty
in interface PackageProperties
PackageProperties.setRevisionProperty(java.lang.String)
public void setSubjectProperty(String subject)
setSubjectProperty
in interface PackageProperties
PackageProperties.setSubjectProperty(java.lang.String)
public void setTitleProperty(String title)
setTitleProperty
in interface PackageProperties
PackageProperties.setTitleProperty(java.lang.String)
public void setVersionProperty(String version)
setVersionProperty
in interface PackageProperties
PackageProperties.setVersionProperty(java.lang.String)
protected InputStream getInputStreamImpl()
PackagePart
getInputStreamImpl
in class PackagePart
protected OutputStream getOutputStreamImpl()
PackagePart
getOutputStreamImpl
in class PackagePart
public boolean save(OutputStream zos)
PackagePart
save
in class PackagePart
zos
- Output stream to save this part.public boolean load(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 © 2020. All rights reserved.