|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.xmp.XMPProperty
public class XMPProperty
This class is the base class for all XMP properties.
Constructor Summary | |
---|---|
XMPProperty(QName name,
java.lang.Object value)
Creates a new XMP property. |
Method Summary | |
---|---|
void |
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMPProperty(QName name, java.lang.Object value)
name
- the name of the propertyvalue
- the value for the propertyMethod Detail |
---|
public 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 XMPArray getArrayValue()
public void 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 to
org.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()
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |