|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.xmp.Metadata
public class Metadata
This class represents the root of an XMP metadata tree. It's more or less equivalent to the x:xmpmeta element together with its nested rdf:RDF element.
Constructor Summary | |
---|---|
Metadata()
|
Method Summary | |
---|---|
XMPProperty |
getProperty(QName name)
Returns a property. |
XMPProperty |
getProperty(java.lang.String uri,
java.lang.String localName)
Returns a property |
int |
getPropertyCount()
Returns the number of properties. |
XMPProperty |
getValueProperty()
Returns the rdf:value property. |
java.util.Iterator |
iterator()
Returns an Iterator over all properties in this structured property. |
void |
mergeInto(Metadata target)
Merges this metadata object into a given target metadata object. |
void |
setProperty(XMPProperty prop)
Sets a property. |
void |
toSAX(org.xml.sax.ContentHandler handler)
Generates SAX events representing the object's state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Metadata()
Method Detail |
---|
public void setProperty(XMPProperty prop)
setProperty
in interface PropertyAccess
prop
- the propertypublic XMPProperty getProperty(java.lang.String uri, java.lang.String localName)
getProperty
in interface PropertyAccess
uri
- the namespace URI of the propertylocalName
- the local name of the property
public XMPProperty getProperty(QName name)
getProperty
in interface PropertyAccess
name
- the name of the property
public XMPProperty getValueProperty()
getValueProperty
in interface PropertyAccess
public int getPropertyCount()
getPropertyCount
in interface PropertyAccess
public java.util.Iterator iterator()
iterator
in interface PropertyAccess
public void mergeInto(Metadata target)
target
- the target metadata to merge the local metadata intopublic void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
toSAX
in interface XMLizable
handler
- ContentHandler instance to send the SAX events to
org.xml.sax.SAXException
- if there's a problem generating the SAX events
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |