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 document's author.
|
String |
getCategory()
Gets category.
|
String |
getComments()
Gets comments.
|
String |
getCompany()
Gets company.
|
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 hyperlink base.
|
protected XlsMetadataProperty |
getInstance() |
String |
getKeywords()
Gets keywords.
|
Date |
getLastPrintedDate()
Gets last printed date in UTC.
|
String |
getLastSavedBy()
Gets the name of the last author.
|
String |
getManager()
Gets manager.
|
String |
getNameOfApplication()
Gets name of application.
|
int |
getRevisionNumber()
Gets revision number.
|
String |
getSubject()
Gets subject.
|
String |
getTemplate()
Gets document template name.
|
String |
getTitle()
Gets 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)
Sets document's author.
|
void |
setCategory(String value)
Sets category.
|
void |
setComments(String value)
Sets comments.
|
void |
setCompany(String value)
Sets company.
|
void |
setHyperlinkBase(String value)
Sets hyperlink base.
|
void |
setKeywords(String value)
Sets keywords.
|
void |
setManager(String value)
Sets manager.
|
void |
setNameOfApplication(String value)
Sets name of application.
|
void |
setSubject(String value)
Sets subject.
|
void |
setTemplate(String value)
Sets document template name.
|
void |
setTitle(String value)
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 document's author.
public final void setAuthor(String value)
Sets document's author.
value
- The author.public final String getCategory()
Gets category.
public final void setCategory(String value)
Sets category.
value
- The category.public final String getComments()
Gets comments.
public final void setComments(String value)
Sets comments.
value
- Comments value.public final String getCompany()
Gets company.
public final void setCompany(String value)
Sets company.
value
- The company.public final String getContentStatus()
Gets content status.
public final String getContentType()
Gets content type.
public final Date getCreatedTime()
Gets document created date.
DateTime.MinValue
if not specified.
public final String getHyperlinkBase()
Gets hyperlink base.
public final void setHyperlinkBase(String value)
Sets hyperlink base.
value
- The hyperlink base.public final String getKeywords()
Gets keywords.
public final void setKeywords(String value)
Sets keywords.
value
- Keywords.public final Date getLastPrintedDate()
Gets last printed date in UTC.
DateTime.MinValue
if not specified.
public final String getLastSavedBy()
Gets the name of the last author.
public final String getManager()
Gets manager.
public final void setManager(String value)
Sets manager.
value
- The manager.public final String getNameOfApplication()
Gets name of application.
public final void setNameOfApplication(String value)
Sets name of application.
value
- The name of application.public final int getRevisionNumber()
Gets revision number.
public final String getSubject()
Gets subject.
public final void setSubject(String value)
Sets subject.
value
- The subject.public final String getTemplate()
Gets document template name.
public final void setTemplate(String value)
Sets document template name.
value
- The template.public final String getTitle()
Gets the title of the document.
public final void setTitle(String value)
Sets the title of the document.
value
- The title.public final String getVersion()
Gets the document version.
public final XlsContentProperty[] getContentTypeProperties()
Gets 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 © 2018. All rights reserved.