|
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.XMPComplexValue
org.apache.xmlgraphics.xmp.XMPArray
public class 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-dependent value to the array. |
java.lang.String |
getLangValue(java.lang.String lang)
Returns a language-dependent values (available for alternative arrays). |
java.lang.Object |
getSimpleValue()
Returns a normal Java object representing the value if it is available. |
int |
getSize()
|
XMPStructure |
getStructure(int idx)
Returns the structure at a given position. |
XMPArrayType |
getType()
|
java.lang.Object |
getValue(int idx)
Returns the value at a given position. |
void |
removeLangValue(java.lang.String lang)
Removes a language-dependent 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 arrayMethod Detail |
---|
public XMPArrayType getType()
public java.lang.Object getValue(int idx)
idx
- the index of the requested value
public XMPStructure getStructure(int idx)
idx
- the index of the requested value
public java.lang.Object getSimpleValue()
getSimpleValue
in class XMPComplexValue
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 valuepublic 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
handler
- ContentHandler instance to send the SAX events to
org.xml.sax.SAXException
- if there's a problem generating the SAX eventspublic java.lang.String toString()
toString
in class java.lang.Object
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |