|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xmlgraphics.xmp.XMPComplexValue
org.apache.xmlgraphics.xmp.XMPArray
Represents an XMP array as defined by the XMP specification.
| Constructor Summary | |
XMPArray(XMPArrayType type)
Main constructor |
|
| Method Summary | |
void |
add(java.lang.Object value)
Adds a new value to the array |
void |
add(java.lang.String value,
java.lang.String lang)
Adds a language-dependant value to the array. |
java.lang.String |
getLangValue(java.lang.String lang)
Returns a language-dependant values (available for alternative arrays). |
java.lang.Object |
getSimpleValue()
Returns a normal Java object representing the value if it is available. |
int |
getSize()
|
XMPArrayType |
getType()
|
java.lang.Object |
getValue(int idx)
Returns the value at a given position |
void |
removeLangValue(java.lang.String lang)
Removes a language-dependant value |
java.lang.Object[] |
toObjectArray()
Converts the array to an object array. |
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 XMPArray(XMPArrayType type)
type - the intended type of array| Method Detail |
public XMPArrayType getType()
public java.lang.Object getValue(int idx)
idx - the index of the requested value
public java.lang.Object getSimpleValue()
XMPComplexValue
getSimpleValue in class XMPComplexValueXMPComplexValue.getSimpleValue()public java.lang.String getLangValue(java.lang.String lang)
lang - the language ("x-default" for the default value)
public void removeLangValue(java.lang.String lang)
lang - the language ("x-default" for the default value)public void add(java.lang.Object value)
value - the value
public void add(java.lang.String value,
java.lang.String lang)
value - the valuelang - the language ("x-default" for the default value)public int getSize()
public java.lang.Object[] toObjectArray()
public void toSAX(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
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()
Object.toString()
|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||