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 properties.

        Returns:
        The number or metadata properties.
      • readPropertyValue

        public final PropertyValue readPropertyValue(String propertyName)

        Reads the value of the property with the specified name.

        Parameters:
        propertyName - The property name.
        Returns:
        The value of the property with the specified name, if found; otherwise null.
      • setValueByKey

        public final void setValueByKey(String propertyName,
                         PropertyValue value)

        Sets the value of the property with the specified name.

        Parameters:
        propertyName - The name of the property.
        value - The value to set.
      • remove

        public boolean remove(String key)

        Removes metadata by the given key.

        Parameters:
        key - A metadata property name.
        Returns:
        Returns true if the property was found and deleted, otherwise false.
      • containsKey

        public boolean containsKey(String metadataKey)

        Determines whether the specified metadata key is presented in the collection.

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

        public void clear()

        Resets all metadata properties.

      • clearBuiltInData

        public final void clearBuiltInData()

        Resets all built-in metadata properties.

      • clearCustomData

        public final void clearCustomData()

        Removes all custom metadata properties.

      • isBuiltIn

        public boolean isBuiltIn(String key)

        Determines whether a metadata property is built-in.

        Parameters:
        key - A metadata property name.
        Returns:
        Returns true if metadata is built-in, otherwise false.
      • isReadOnly

        public boolean isReadOnly(String key)

        Determines whether metadata is read-only.

        Parameters:
        key - A metadata property name.
        Returns:
        Returns true if metadata is read-only, otherwise false.
      • getInstance

        protected abstract T getInstance()