com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XlsMetadata

    • Constructor Detail

      • XlsMetadata

        public XlsMetadata()

        Initializes a new instance of the XlsMetadata class.

    • Method Detail

      • getAuthor

        public final String getAuthor()

        Gets document's author.

        Returns:
        The author.
      • setAuthor

        public final void setAuthor(String value)

        Sets document's author.

        Parameters:
        value - The author.
      • getCategory

        public final String getCategory()

        Gets category.

        Returns:
        The category.
      • setCategory

        public final void setCategory(String value)

        Sets category.

        Parameters:
        value - The category.
      • getComments

        public final String getComments()

        Gets comments.

        Returns:
        Comments value.
      • setComments

        public final void setComments(String value)

        Sets comments.

        Parameters:
        value - Comments value.
      • getCompany

        public final String getCompany()

        Gets company.

        Returns:
        The company.
      • setCompany

        public final void setCompany(String value)

        Sets company.

        Parameters:
        value - The company.
      • getContentStatus

        public final String getContentStatus()

        Gets content status.

        Returns:
        The content status.
      • getContentType

        public final String getContentType()

        Gets content type.

        Returns:
        The type of the content.
      • getCreatedTime

        public final Date getCreatedTime()

        Gets document created date.

        Returns:
        The created time.


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

      • getHyperlinkBase

        public final String getHyperlinkBase()

        Gets hyperlink base.

        Returns:
        The hyperlink base.
      • setHyperlinkBase

        public final void setHyperlinkBase(String value)

        Sets hyperlink base.

        Parameters:
        value - The hyperlink base.
      • getKeywords

        public final String getKeywords()

        Gets keywords.

        Returns:
        Keywords.
      • setKeywords

        public final void setKeywords(String value)

        Sets keywords.

        Parameters:
        value - Keywords.
      • getLastPrintedDate

        public final Date getLastPrintedDate()

        Gets last printed date in UTC.

        Returns:
        The last printed date.


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

      • getLastSavedBy

        public final String getLastSavedBy()

        Gets the name of the last author.


        Read-only property.

      • getManager

        public final String getManager()

        Gets manager.

        Returns:
        The manager.
      • setManager

        public final void setManager(String value)

        Sets manager.

        Parameters:
        value - The manager.
      • getNameOfApplication

        public final String getNameOfApplication()

        Gets name of application.

        Returns:
        The name of application.
      • setNameOfApplication

        public final void setNameOfApplication(String value)

        Sets name of application.

        Parameters:
        value - The name of application.
      • getRevisionNumber

        public final int getRevisionNumber()

        Gets revision number.

        Returns:
        The revision number.


        Read-only property.

      • getSubject

        public final String getSubject()

        Gets subject.

        Returns:
        The subject.
      • setSubject

        public final void setSubject(String value)

        Sets subject.

        Parameters:
        value - The subject.
      • getTemplate

        public final String getTemplate()

        Gets document template name.

        Returns:
        The template.
      • setTemplate

        public final void setTemplate(String value)

        Sets document template name.

        Parameters:
        value - The template.
      • getTitle

        public final String getTitle()

        Gets the title of the document.

        Returns:
        The title.
      • setTitle

        public final void setTitle(String value)

        Sets the title of the document.

        Parameters:
        value - The title.
      • getVersion

        public final String getVersion()

        Gets the document version.

        Returns:
        The version.


        It's format is "00.0000", for example : 18.0000.

      • getContentTypeProperties

        public final XlsContentProperty[] getContentTypeProperties()

        Gets the content properties.

        Returns:
        The content properties.
      • getContentProperties

        @Deprecated
        public final XlsContentProperty[] getContentProperties()
        Deprecated. 

        Gets the content properties.

        Returns:
        The content properties.
      • 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 bool 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)

        Returns true if metadata key is built-in in Excel document.

        Overrides:
        isBuiltIn in class DocumentMetadata<XlsMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is built-in.
      • isReadOnly

        public boolean isReadOnly(String key)

        Returns true if built-in metadata key is read-only in Excel document.

        Overrides:
        isReadOnly in class DocumentMetadata<XlsMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is read-only.
      • addContentTypeProperty

        public final void addContentTypeProperty(String name,
                                  String value,
                                  String propertyType)

        Adds the content type property.

        Parameters:
        name - Property name.
        value - Property value.
        propertyType - Property type.


        Not supported in ODS format.

        Throws:
        com.aspose.ms.System.ArgumentNullException - Property name could not be null or empty.
      • addContentTypeProperty

        public final void addContentTypeProperty(String name,
                                  String value)

        Adds the content type property.

        Parameters:
        name - Property name.
        value - Property value.
      • addContentTypeProperty

        public final void addContentTypeProperty(XlsContentProperty contentProperty)

        Adds the content type property.

        Parameters:
        contentProperty - The content type property.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Property could not be null.
        com.aspose.ms.System.ArgumentException - XlsContentProperty.Name could not be null or empty.
      • removeContentTypeProperty

        public final void removeContentTypeProperty(String propertyName)

        Removes the content type property.

        Parameters:
        propertyName - Name of the content type property.
        Throws:
        com.aspose.ms.System.ArgumentException - Property name could not be null or empty.
      • clearContentTypeProperties

        public final void clearContentTypeProperties()

        Removes all content type properties.


        Not supported in ODS format.