|
xmlgraphics-commons 2.2 | |||||||||
| 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(String uri,
String localName)
Returns a property |
int |
getPropertyCount()
Returns the number of properties. |
XMPProperty |
getValueProperty()
Returns the rdf:value property. |
Iterator |
iterator()
Returns an Iterator over all properties in this structured property. |
void |
mergeInto(Metadata target,
List<Class> exclude)
Merges this metadata object into a given target metadata object. |
XMPProperty |
removeProperty(QName name)
Removes a property and returns it if it was found. |
void |
setProperty(XMPProperty prop)
Sets a property. |
void |
toSAX(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 PropertyAccessprop - the property
public XMPProperty getProperty(String uri,
String localName)
getProperty in interface PropertyAccessuri - the namespace URI of the propertylocalName - the local name of the property
public XMPProperty getProperty(QName name)
getProperty in interface PropertyAccessname - the name of the property
public XMPProperty removeProperty(QName name)
removeProperty in interface PropertyAccessname - the name of the property
public XMPProperty getValueProperty()
getValueProperty in interface PropertyAccesspublic int getPropertyCount()
getPropertyCount in interface PropertyAccesspublic Iterator iterator()
iterator in interface PropertyAccess
public void mergeInto(Metadata target,
List<Class> exclude)
target - the target metadata to merge the local metadata into
public void toSAX(ContentHandler handler)
throws SAXException
toSAX in interface XMLizablehandler - ContentHandler instance to send the SAX events to
SAXException - if there's a problem generating the SAX events
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||