public class XMPMetadata extends Object
Modifier | Constructor and Description |
---|---|
protected |
XMPMetadata()
Contructor of an empty default XMPMetaData.
|
protected |
XMPMetadata(String xpacketBegin,
String xpacketId,
String xpacketBytes,
String xpacketEncoding)
Creates blank XMP doc with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addSchema(XMPSchema obj)
Add a schema to the current structure.
|
void |
clearSchemas()
Removes all schemas defined.
|
AdobePDFSchema |
createAndAddAdobePDFSchema()
Create and add an Adobe PDF schema to this metadata.
|
XMPBasicJobTicketSchema |
createAndAddBasicJobTicketSchema()
Create and add a default Basic Job Ticket schema to this metadata.
|
XMPSchema |
createAndAddDefaultSchema(String nsPrefix,
String nsURI)
Create and add an unspecified schema.
|
DublinCoreSchema |
createAndAddDublinCoreSchema()
Create and add a default Dublin Core schema to this metadata.
|
PDFAExtensionSchema |
createAndAddPDFAExtensionSchemaWithDefaultNS()
Create and add a default PDFA Extension schema to this metadata.
|
PDFAExtensionSchema |
createAndAddPDFAExtensionSchemaWithNS(Map<String,String> namespaces)
Create and add a default PDFA Extension schema to this metadata.
|
PDFAIdentificationSchema |
createAndAddPFAIdentificationSchema()
Create and add a default PDFA Identification schema to this metadata.
|
PhotoshopSchema |
createAndAddPhotoshopSchema()
Create and add Photoshop Schema to this metadata.
|
XMPBasicSchema |
createAndAddXMPBasicSchema()
Create and add a XMP Basic schema to this metadata.
|
XMPMediaManagementSchema |
createAndAddXMPMediaManagementSchema()
Create and add a XMP Media Management schema to this metadata.
|
XMPRightsManagementSchema |
createAndAddXMPRightsManagementSchema()
Create and add a default XMP Rights Management Schema to this metadata.
|
static XMPMetadata |
createXMPMetadata()
Creates blank XMP doc with default parameters.
|
static XMPMetadata |
createXMPMetadata(String xpacketBegin,
String xpacketId,
String xpacketBytes,
String xpacketEncoding)
Creates blank XMP doc with specified parameters.
|
AdobePDFSchema |
getAdobePDFSchema()
Get the Adobe PDF schema.
|
List<XMPSchema> |
getAllSchemas()
Get All Schemas declared in this metadata representation.
|
XMPBasicJobTicketSchema |
getBasicJobTicketSchema()
Get the Basic Job Ticket Schema.
|
DublinCoreSchema |
getDublinCoreSchema()
Get the Dublin Core schema.
|
String |
getEndXPacket()
get XPACKET END PI.
|
PDFAExtensionSchema |
getPDFExtensionSchema()
Get the PDFA Extension schema.
|
PDFAIdentificationSchema |
getPDFIdentificationSchema()
Get the PDFA Identification schema.
|
PhotoshopSchema |
getPhotoshopSchema()
Get the Photoshop schema.
|
XMPSchema |
getSchema(Class<? extends XMPSchema> clz)
Get the XMPSchema for the specified Class.
|
XMPSchema |
getSchema(String nsURI)
Get the XMPSchema for the specified namespace.
|
XMPSchema |
getSchema(String prefix,
String nsURI)
Return the schema corresponding to this nsURI and a prefix.
|
TypeMapping |
getTypeMapping()
Get TypeMapping.
|
XMPBasicSchema |
getXMPBasicSchema()
Get the XMP Basic schema.
|
XMPMediaManagementSchema |
getXMPMediaManagementSchema()
Get the XMP Media Management schema.
|
XMPRightsManagementSchema |
getXMPRightsManagementSchema()
Get the XMP Rights Management Schema.
|
String |
getXpacketBegin()
Get xpacket Begin.
|
String |
getXpacketBytes()
Get xpacketBytes.
|
String |
getXpacketEncoding()
Get xpacket encoding.
|
String |
getXpacketId()
Get xpacket Id.
|
void |
removeSchema(XMPSchema schema)
Remove a schema.
|
void |
setEndXPacket(String data)
Set special XPACKET END PI.
|
protected XMPMetadata()
protected XMPMetadata(String xpacketBegin, String xpacketId, String xpacketBytes, String xpacketEncoding)
xpacketBegin
- Value of xpacketBeginxpacketId
- Value of xpacketIdxpacketBytes
- Value of xpacketBytesxpacketEncoding
- Value of xpacket encodingpublic static XMPMetadata createXMPMetadata()
public static XMPMetadata createXMPMetadata(String xpacketBegin, String xpacketId, String xpacketBytes, String xpacketEncoding)
xpacketBegin
- Value of xpacketBeginxpacketId
- Value of xpacketIdxpacketBytes
- Value of xpacketBytesxpacketEncoding
- Value of xpacket encodingpublic TypeMapping getTypeMapping()
public String getXpacketBytes()
public String getXpacketEncoding()
public String getXpacketBegin()
public String getXpacketId()
public List<XMPSchema> getAllSchemas()
public void setEndXPacket(String data)
data
- The XPacket End valuepublic String getEndXPacket()
public XMPSchema getSchema(String nsURI)
nsURI
- The namespace URI corresponding to the schema wantedpublic XMPSchema getSchema(Class<? extends XMPSchema> clz)
clz
- The Class corresponding to the schema wantedpublic XMPSchema getSchema(String prefix, String nsURI)
prefix
- The prefix fixed in the schema wantednsURI
- The namespace URI corresponding to the schema wantedpublic XMPSchema createAndAddDefaultSchema(String nsPrefix, String nsURI)
nsPrefix
- The prefix wanted for the schemansURI
- The namespace URI wanted for the schemapublic PDFAExtensionSchema createAndAddPDFAExtensionSchemaWithDefaultNS()
public PDFAExtensionSchema createAndAddPDFAExtensionSchemaWithNS(Map<String,String> namespaces) throws XmpSchemaException
namespaces
- Special namespaces list to useXmpSchemaException
- If namespaces list not contains PDF/A Extension namespace URIpublic PDFAExtensionSchema getPDFExtensionSchema()
public PDFAIdentificationSchema createAndAddPFAIdentificationSchema()
public PDFAIdentificationSchema getPDFIdentificationSchema()
public DublinCoreSchema createAndAddDublinCoreSchema()
public DublinCoreSchema getDublinCoreSchema()
public XMPBasicJobTicketSchema createAndAddBasicJobTicketSchema()
public XMPBasicJobTicketSchema getBasicJobTicketSchema()
public XMPRightsManagementSchema createAndAddXMPRightsManagementSchema()
public XMPRightsManagementSchema getXMPRightsManagementSchema()
public XMPBasicSchema createAndAddXMPBasicSchema()
public XMPBasicSchema getXMPBasicSchema()
public XMPMediaManagementSchema createAndAddXMPMediaManagementSchema()
public PhotoshopSchema createAndAddPhotoshopSchema()
public PhotoshopSchema getPhotoshopSchema()
public XMPMediaManagementSchema getXMPMediaManagementSchema()
public AdobePDFSchema createAndAddAdobePDFSchema()
public AdobePDFSchema getAdobePDFSchema()
public void addSchema(XMPSchema obj)
obj
- the schema to addpublic void removeSchema(XMPSchema schema)
schema
- The schema to removepublic void clearSchemas()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.