Packages

 

com.aspose.cad.xmp

Class XmpPackageBaseCollection

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.cad.xmp.XmpPackage>, com.aspose.ms.System.Collections.IEnumerable<com.aspose.cad.xmp.XmpPackage>, Iterable<com.aspose.cad.xmp.XmpPackage>


    public final class XmpPackageBaseCollection
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.cad.xmp.XmpPackage>

    Represents collection of XmpPackage.

    • Constructor Summary

      Constructors 
      Constructor and Description
      XmpPackageBaseCollection()
      Initializes a new instance of the XmpPackageBaseCollection class.
    • Constructor Detail

      • XmpPackageBaseCollection

        public XmpPackageBaseCollection()

        Initializes a new instance of the XmpPackageBaseCollection class.

    • Method Detail

      • getCount

        public int getCount()

        Gets the number of elements in the collection.

        Value: The number of elements in the collection.
      • add

        public void add(com.aspose.cad.xmp.XmpPackage package_)

        Adds new instance of XmpPackage.

        Parameters:
        package_ - The XMP package_ to add.
      • remove

        public void remove(com.aspose.cad.xmp.XmpPackage package_)

        Removes the specified XMP package.

        Parameters:
        package_ - The XMP package_ to remove.
      • getPackages

        public com.aspose.cad.xmp.XmpPackage[] getPackages()

        Get array of XmpPackage.

        Returns:
        Returns an array of XMP packages.
      • getPackage

        public com.aspose.cad.xmp.XmpPackage getPackage(String namespaceUri)

        Gets XmpPackage by it's namespaceURI.

        Parameters:
        namespaceUri - The namespace URI to get package_ for.
        Returns:
        Returns XMP package_ for specified namespace Uri.
      • clear

        public void clear()

        Clear all XmpPackage inside collection.

      • iterator

        public com.aspose.ms.System.Collections.Generic.List.Enumerator iterator()

        Returns an enumerator that iterates through a collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.cad.xmp.XmpPackage>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.cad.xmp.XmpPackage>
        Specified by:
        iterator in interface Iterable<com.aspose.cad.xmp.XmpPackage>
        Returns:
        An T:System.Collections.IEnumerator object that can be used to iterate through the collection.