| |
|
| java.lang.Object org.apache.xmlgraphics.xmp.XMPComplexValue org.apache.xmlgraphics.xmp.XMPArray
XMPArray | public class XMPArray extends XMPComplexValue (Code) | | Represents an XMP array as defined by the XMP specification.
|
XMPArray | public XMPArray(XMPArrayType type)(Code) | | Main constructor
Parameters: type - the intended type of array |
add | public void add(Object value)(Code) | | Adds a new value to the array
Parameters: value - the value |
add | public void add(String value, String lang)(Code) | | Adds a language-dependant value to the array. Make sure not to add the same language twice.
Parameters: value - the value Parameters: lang - the language ("x-default" for the default value) |
getLangValue | public String getLangValue(String lang)(Code) | | Returns a language-dependant values (available for alternative arrays).
Parameters: lang - the language ("x-default" for the default value) the requested value |
getSize | public int getSize()(Code) | | the current number of value in the array |
getValue | public Object getValue(int idx)(Code) | | Returns the value at a given position
Parameters: idx - the index of the requested value the value at the given position |
removeLangValue | public void removeLangValue(String lang)(Code) | | Removes a language-dependant value
Parameters: lang - the language ("x-default" for the default value) |
toObjectArray | public Object[] toObjectArray()(Code) | | Converts the array to an object array.
an object array of all values in the array |
Methods inherited from org.apache.xmlgraphics.xmp.XMPComplexValue | abstract public Object getSimpleValue()(Code)(Java Doc)
|
|
|
|