org.apache.xmlgraphics.xmp
Class XMPProperty
java.lang.Object
|
+--org.apache.xmlgraphics.xmp.XMPProperty
- All Implemented Interfaces:
- XMLizable
- public class XMPProperty
- extends java.lang.Object
- implements XMLizable
This class is the base class for all XMP properties.
Constructor Summary |
XMPProperty(QName name,
java.lang.Object value)
Creates a new XMP property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMPProperty
public XMPProperty(QName name,
java.lang.Object value)
- Creates a new XMP property.
- Parameters:
name
- the name of the propertyvalue
- the value for the property
getName
public QName getName()
- Returns:
- the qualified name of the property (namespace URI + local name)
getNamespace
public java.lang.String getNamespace()
- Returns:
- the namespace URI of the property
setValue
public void setValue(java.lang.Object value)
- Sets the value of the property
- Parameters:
value
- the new value
getValue
public java.lang.Object getValue()
- Returns:
- the property value (can be a normal Java object (normally a String) or a descendant
of XMPComplexValue.
setXMLLang
public void setXMLLang(java.lang.String lang)
- Sets the xml:lang value for this property
- Parameters:
lang
- the language ("x-default" for the default language, null to make the value
language-independent)
getXMLLang
public java.lang.String getXMLLang()
- Returns:
- the language for language-dependent values ("x-default" for the default language)
getArrayValue
public XMPArray getArrayValue()
- Returns:
- the XMPArray for an array or null if the value is not an array.
convertSimpleValueToArray
public void convertSimpleValueToArray(XMPArrayType type)
- Converts a simple value to an array of a given type if the value is not already an array.
- Parameters:
type
- the desired type of array
toSAX
public void toSAX(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
- Description copied from interface:
XMLizable
- Generates SAX events representing the object's state.
- Specified by:
toSAX
in interface XMLizable
- See Also:
XMLizable.toSAX(org.xml.sax.ContentHandler)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.