Constructor | Description |
---|---|
XMPProperty(QName name,
java.lang.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() |
|
java.lang.String |
getNamespace() |
|
PropertyAccess |
getStructureValue() |
|
java.lang.Object |
getValue() |
|
java.lang.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(java.lang.Object value) |
Sets the value of the property
|
void |
setXMLLang(java.lang.String lang) |
Sets the xml:lang value for this property
|
void |
simplify() |
|
void |
toSAX(org.xml.sax.ContentHandler handler) |
Generates SAX events representing the object's state.
|
java.lang.String |
toString() |
public XMPProperty(QName name, java.lang.Object value)
name
- the name of the propertyvalue
- the value for the propertypublic QName getName()
public java.lang.String getNamespace()
public void setValue(java.lang.Object value)
value
- the new valuepublic java.lang.Object getValue()
public void setXMLLang(java.lang.String lang)
lang
- the language ("x-default" for the default language, null to make the value
language-independent)public java.lang.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(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
XMLizable
toSAX
in interface XMLizable
handler
- ContentHandler instance to send the SAX events toorg.xml.sax.SAXException
- if there's a problem generating the SAX eventsXMLizable.toSAX(org.xml.sax.ContentHandler)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.