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.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void add(com.aspose.cad.xmp.XmpPackage package_)
      Adds new instance of XmpPackage.
      void clear()
      Clear all XmpPackage inside collection.
      int getCount()
      Gets the number of elements in the collection.
      com.aspose.cad.xmp.XmpPackage getPackage(String namespaceUri)
      Gets XmpPackage by it's namespaceURI.
      com.aspose.cad.xmp.XmpPackage[] getPackages()
      Get array of XmpPackage.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.cad.xmp.XmpPackage> iterator()
      Returns an enumerator that iterates through a collection.
      void remove(com.aspose.cad.xmp.XmpPackage package_)
      Removes the specified XMP package.
    • 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.

        Returns:
        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.IGenericEnumerator<com.aspose.cad.xmp.XmpPackage> 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.