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
public abstract class AbstractSimpleProperty extends AbstractField
Abstract Class of an Simple XMP Property
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleProperty(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
Property specific type constructor (namespaceURI is given)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNamespace()
Get the namespace URI of this entityjava.lang.String
getPrefix()
Get the prefix of this entityjava.lang.Object
getRawValue()
Return the properties raw value.abstract java.lang.String
getStringValue()
Return the property valueabstract java.lang.Object
getValue()
abstract void
setValue(java.lang.Object value)
Check and set new property value (in Element and in its Object Representation)java.lang.String
toString()
-
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
-
-
-
Constructor Detail
-
AbstractSimpleProperty
public AbstractSimpleProperty(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.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 Detail
-
setValue
public abstract void setValue(java.lang.Object value)
Check and set new property value (in Element and in its Object Representation)- Parameters:
value
- Object value to set
-
getStringValue
public abstract java.lang.String getStringValue()
Return the property value- Returns:
- a string
-
getValue
public abstract java.lang.Object getValue()
-
getRawValue
public java.lang.Object 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getNamespace
public final java.lang.String getNamespace()
Get the namespace URI of this entity- Specified by:
getNamespace
in classAbstractField
- Returns:
- the namespace URI
-
getPrefix
public java.lang.String getPrefix()
Get the prefix of this entity- Specified by:
getPrefix
in classAbstractField
- Returns:
- the prefix specified
-
-