public abstract class AbstractSimpleProperty extends AbstractField
Constructor and Description |
---|
AbstractSimpleProperty(XMPMetadata metadata,
String namespaceURI,
String prefix,
String propertyName,
Object value)
Property specific type constructor (namespaceURI is given)
|
Modifier and Type | Method and Description |
---|---|
String |
getNamespace()
Get the namespace URI of this entity
|
String |
getPrefix()
Get the prefix of this entity
|
Object |
getRawValue()
Return the properties raw value.
|
abstract String |
getStringValue()
Return the property value
|
abstract Object |
getValue() |
abstract void |
setValue(Object value)
Check and set new property value (in Element and in its Object Representation)
|
String |
toString() |
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
public AbstractSimpleProperty(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value)
metadata
- The metadata to attach to this propertynamespaceURI
- the specified namespace URI associated to this propertyprefix
- The prefix to set for this propertypropertyName
- The local Name of this propertyvalue
- the value to givepublic abstract void setValue(Object value)
value
- Object value to setpublic abstract String getStringValue()
public abstract Object getValue()
public Object getRawValue()
The properties raw value is how it has been serialized into the XML. Allows to retrieve the low level date for validation purposes.
public final String getNamespace()
getNamespace
in class AbstractField
public String getPrefix()
getPrefix
in class AbstractField
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.