public final class XlsMetadata extends DocumentMetadata<XlsMetadataProperty>
Represents metadata in DocumentType.Xls
document.
Constructor and Description |
---|
XlsMetadata()
Initializes a new instance of the
XlsMetadata class. |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
boolean value)
Adds metadata with bool value.
|
void |
add(String key,
Date value)
Adds
DateTime metadata. |
void |
add(String key,
double value)
Adds metadata with double value.
|
void |
add(String key,
int value)
Adds metadata with integer value.
|
void |
add(String key,
String value)
Adds metadata with string value.
|
void |
addContentTypeProperty(String name,
String value)
Adds the content type property.
|
void |
addContentTypeProperty(String name,
String value,
String propertyType)
Adds the content type property.
|
void |
addContentTypeProperty(XlsContentProperty contentProperty)
Adds the content type property.
|
void |
clearContentTypeProperties()
Removes all content type properties.
|
String |
getAuthor()
Gets or sets document's author.
|
String |
getCategory()
Gets or sets category.
|
String |
getComments()
Gets or sets comments.
|
String |
getCompany()
Gets or sets company.
|
XlsContentProperty[] |
getContentProperties()
Deprecated.
|
String |
getContentStatus()
Gets content status.
|
String |
getContentType()
Gets content type.
|
XlsContentProperty[] |
getContentTypeProperties()
Gets the content properties.
|
Date |
getCreatedTime()
Gets document created date.
|
String |
getHyperlinkBase()
Gets or sets hyperlink base.
|
protected XlsMetadataProperty |
getInstance() |
String |
getKeywords()
Gets or sets keywords.
|
Date |
getLastPrintedDate()
Gets last printed date in UTC.
|
String |
getLastSavedBy()
Gets the name of the last author.
|
String |
getManager()
Gets or sets manager.
|
String |
getNameOfApplication()
Gets or sets name of application.
|
int |
getRevisionNumber()
Gets revision number.
|
String |
getSubject()
Gets or sets subject.
|
String |
getTemplate()
Gets or sets document template name.
|
String |
getTitle()
Gets or sets the title of the document.
|
String |
getVersion()
Gets the document version.
|
boolean |
isBuiltIn(String key)
Returns true if metadata key is built-in in Excel document.
|
boolean |
isReadOnly(String key)
Returns true if built-in metadata key is read-only in Excel document.
|
void |
removeContentTypeProperty(String propertyName)
Removes the content type property.
|
void |
setAuthor(String value)
Gets or sets document's author.
|
void |
setCategory(String value)
Gets or sets category.
|
void |
setComments(String value)
Gets or sets comments.
|
void |
setCompany(String value)
Gets or sets company.
|
void |
setHyperlinkBase(String value)
Gets or sets hyperlink base.
|
void |
setKeywords(String value)
Gets or sets keywords.
|
void |
setManager(String value)
Gets or sets manager.
|
void |
setNameOfApplication(String value)
Gets or sets name of application.
|
void |
setSubject(String value)
Gets or sets subject.
|
void |
setTemplate(String value)
Gets or sets document template name.
|
void |
setTitle(String value)
Gets or sets the title of the document.
|
clear, clearBuiltInData, clearCustomData, containsKey, getCollection, getCount, getKeys, readPropertyValue, remove, setValueByKey
getByType, getMetadataType, readByStringKey
public XlsMetadata()
Initializes a new instance of the XlsMetadata
class.
public final String getAuthor()
Gets or sets document's author.
Value: The author.public final void setAuthor(String value)
Gets or sets document's author.
Value: The author.public final String getCategory()
Gets or sets category.
Value: The category.public final void setCategory(String value)
Gets or sets category.
Value: The category.public final String getComments()
Gets or sets comments.
Value: Comments value.public final void setComments(String value)
Gets or sets comments.
Value: Comments value.public final String getCompany()
Gets or sets company.
Value: The company.public final void setCompany(String value)
Gets or sets company.
Value: The company.public final String getContentStatus()
Gets content status.
Value: The content status.public final String getContentType()
Gets content type.
Value: The type of the content.public final Date getCreatedTime()
Gets document created date.
Value: The created time.DateTime.MinValue
if not specified.
public final String getHyperlinkBase()
Gets or sets hyperlink base.
Value: The hyperlink base.public final void setHyperlinkBase(String value)
Gets or sets hyperlink base.
Value: The hyperlink base.public final String getKeywords()
Gets or sets keywords.
Value: Keywords.public final void setKeywords(String value)
Gets or sets keywords.
Value: Keywords.public final Date getLastPrintedDate()
Gets last printed date in UTC.
Value: The last printed date.DateTime.MinValue
if not specified.
public final String getLastSavedBy()
Gets the name of the last author.
public final String getManager()
Gets or sets manager.
Value: The manager.public final void setManager(String value)
Gets or sets manager.
Value: The manager.public final String getNameOfApplication()
Gets or sets name of application.
Value: The name of application.public final void setNameOfApplication(String value)
Gets or sets name of application.
Value: The name of application.public final int getRevisionNumber()
Gets revision number.
Value: The revision number.public final String getSubject()
Gets or sets subject.
Value: The subject.public final void setSubject(String value)
Gets or sets subject.
Value: The subject.public final String getTemplate()
Gets or sets document template name.
Value: The template.public final void setTemplate(String value)
Gets or sets document template name.
Value: The template.public final String getTitle()
Gets or sets the title of the document.
Value: The title.public final void setTitle(String value)
Gets or sets the title of the document.
Value: The title.public final String getVersion()
Gets the document version.
Value: The version.public final XlsContentProperty[] getContentTypeProperties()
Gets the content properties.
Value: The content properties.@Deprecated public final XlsContentProperty[] getContentProperties()
Gets the content properties.
Value: The content properties.public final void add(String key, String value)
Adds metadata with string value.
key
- Metadata key.value
- Metadata value.public final void add(String key, boolean value)
Adds metadata with bool value.
key
- Metadata key.value
- Metadata value.public final void add(String key, Date value)
Adds DateTime
metadata.
key
- Metadata key.value
- Metadata value.public final void add(String key, int value)
Adds metadata with integer value.
key
- Metadata key.value
- Metadata value.public final void add(String key, double value)
Adds metadata with double value.
key
- Metadata key.value
- Metadata value.public boolean isBuiltIn(String key)
Returns true if metadata key is built-in in Excel document.
isBuiltIn
in class DocumentMetadata<XlsMetadataProperty>
key
- Metadata key.public boolean isReadOnly(String key)
Returns true if built-in metadata key is read-only in Excel document.
isReadOnly
in class DocumentMetadata<XlsMetadataProperty>
key
- Metadata key.public final void addContentTypeProperty(String name, String value, String propertyType)
Adds the content type property.
name
- Property name.value
- Property value.propertyType
- Property type.
com.aspose.ms.System.ArgumentNullException
- Property name could not be null or empty.public final void addContentTypeProperty(String name, String value)
Adds the content type property.
name
- Property name.value
- Property value.public final void addContentTypeProperty(XlsContentProperty contentProperty)
Adds the content type property.
contentProperty
- The content type property.com.aspose.ms.System.ArgumentNullException
- Property could not be null.com.aspose.ms.System.ArgumentException
- XlsContentProperty.Name could not be null or empty.public final void removeContentTypeProperty(String propertyName)
Removes the content type property.
propertyName
- Name of the content type property.com.aspose.ms.System.ArgumentException
- Property name could not be null or empty.public final void clearContentTypeProperties()
Removes all content type properties.
protected XlsMetadataProperty getInstance()
getInstance
in class DocumentMetadata<XlsMetadataProperty>
Copyright © 2017. All rights reserved.