org.apache.fop.fo.extensions.xmp

Class XMPMetadata

Implemented Interfaces:
ExtensionAttachment, Serializable, XMLizable

public class XMPMetadata
extends java.lang.Object
implements ExtensionAttachment, Serializable, XMLizable

This is the pass-through value object for the XMP metadata extension.

Field Summary

static String
CATEGORY
The category URI for this extension attachment.

Constructor Summary

XMPMetadata()
No-argument contructor.
XMPMetadata(Metadata metadata)
Default constructor.

Method Summary

String
getCategory()
Metadata
getMetadata()
boolean
isReadOnly()
void
setMetadata(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)

Field Details

CATEGORY

public static final String CATEGORY
The category URI for this extension attachment.

Constructor Details

XMPMetadata

public XMPMetadata()
No-argument contructor.

XMPMetadata

public XMPMetadata(Metadata metadata)
Default constructor.
Parameters:
metadata - the XMP metadata

Method Details

getCategory

public String getCategory()
Specified by:
getCategory in interface ExtensionAttachment

getMetadata

public Metadata getMetadata()
Returns:
the XMP metadata

isReadOnly

public boolean isReadOnly()
Returns:
true if the XMP metadata is marked read-only.

setMetadata

public void setMetadata(Metadata metadata)
Sets the XMP metadata.
Parameters:
metadata - the XMP metadata

setReadOnly

public void setReadOnly(boolean readOnly)
Sets the flag that decides whether a metadata packet may be modified.
Parameters:
readOnly - true if the XMP metadata packet should be marked read-only.

toSAX

public void toSAX(ContentHandler handler)
            throws SAXException
Specified by:
toSAX in interface XMLizable
See Also:
org.apache.fop.util.XMLizable.toSAX(org.xml.sax.ContentHandler)

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.