Package org.apache.xmpbox.type
Class TextType
- java.lang.Object
-
- org.apache.xmpbox.type.AbstractField
-
- org.apache.xmpbox.type.AbstractSimpleProperty
-
- org.apache.xmpbox.type.TextType
-
- Direct Known Subclasses:
AgentNameType
,ChoiceType
,GPSCoordinateType
,GUIDType
,LocaleType
,MIMEType
,PartType
,ProperNameType
,RationalType
,RenditionClassType
,URIType
,URLType
,XPathType
public class TextType extends AbstractSimpleProperty
Object representation of a Text XMP type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
textValue
-
Constructor Summary
Constructors Constructor Description TextType(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
Property Text type constructor (namespaceURI is given)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getStringValue()
Return the property valuejava.lang.Object
getValue()
void
setValue(java.lang.Object value)
Set the property value-
Methods inherited from class org.apache.xmpbox.type.AbstractSimpleProperty
getNamespace, getPrefix, getRawValue, toString
-
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
-
-
-
Constructor Detail
-
TextType
public TextType(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
Property Text type constructor (namespaceURI is given)- Parameters:
metadata
- The metadata to attach to this propertynamespaceURI
- the namespace URI to associate to this propertyprefix
- The prefix to set for this propertypropertyName
- The local Name of this propertyvalue
- The value to set
-
-
Method Detail
-
setValue
public void setValue(java.lang.Object value)
Set the property value- Specified by:
setValue
in classAbstractSimpleProperty
- Parameters:
value
- The value to set
-
getStringValue
public java.lang.String getStringValue()
Description copied from class:AbstractSimpleProperty
Return the property value- Specified by:
getStringValue
in classAbstractSimpleProperty
- Returns:
- a string
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in classAbstractSimpleProperty
-
-