| Constructor | Description |
|---|---|
XMPProperty(QName name,
Object value) |
Creates a new XMP property.
|
| Modifier and Type | Method | Description |
|---|---|---|
XMPArray |
convertSimpleValueToArray(XMPArrayType type) |
Converts a simple value to an array of a given type if the value is not already an array.
|
XMPArray |
getArrayValue() |
|
QName |
getName() |
|
String |
getNamespace() |
|
PropertyAccess |
getStructureValue() |
|
Object |
getValue() |
|
String |
getXMLLang() |
|
boolean |
isArray() |
Indicates whether the property is an array.
|
boolean |
isQualifiedProperty() |
Indicates whether this property is actually not a structure, but a normal property with
property qualifiers.
|
void |
setValue(Object value) |
Sets the value of the property
|
void |
setXMLLang(String lang) |
Sets the xml:lang value for this property
|
void |
simplify() |
|
void |
toSAX(ContentHandler handler) |
Generates SAX events representing the object's state.
|
String |
toString() |
public QName getName()
public String getNamespace()
public void setValue(Object value)
value - the new valuepublic Object getValue()
public void setXMLLang(String lang)
lang - the language ("x-default" for the default language, null to make the value
language-independent)public String getXMLLang()
public boolean isArray()
public XMPArray getArrayValue()
public XMPArray convertSimpleValueToArray(XMPArrayType type)
type - the desired type of arraypublic PropertyAccess getStructureValue()
public boolean isQualifiedProperty()
public void simplify()
public void toSAX(ContentHandler handler) throws SAXException
XMLizabletoSAX in interface XMLizablehandler - ContentHandler instance to send the SAX events toSAXException - if there's a problem generating the SAX eventsXMLizable.toSAX(org.xml.sax.ContentHandler)public String toString()
toString in class ObjectObject.toString()Copyright © 2018 Apache Software Foundation. All rights reserved.