Package org.apache.xmpbox.type
Class AbstractSimpleProperty
java.lang.Object
org.apache.xmpbox.type.AbstractField
org.apache.xmpbox.type.AbstractSimpleProperty
- Direct Known Subclasses:
BooleanType
,DateType
,IntegerType
,RealType
,TextType
Abstract Class of an Simple XMP Property
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSimpleProperty
(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value) Property specific type constructor (namespaceURI is given) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Get the namespace URI of this entityGet the prefix of this entityReturn the properties raw value.abstract String
Return the property valueabstract Object
getValue()
abstract void
Check and set new property value (in Element and in its Object Representation)toString()
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
Field Details
-
namespace
-
prefix
-
rawValue
-
-
Constructor Details
-
AbstractSimpleProperty
public AbstractSimpleProperty(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value) Property specific type constructor (namespaceURI is given)- Parameters:
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 give
-
-
Method Details
-
setValue
Check and set new property value (in Element and in its Object Representation)- Parameters:
value
- Object value to set
-
getStringValue
Return the property value- Returns:
- a string
-
getValue
-
getRawValue
Return the properties raw value.The properties raw value is how it has been serialized into the XML. Allows to retrieve the low level date for validation purposes.
- Returns:
- the raw value.
-
toString
-
getNamespace
Get the namespace URI of this entity- Specified by:
getNamespace
in classAbstractField
- Returns:
- the namespace URI
-
getPrefix
Get the prefix of this entity- Specified by:
getPrefix
in classAbstractField
- Returns:
- the prefix specified
-