com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class Metadata

    • Constructor Detail

      • Metadata

        protected Metadata(int metadataType)

        Initializes a new instance of the Metadata class.

        Parameters:
        metadataType - The metadata type.
    • Method Detail

      • getMetadataType

        public final int getMetadataType()

        Gets the metadata type.

        Returns:
        The type of the metadata.
      • getKeys

        public String[] getKeys()

        Gets an array of the metadata keys.

        Returns:
        An array of the metadata keys.
      • getByType

        public static Metadata getByType(Metadata[] array,
                         int type)

        Gets metadata by its type from a metadata array.

        Parameters:
        array - An array of Metadata.
        type - The metadata type.
        Returns:
        Metadata if a metadata package of the provided type is present in the array ; otherwise null.
        Throws:
        ArgumentNullException - The metadata array could not be null.