XmpCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, java.util.ArrayList

All Implemented Interfaces: com.aspose.imaging.xmp.types.IXmpType

public class XmpCollection extends ArrayList<IXmpType> implements IXmpType

An XMP element collection.

Constructors

ConstructorDescription
XmpCollection()Initializes a new instance of the XmpCollection class.

Methods

MethodDescription
addItem(Object item)Adds new item.
addObject(Object item)Adds an XMP data item.
removeAt(int index)Removes the item at the specified index.
add(IXmpType item)Adds an item to the collection.
copyTo(IXmpType[] array, int arrayIndex)Copies the elements of the collection to an array, starting at a particular array index.
getXmpRepresentation()Gets the XMP string value of this.
getXmlValue()Converts XMP value to the XML representation.
toString()Returns an XML String that represents this instance.

XmpCollection()

public XmpCollection()

Initializes a new instance of the XmpCollection class.

addItem(Object item)

public final void addItem(Object item)

Adds new item.

Parameters:

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

addObject(Object item)

public final void addObject(Object item)

Adds an XMP data item.

Parameters:

ParameterTypeDescription
itemjava.lang.ObjectAn XMP item.

removeAt(int index)

public final void removeAt(int index)

Removes the item at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the item to remove.

add(IXmpType item)

public final boolean add(IXmpType item)

Adds an item to the collection.

Parameters:

ParameterTypeDescription
itemIXmpTypeThe object to add to the collection.

Returns: boolean

copyTo(IXmpType[] array, int arrayIndex)

public final void copyTo(IXmpType[] array, int arrayIndex)

Copies the elements of the collection to an array, starting at a particular array index.

Parameters:

ParameterTypeDescription
arrayIXmpType[]The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

getXmpRepresentation()

public final String getXmpRepresentation()

Gets the XMP string value of this.

Returns: java.lang.String - Returns the string contained value in XMP format.

getXmlValue()

public final 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 an XML String that represents this instance.

Returns: java.lang.String - An XML String that represents this instance.