public class XMPMetadata extends Object implements ExtensionAttachment, Serializable, org.apache.xmlgraphics.util.XMLizable
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY
The category URI for this extension attachment.
|
Constructor and Description |
---|
XMPMetadata()
No-argument contructor.
|
XMPMetadata(org.apache.xmlgraphics.xmp.Metadata metadata)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
This method returns a category URI that allows a processor (layout manager or renderer)
to determine if it supports this object.
|
org.apache.xmlgraphics.xmp.Metadata |
getMetadata() |
boolean |
isReadOnly() |
void |
setMetadata(org.apache.xmlgraphics.xmp.Metadata metadata)
Sets the XMP metadata.
|
void |
setReadOnly(boolean readOnly)
Sets the flag that decides whether a metadata packet may be modified.
|
void |
toSAX(ContentHandler handler) |
public static final String CATEGORY
public XMPMetadata()
public XMPMetadata(org.apache.xmlgraphics.xmp.Metadata metadata)
metadata
- the XMP metadatapublic org.apache.xmlgraphics.xmp.Metadata getMetadata()
public void setMetadata(org.apache.xmlgraphics.xmp.Metadata metadata)
metadata
- the XMP metadatapublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- true if the XMP metadata packet should be marked read-only.public String getCategory()
getCategory
in interface ExtensionAttachment
public void toSAX(ContentHandler handler) throws SAXException
toSAX
in interface org.apache.xmlgraphics.util.XMLizable
SAXException
Copyright © 2025 Apache Software Foundation. All rights reserved.