XmpPackageBaseCollection
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable
public final class XmpPackageBaseCollection implements System.Collections.Generic.IGenericEnumerable<XmpPackage>
Represents collection of XmpPackage
.
Constructors
Constructor | Description |
---|---|
XmpPackageBaseCollection() | Initializes a new instance of the XmpPackageBaseCollection class. |
Methods
Method | Description |
---|---|
getCount() | Gets the number of elements in the collection. |
add(XmpPackage package_) | Adds new instance of XmpPackage . |
remove(XmpPackage package_) | Removes the specified XMP package. |
getPackages() | Get array of XmpPackage . |
getPackage(String namespaceUri) | Gets XmpPackage by it’s namespaceURI. |
clear() | Clear all XmpPackage inside collection. |
iterator() | Returns an enumerator that iterates through a collection. |
XmpPackageBaseCollection()
public XmpPackageBaseCollection()
Initializes a new instance of the XmpPackageBaseCollection
class.
getCount()
public int getCount()
Gets the number of elements in the collection.
Value: The number of elements in the collection.
Returns: int
add(XmpPackage package_)
public void add(XmpPackage package_)
Adds new instance of XmpPackage
.
Parameters:
Parameter | Type | Description |
---|---|---|
package_ | XmpPackage | The XMP package_ to add. |
remove(XmpPackage package_)
public void remove(XmpPackage package_)
Removes the specified XMP package.
Parameters:
Parameter | Type | Description |
---|---|---|
package_ | XmpPackage | The XMP package_ to remove. |
getPackages()
public XmpPackage[] getPackages()
Get array of XmpPackage
.
Returns: com.aspose.imaging.xmp.XmpPackage[] - Returns an array of XMP packages.
getPackage(String namespaceUri)
public XmpPackage getPackage(String namespaceUri)
Gets XmpPackage
by it’s namespaceURI.
Parameters:
Parameter | Type | Description |
---|---|---|
namespaceUri | java.lang.String | The namespace URI to get package_ for. |
Returns: XmpPackage - Returns XMP package_ for specified namespace Uri.
clear()
public void clear()
Clear all XmpPackage
inside collection.
iterator()
public System.Collections.Generic.List.Enumerator<XmpPackage> iterator()
Returns an enumerator that iterates through a collection.
Returns:
com.aspose.ms.System.Collections.Generic.List.Enumerator<com.aspose.imaging.xmp.XmpPackage> - An System.Collections.IEnumerator
object that can be used to iterate through the collection.