Packages

 

com.groupdocs.signature.domain.signatures.metadata

Class MetadataSignatureCollection

  • java.lang.Object
    • com.groupdocs.signature.domain.signatures.metadata.MetadataSignatureCollection
    • Constructor Detail

      • MetadataSignatureCollection

        public MetadataSignatureCollection()

        Creates Collection of Metadata Signatures.

    • Method Detail

      • add

        public final void add(MetadataSignature signature)

        Add Metadata Signature object to collection.

        Parameters:
        signature - Metadata signature to be added to collection.


        Throws an exception if name value is not unique entire existing collection

      • addRange

        public final void addRange(MetadataSignature[] signatures)

        Add Metadata Signature collection.

        Parameters:
        signatures - Collection of signatures to add.


        Throws an exception if name value is not unique entire existing collection

      • clear

        public final void clear()

        Removes all items from the collection.

      • contains

        public final boolean contains(String name)

        Returns true if a Metadata with the specified name exists in the collection.

        Parameters:
        name - The case-insensitive name of the property.
        Returns:
        True if the Metadata exists in the collection; false otherwise.
      • deepClone

        public final Object deepClone()

        Clone Metadata Signature Collection class with Metadata Signature Items.

        Returns:
        Returns copied instance with cloned Signature Items
      • get_Item

        public final MetadataSignature get_Item(int index)

        Returns a MetadataSignature object by index.

        Parameters:
        index - Zero-based index of the MetadataSignature to retrieve.


        Returns null if a property with the specified index does not exist.

        Returns:
        Returns a MetadataSignature MetadataSignature object by the index of collection.
      • get_Item

        public final MetadataSignature get_Item(String name)

        Returns a MetadataSignature object by the name of the property.

        Parameters:
        name - The case-insensitive name of the property to retrieve.


        Returns null if a property with the specified name is not found.

        Returns:
        Returns a MetadataSignature MetadataSignature object by the name of the property.
      • getCount

        public final int getCount()

        Gets number of items in the collection.

      • getItemsMap

        protected final Map<String,MetadataSignature> getItemsMap()

        Dictionary of MetadataSignature with unique keys as Signature name.

      • indexOf

        public final int indexOf(String name)

        Gets the index of a property by name.

        Parameters:
        name - The case-insensitive name of the MetadataSignature.
        Returns:
        The zero based index. Negative value if not found.
      • remove

        public final boolean remove(String name)

        Removes a Metadata Signature with the specified name from the collection.

        Parameters:
        name - The case-insensitive name of the Metadata Signature.
        Returns:
      • removeAt

        public final boolean removeAt(int index)

        Removes a Metadata Signature at the specified index.

        Parameters:
        index - The zero based index.