Top Description Fields Constructors Methods
org.apache.xmpbox.type

public abstract Class AbstractSimpleProperty

extends AbstractField
Class Inheritance
Known Direct Subclasses
org.apache.xmpbox.type.BooleanType, org.apache.xmpbox.type.DateType, org.apache.xmpbox.type.IntegerType, org.apache.xmpbox.type.RealType, org.apache.xmpbox.type.TextType
Imports
org.apache.xmpbox.XMPMetadata

Abstract Class of an Simple XMP Property
Author
a183132

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final Object

Constructor Summary

AccessConstructor and Description
public
AbstractSimpleProperty(XMPMetadata
The metadata to attach to this property
metadata
,
String
the specified namespace URI associated to this property
namespaceURI
,
String
The prefix to set for this property
prefix
,
String
The local Name of this property
propertyName
,
Object
the value to give
value
)

Property specific type constructor (namespaceURI is given)

Method Summary

Modifier and TypeMethod and Description
public final String

Returns:

the namespace URI
getNamespace
()

Implements abstract org.apache.xmpbox.type.AbstractField.getNamespace.

Get the namespace URI of this entity

public String

Returns:

the prefix specified
getPrefix
()

Implements abstract org.apache.xmpbox.type.AbstractField.getPrefix.

Get the prefix of this entity

public Object

Returns:

the raw value.
getRawValue
()

Return the properties raw value.

public abstract String

Returns:

a string
getStringValue
()

Return the property value

public abstract Object
public abstract void
setValue(Object
Object value to set
value
)

Check and set new property value (in Element and in its Object Representation)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.xmpbox.type.AbstractField:
containsAttributegetAllAttributesgetAttributegetMetadatagetPropertyNameremoveAttributesetAttributesetPropertyName

Field Detail

namespaceback to summary
private final String namespace
prefixback to summary
private final String prefix
rawValueback to summary
private final Object rawValue

Constructor Detail

AbstractSimplePropertyback to summary
public AbstractSimpleProperty(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value)

Property specific type constructor (namespaceURI is given)

Parameters
metadata:XMPMetadata

The metadata to attach to this property

namespaceURI:String

the specified namespace URI associated to this property

prefix:String

The prefix to set for this property

propertyName:String

The local Name of this property

value:Object

the value to give

Method Detail

getNamespaceback to summary
public final String getNamespace()

Implements abstract org.apache.xmpbox.type.AbstractField.getNamespace.

Get the namespace URI of this entity

Returns:String

the namespace URI

Annotations
@Override
getPrefixback to summary
public String getPrefix()

Implements abstract org.apache.xmpbox.type.AbstractField.getPrefix.

Get the prefix of this entity

Returns:String

the prefix specified

Annotations
@Override
getRawValueback to summary
public 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:Object

the raw value.

getStringValueback to summary
public abstract String getStringValue()

Return the property value

Returns:String

a string

getValueback to summary
public abstract Object getValue()
setValueback to summary
public abstract void setValue(Object value)

Check and set new property value (in Element and in its Object Representation)

Parameters
value:Object

Object value to set

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override