java.lang.Object
org.verapdf.xmp.impl.VeraPDFMeta
- Author:
- Maksim Bezrukov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionaddDeclarations(Set<String> conformsToURIs) booleancontainsDeclaration(String conformsTo) booleancontainsPropertiesFromNamespace(String nameSpaceURI) static VeraPDFMetacreate()voidbooleanbooleangetProperty(String namespaceURI, String name) getTitle()static VeraPDFMetaparse(InputStream in) static voidserialize(VeraPDFMeta veraPDFMeta, OutputStream out) setCreateDate(Calendar createDate) setCreator(List<String> creator) setCreatorTool(String creatorTool) setDescription(String description) setIdentificationRevisionYear(String namespaceURI, String identificationConformance) setKeywords(String keywords) setModifyDate(Calendar modifyDate) setPDFAIdentificationConformance(String identificationConformance) setPDFAIdentificationPart(Integer identificationPart) setPDFUAIdentificationPart(Integer identificationPart) setProducer(String producer) setPropertyPrefix(String namespaceURI, String propertyName, String prefix) Sets the namespace prefix for the given property.
-
Field Details
-
PDFAID_PREFIX
- See Also:
-
PDFUAID_PREFIX
- See Also:
-
PDFA_EXTENSION_PREFIX
- See Also:
-
DC_PREFIX
- See Also:
-
PDFD_PREFIX
- See Also:
-
SCHEMAS
- See Also:
-
CONFORMANCE
- See Also:
-
PART
- See Also:
-
REVISION_YEAR
- See Also:
-
CORR
- See Also:
-
AMD
- See Also:
-
DECLARATIONS
- See Also:
-
CONFORMS_TO
- See Also:
-
PDFA_DECLARATIONS
- See Also:
-
WTPDF_ACCESSIBILITY_DECLARATION
- See Also:
-
WTPDF_REUSE_DECLARATION
- See Also:
-
-
Method Details
-
getExtensionSchema
- Throws:
XMPException
-
createExtensionSchema
- Throws:
XMPException
-
create
-
parse
- Throws:
XMPException
-
serialize
- Throws:
XMPException
-
getProperties
-
getPacketHeader
-
getActualEncoding
-
getExtensionSchemasNode
-
getProperty
-
setPropertyPrefix
public VeraPDFMeta setPropertyPrefix(String namespaceURI, String propertyName, String prefix) throws XMPException Sets the namespace prefix for the given property. Because XMP stores a single prefix per schema, this also updates all top-level properties in the namespace.- Parameters:
namespaceURI- the namespace URI containing the propertypropertyName- the property nameprefix- the namespace prefix, with or without a trailing colon- Throws:
XMPException
-
deletePDFAIdentificationSchema
public boolean deletePDFAIdentificationSchema() -
deletePDFUAIdentificationSchema
public boolean deletePDFUAIdentificationSchema() -
containsPropertiesFromNamespace
-
getTitle
- Throws:
XMPException
-
setTitle
- Throws:
XMPException
-
getCreator
- Throws:
XMPException
-
setCreator
- Throws:
XMPException
-
getDescription
- Throws:
XMPException
-
setDescription
- Throws:
XMPException
-
getKeywords
- Throws:
XMPException
-
setKeywords
- Throws:
XMPException
-
getCreatorTool
- Throws:
XMPException
-
setCreatorTool
- Throws:
XMPException
-
getProducer
- Throws:
XMPException
-
setProducer
- Throws:
XMPException
-
getCreateDate
- Throws:
XMPException
-
setCreateDate
- Throws:
XMPException
-
getModifyDate
- Throws:
XMPException
-
setModifyDate
- Throws:
XMPException
-
getPDFAIdentificationPart
- Throws:
XMPException
-
getPDFUAIdentificationPart
- Throws:
XMPException
-
getDeclarations
-
containsDeclaration
-
addDeclarations
- Throws:
XMPException
-
setPDFAIdentificationPart
- Throws:
XMPException
-
setPDFUAIdentificationPart
- Throws:
XMPException
-
getPDFAIdentificationConformance
- Throws:
XMPException
-
getPDFARevisionYear
- Throws:
XMPException
-
getPDFUARevisionYear
- Throws:
XMPException
-
setPDFAIdentificationConformance
public VeraPDFMeta setPDFAIdentificationConformance(String identificationConformance) throws XMPException - Throws:
XMPException
-
setIdentificationRevisionYear
public VeraPDFMeta setIdentificationRevisionYear(String namespaceURI, String identificationConformance) throws XMPException - Throws:
XMPException
-
getCloneOfInitialMeta
-