XMLizable
, PropertyAccess
public class Metadata extends java.lang.Object implements XMLizable, PropertyAccess
Constructor | Description |
---|---|
Metadata() |
Modifier and Type | Method | Description |
---|---|---|
XMPProperty |
getProperty(java.lang.String uri,
java.lang.String localName) |
Returns a property
|
XMPProperty |
getProperty(QName name) |
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,
java.util.List<java.lang.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(org.xml.sax.ContentHandler handler) |
Generates SAX events representing the object's state.
|
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 propertypublic XMPProperty getProperty(QName name)
getProperty
in interface PropertyAccess
name
- the name of the propertypublic XMPProperty removeProperty(QName name)
removeProperty
in interface PropertyAccess
name
- the name of the propertypublic 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, java.util.List<java.lang.Class> exclude)
target
- the target metadata to merge the local metadata intopublic void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.