public class XmpCollection extends ArrayList<IXmpType> implements IXmpType
An XMP element collection.
| Constructor and Description |
|---|
XmpCollection()
Initializes a new instance of the
XmpCollection class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IXmpType item)
Adds an item to the collection.
|
void |
addItem(Object item)
Adds new item.
|
void |
addObject(Object item)
Adds an XMP data item.
|
void |
copyTo(IXmpType[] array,
int arrayIndex)
Copies the elements of the collection to an array, starting at a particular array index.
|
String |
getXmlValue()
Converts XMP value to the XML representation.
|
String |
getXmpRepresentation()
Gets the XMP string value of this.
|
void |
removeAt(int index)
Removes the item at the specified index.
|
String |
toString()
Returns an XML
String that represents this instance. |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllcontainsAll, equals, hashCodeparallelStream, streampublic XmpCollection()
Initializes a new instance of the XmpCollection class.
public final void addItem(Object item)
Adds new item.
item - The item to be added to list of items.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic final void addObject(Object item)
Adds an XMP data item.
item - An XMP item.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic final void removeAt(int index)
Removes the item at the specified index.
index - The zero-based index of the item to remove.public final boolean add(IXmpType item)
Adds an item to the collection.
public final void copyTo(IXmpType[] array, int arrayIndex)
Copies the elements of the collection to an array, starting at a particular array index.
array - The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.arrayIndex - The zero-based index in array at which copying begins.public final String getXmpRepresentation()
Gets the XMP string value of this.
getXmpRepresentation in interface IXmpTypepublic final String getXmlValue()
Converts XMP value to the XML representation.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.