- All Known Implementing Classes:
Metadata,XMPStructure,XMPThinStructure
public interface PropertyAccess
This interface is implemented by the top-level Metadata class and stuctured properties.
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String uri, String localName) Returns a propertygetProperty(QName name) Returns a property.intReturns the number of properties.Returns the rdf:value property.iterator()Returns an Iterator over all properties in this structured property.removeProperty(QName name) Removes a property and returns it if it was found.voidsetProperty(XMPProperty prop) Sets a property.
-
Method Details
-
setProperty
Sets a property.- Parameters:
prop- the property
-
getProperty
Returns a property- Parameters:
uri- the namespace URI of the propertylocalName- the local name of the property- Returns:
- the requested property or null if it's not available
-
getProperty
Returns a property.- Parameters:
name- the name of the property- Returns:
- the requested property or null if it's not available
-
removeProperty
Removes a property and returns it if it was found.- Parameters:
name- the name of the property- Returns:
- the removed property or null if it was not found
-
getValueProperty
XMPProperty getValueProperty()Returns the rdf:value property. This is a shortcut for getProperty(XMPConstants.RDF_VALUE).- Returns:
- the rdf:value property or null if it's no available
-
getPropertyCount
int getPropertyCount()Returns the number of properties.- Returns:
- the number of properties in this metadata object.
-
iterator
Iterator iterator()Returns an Iterator over all properties in this structured property.- Returns:
- an Iterator over all properties
-