com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class DocumentMetadata<T extends MetadataProperty>

    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of metadata keys.

        Value: Number or properties.
      • getKeys

        public String[] getKeys()

        Gets array of available metadata keys. Keys related to null values are skipped.

        Value: The array of keys.
        Specified by:
        getKeys in class Metadata
      • remove

        public boolean remove(String key)

        Removes metadata by key.

        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata was found and deleted.
      • containsKey

        public boolean containsKey(String metadataKey)

        Determines whether the specified metadata key is presented in collection.

        Parameters:
        metadataKey - Metadata key.
        Returns:
        true if the metadata collection contains an element with the specified key; otherwise, false.
      • clear

        public void clear()

        Removes all metadata values.

      • clearBuiltInData

        public void clearBuiltInData()

        Resets all built-in properties.

      • clearCustomData

        public void clearCustomData()

        Removes all custom metadata values.

      • isBuiltIn

        public boolean isBuiltIn(String key)

        Determines whether metadata is built-in.

        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is built-in.
      • isReadOnly

        public boolean isReadOnly(String key)

        Determines whether metadata is read-only.

        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is read-only.
      • getInstance

        protected abstract T getInstance()