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() |
AdobePDFSchema |
createAndAddAdobePDFSchema()
Create and add an Adobe PDF schema to this metadata This method return the created schema to enter information
|
XMPBasicJobTicketSchema |
createAndAddBasicJobTicketSchema()
Create and add a default Basic Job Ticket schema to this metadata This method return the created schema to enter
information
|
XMPSchema |
createAndAddDefaultSchema(String nsPrefix,
String nsURI)
Set a unspecialized schema
|
DublinCoreSchema |
createAndAddDublinCoreSchema()
Create and add a default Dublin Core schema to this metadata This method return the created schema to enter
information
|
PDFAExtensionSchema |
createAndAddPDFAExtensionSchemaWithDefaultNS()
Create and add a default PDFA Extension schema to this metadata This method return the created schema to enter
information This PDFAExtension is created with all default namespaces used in PDFAExtensionSchema
|
PDFAExtensionSchema |
createAndAddPDFAExtensionSchemaWithNS(Map<String,String> namespaces)
Create and add a default PDFA Extension schema to this metadata This method return the created schema to enter
information This PDFAExtension is created with specified list of namespaces
|
PDFAIdentificationSchema |
createAndAddPFAIdentificationSchema()
Create and add a default PDFA Identification schema to this metadata This method return the created schema to
enter information
|
PhotoshopSchema |
createAndAddPhotoshopSchema()
create and add Photoshop Schema to this metadata.
|
XMPBasicSchema |
createAndAddXMPBasicSchema()
Create and add a XMP Basic schema to this metadata This method return the created schema to enter information
|
XMPMediaManagementSchema |
createAndAddXMPMediaManagementSchema()
Create and add a XMP Media Management schema to this metadata This method return the created schema to enter
information
|
XMPRightsManagementSchema |
createAndAddXMPRightsManagementSchema()
Create and add a default XMPRights schema to this metadata This method return the created schema to enter
information
|
static XMPMetadata |
createXMPMetadata() |
static XMPMetadata |
createXMPMetadata(String xpacketBegin,
String xpacketId,
String xpacketBytes,
String xpacketEncoding) |
AdobePDFSchema |
getAdobePDFSchema()
Get the Adobe PDF schema This method return null if not found
|
List<XMPSchema> |
getAllSchemas()
Get All Schemas declared in this metadata representation
|
XMPBasicJobTicketSchema |
getBasicJobTicketSchema()
Get the Basic JOb Ticket Schema schema This method return null if not found
|
DublinCoreSchema |
getDublinCoreSchema()
Get the Dublin Core schema This method return null if not found
|
String |
getEndXPacket()
get XPACKET END PI
|
PDFAExtensionSchema |
getPDFExtensionSchema()
Get the PDFA Extension schema This method return null if not found
|
PDFAIdentificationSchema |
getPDFIdentificationSchema()
Get the PDFA Identification schema This method return null if not found
|
PhotoshopSchema |
getPhotoshopSchema()
Get the Photoshop schema This method return null if not found
|
XMPSchema |
getSchema(Class<? extends XMPSchema> clz) |
XMPSchema |
getSchema(String nsURI)
Return the schema corresponding to this nsURI BE CAREFUL: typically, Metadata should contains one schema for each
type this method return the first schema encountered corresponding to this NSURI Return null if unknown
|
XMPSchema |
getSchema(String prefix,
String nsURI)
Return the schema corresponding to this nsURI and a prefix This method is here to treat metadata which embed more
than one time the same schema It permit to retrieve a specific schema with its prefix
|
TypeMapping |
getTypeMapping() |
XMPBasicSchema |
getXMPBasicSchema()
Get the XMP Basic schema This method return null if not found
|
XMPMediaManagementSchema |
getXMPMediaManagementSchema()
Get the XMP Media Management schema This method return null if not found
|
XMPRightsManagementSchema |
getXMPRightsManagementSchema()
Get the XMPRights schema This method return null if not found
|
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()
CreateXMPMetadataException
- If DOM Document associated could not be createdprotected XMPMetadata(String xpacketBegin, String xpacketId, String xpacketBytes, String xpacketEncoding)
xpacketBegin
- Value of xpacketBeginxpacketId
- Value of xpacketIdxpacketBytes
- Value of xpacketBytesxpacketEncoding
- Value of xpacket encodingCreateXMPMetadataException
CreateXMPMetadataException
- If DOM Document associated could not be createdpublic static XMPMetadata createXMPMetadata()
public static XMPMetadata createXMPMetadata(String xpacketBegin, String xpacketId, String xpacketBytes, String xpacketEncoding)
public 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 void clearSchemas()
public 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 XMPRightsManagementSchema createAndAddXMPRightsManagementSchema()
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 XMPBasicJobTicketSchema createAndAddBasicJobTicketSchema()
public DublinCoreSchema getDublinCoreSchema()
public XMPBasicJobTicketSchema getBasicJobTicketSchema()
public XMPRightsManagementSchema getXMPRightsManagementSchema()
public PhotoshopSchema getPhotoshopSchema()
public XMPBasicSchema createAndAddXMPBasicSchema()
public XMPBasicSchema getXMPBasicSchema()
public XMPMediaManagementSchema createAndAddXMPMediaManagementSchema()
public PhotoshopSchema createAndAddPhotoshopSchema()
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 removeCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.