com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class DocMetadata

    • Constructor Detail

      • DocMetadata

        public DocMetadata()

        Initializes a new instance of the DocMetadata class.

    • Method Detail

      • getAuthor

        public final String getAuthor()

        Gets or sets document's author.

        Value: The author.
      • setAuthor

        public final void setAuthor(String value)

        Gets or sets document's author.

        Value: The author.
      • getBytesInDocument

        public final Integer getBytesInDocument()

        Gets an estimate of the number of bytes in the document.

        Value: The bytes in document.
      • getCategory

        public final String getCategory()

        Gets or sets category. Could not be updated in ODT.

        Value: The category.
      • setCategory

        public final void setCategory(String value)

        Gets or sets category. Could not be updated in ODT.

        Value: The category.
      • getComments

        public final String getComments()

        Gets or sets comments.

        Value: The comments.
      • setComments

        public final void setComments(String value)

        Gets or sets comments.

        Value: The comments.
      • getCompany

        public final String getCompany()

        Gets or sets company.

        Value: The company.
      • setCompany

        public final void setCompany(String value)

        Gets or sets company.

        Value: The company.
      • getContentStatus

        public final String getContentStatus()

        Gets or sets content status.

        Value: The content status.
      • setContentStatus

        public final void setContentStatus(String value)

        Gets or sets content status.

        Value: The content status.
      • getContentType

        public final String getContentType()

        Gets content type of the document.

        Value: The type of the content.
      • getCreatedTime

        public final Date getCreatedTime()

        Gets document created date.

        Value: The created time.


        Read-only property. Returns DateTime.MinValue if not specified.

      • getHyperlinkBase

        public final String getHyperlinkBase()

        Gets or sets hyperlink base.

      • setHyperlinkBase

        public final void setHyperlinkBase(String value)

        Gets or sets hyperlink base.

      • getKeywords

        public final String getKeywords()

        Gets or sets keywords.

        Value: The keywords.
      • setKeywords

        public final void setKeywords(String value)

        Gets or sets keywords.

        Value: The keywords.
      • getLastPrintedDate

        public final Date getLastPrintedDate()

        Gets last printed date in UTC.


        Read-only property. Returns DateTime.MinValue if not specified.

      • getLastSavedBy

        public final String getLastSavedBy()

        Gets the name of the last author.

        Value: The last saved by.


        Read-only property.

      • getManager

        public final String getManager()

        Gets or sets manager.

        Value: The manager.
      • setManager

        public final void setManager(String value)

        Gets or sets manager.

        Value: The manager.
      • getNameOfApplication

        public final String getNameOfApplication()

        Gets name of application.

        Value: The name of application.
      • getRevisionNumber

        public final int getRevisionNumber()

        Gets revision number.

        Value: The revision number.


        Read-only property.

      • getTitle

        public final String getTitle()

        Gets or sets title of document.

        Value: The title.
      • setTitle

        public final void setTitle(String value)

        Gets or sets title of document.

        Value: The title.
      • getTitlesOfParts

        public final String[] getTitlesOfParts()

        Gets titles of parts. Read-only.

        Value: Titles of parts.
      • getDocumentComments

        public final DocComment[] getDocumentComments()

        Gets array of DocComment presented in Word document.

        Value: The document comments.
      • remove

        public boolean remove(String key)

        Removes existing metadata property by key.

        Overrides:
        remove in class DocumentMetadata<DocMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata was found and deleted.
      • add

        public final void add(String key,
               String value)

        Adds metadata with string value.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • add

        public final void add(String key,
               boolean value)

        Adds metadata with boolean value.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • add

        public final void add(String key,
               Date value)

        Adds DateTime metadata.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • add

        public final void add(String key,
               int value)

        Adds metadata with integer value.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • add

        public final void add(String key,
               double value)

        Adds metadata with double value.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • isBuiltIn

        public boolean isBuiltIn(String key)

        Determines whether metadata is built-in.

        Overrides:
        isBuiltIn in class DocumentMetadata<DocMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is built-in.
        Throws:
        ArgumentNullException - Key could not be null or empty.
      • isReadOnly

        public boolean isReadOnly(String key)

        Returns true if <b>built-in</b> metadata key is read-only in Word document.

        Overrides:
        isReadOnly in class DocumentMetadata<DocMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        True if metadata key is read-only; otherwise false.