XmpArray

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.imaging.xmp.IXmlValue

public class XmpArray implements IXmlValue

Represents Xmp Array in XmpPackage. todo: Array may contain complex data.

Constructors

ConstructorDescription
XmpArray(int type, String[] items)Initializes a new instance of the XmpArray class.
XmpArray(int type)Initializes a new instance of the XmpArray class.

Methods

MethodDescription
addItem(String item)Adds new item.
getXmlValue()Converts XMP value to the XML representation.
toString()Returns a System.String that represents this instance.
getValues()Gets array of values inside XmpArray.

XmpArray(int type, String[] items)

public XmpArray(int type, String[] items)

Initializes a new instance of the XmpArray class.

Parameters:

ParameterTypeDescription
typeintThe type of array.
itemsjava.lang.String[]The items list.

XmpArray(int type)

public XmpArray(int type)

Initializes a new instance of the XmpArray class.

Parameters:

ParameterTypeDescription
typeintThe type of array.

addItem(String item)

public void addItem(String item)

Adds new item.

Parameters:

ParameterTypeDescription
itemjava.lang.StringThe item to be added to list of items.

getXmlValue()

public String getXmlValue()

Converts XMP value to the XML representation.

Returns: java.lang.String - Returns the XMP value converted to the XML representation.

toString()

public String toString()

Returns a System.String that represents this instance.

Returns: java.lang.String - A System.String that represents this instance.

getValues()

public String[] getValues()

Gets array of values inside XmpArray.

Returns: java.lang.String[]