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 or sets document's author.

        Value: The author.
      • setAuthor

        public final void setAuthor(String value)

        Gets or sets document's author.

        Value: The author.
      • getCategory

        public final String getCategory()

        Gets or sets category.

        Value: The category.
      • setCategory

        public final void setCategory(String value)

        Gets or sets category.

        Value: The category.
      • getComments

        public final String getComments()

        Gets or sets comments.

        Value: Comments value.
      • setComments

        public final void setComments(String value)

        Gets or sets comments.

        Value: Comments value.
      • 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 content status.

        Value: The content status.
      • getContentType

        public final String getContentType()

        Gets content type.

        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.

        Value: The hyperlink base.
      • setHyperlinkBase

        public final void setHyperlinkBase(String value)

        Gets or sets hyperlink base.

        Value: The hyperlink base.
      • getKeywords

        public final String getKeywords()

        Gets or sets keywords.

        Value: Keywords.
      • setKeywords

        public final void setKeywords(String value)

        Gets or sets keywords.

        Value: Keywords.
      • getLastPrintedDate

        public final Date getLastPrintedDate()

        Gets last printed date in UTC.

        Value: 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 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 or sets name of application.

        Value: The name of application.
      • setNameOfApplication

        public final void setNameOfApplication(String value)

        Gets or sets name of application.

        Value: The name of application.
      • getRevisionNumber

        public final int getRevisionNumber()

        Gets revision number.

        Value: The revision number.


        Read-only property.

      • getSubject

        public final String getSubject()

        Gets or sets subject.

        Value: The subject.
      • setSubject

        public final void setSubject(String value)

        Gets or sets subject.

        Value: The subject.
      • getTemplate

        public final String getTemplate()

        Gets or sets document template name.

        Value: The template.
      • setTemplate

        public final void setTemplate(String value)

        Gets or sets document template name.

        Value: The template.
      • getTitle

        public final String getTitle()

        Gets or sets the title of the document.

        Value: The title.
      • setTitle

        public final void setTitle(String value)

        Gets or sets the title of the document.

        Value: The title.
      • getVersion

        public final String getVersion()

        Gets the document version.

        Value: The version.


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

      • getContentTypeProperties

        public final XlsContentProperty[] getContentTypeProperties()

        Gets the content properties.

        Value: The content properties.
      • getContentProperties

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

        Gets the content properties.

        Value: 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.