|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.meta.Meta
public class Meta
Meta represent the meta data feature in the ODF document.
It provides convenient method to get meta data info.
| Constructor Summary | |
|---|---|
Meta(OdfFileDom metaDom)
Constructor of Meta feature. |
|
| Method Summary | |
|---|---|
void |
addKeyword(String keyword)
Add the keyword to the current document. |
Calendar |
getCreationDate()
Receives the value of the odf dom element representation MetaCreationDateElement |
String |
getCreator()
Receives the value of the odf dom element representation DcCreatorElement. |
Calendar |
getDcdate()
Receives the value of the odf dom element representation DcDateElement. |
String |
getDescription()
Receives the value of the odf dom element representation DcDescriptionElement. |
DocumentStatistic |
getDocumentStatistic()
Receives the sub feature of DocumentStatistic. |
Integer |
getEditingCycles()
Receives the value of the odf dom element representation MetaEditingCyclesElement . |
Duration |
getEditingDuration()
Receives the value of the odf dom element representation MetaEditingDurationElement. |
String |
getGenerator()
Receives the value of the odf dom element representation MetaGeneratorElement. |
String |
getInitialCreator()
Receives the value of the odf dom element representation MetaInitialCreatorElement. |
List<String> |
getKeywords()
Receives the list value of the odf dom element representation MetaKeywordElement. |
String |
getLanguage()
Receives the value of the odf dom element representation DcLanguageElement. |
OfficeMetaElement |
getOfficeMetaElement()
Get the instance of OfficeMetaElement which represents this feature. |
Calendar |
getPrintDate()
Receives the value of the odf dom element representation MetaPrintDateElement. |
String |
getPrintedBy()
Receives the value of the odf dom element representation MetaPrintedByElement |
String |
getSubject()
Receives the value of the odf dom element representation DcSubjectElement. |
String |
getTitle()
Receives the value of the odf dom element representation DcTitleElement. |
List<String> |
getUserDefinedDataNames()
Receives the list value of the odf dom element representation MetaUserDefinedElement. |
String |
getUserDefinedDataType(String name)
Receives the data type of the odf dom element representation MetaUserDefinedElement by attribute name. |
String |
getUserDefinedDataValue(String name)
Receives the value of the odf dom element representation MetaUserDefinedElement by attribute name. |
MetaUserDefinedElement |
getUserDefinedElementByAttributeName(String name)
Receives the odf dom element representation MetaUserDefinedElement by attribute name. |
void |
removeUserDefinedDataByName(String name)
Remove the odf dom element representation MetaUserDefinedElement by attribute name. |
void |
setCreationDate(Calendar creationDate)
Sets the value of the odf dom element representation MetaCreationDateElement . |
void |
setCreator(String creator)
Sets the value of the odf dom element representation DcCreatorElement. |
void |
setDcdate(Calendar dcdate)
Sets the value of the odf dom element representation DcDateElement. |
void |
setDescription(String description)
Sets the value of the odf dom element representation DcDescriptionElement. |
void |
setEditingCycles(Integer editingCycles)
Sets the value of the odf dom element representation MetaEditingCyclesElement . |
void |
setEditingDuration(Duration editingDuration)
Sets the value of the odf dom element representation MetaEditingDurationElement. |
void |
setGenerator(String generator)
Sets the value of the odf dom element representation MetaGeneratorElement. |
void |
setInitialCreator(String initialCreator)
Sets the value of the odf dom element representation MetaInitialCreatorElement. |
void |
setKeywords(List<String> keyList)
Sets the list value of the odf dom element representation MetaKeywordElement. |
void |
setLanguage(String language)
Sets the value of the odf dom element representation DcLanguageElement. |
void |
setPrintDate(Calendar printDate)
Sets the value of the odf dom element representation MetaPrintDateElement. |
void |
setPrintedBy(String printedBy)
Sets the value of the odf dom element representation MetaPrintedByElement. |
void |
setSubject(String subject)
Sets the value of the odf dom element representation DcSubjectElement. |
void |
setTitle(String title)
Sets the value of the odf dom element representation DcTitleElement. |
void |
setUserDefinedData(String name,
String type,
String value)
Sets the odf dom element representation MetaUserDefinedElement, if the element with the attribute name exists,then
update;or create a new element if type or value is null,the original will
not be updated. |
void |
setUserDefinedDataType(String name,
String value)
Sets the data type of the odf dom element representation MetaUserDefinedElement by attribute name. |
void |
setUserDefinedDataValue(String name,
String value)
Sets the value of the odf dom element representation MetaUserDefinedElement by attribute name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Meta(OdfFileDom metaDom)
Meta feature.
metaDom - the file DOM element of meta.xml| Method Detail |
|---|
public OfficeMetaElement getOfficeMetaElement()
OfficeMetaElement which represents this feature.
public String getGenerator()
MetaGeneratorElement.
null, if the element is not set.
MetaGeneratorElementpublic void setGenerator(String generator)
MetaGeneratorElement.
generator - set the specified document generator.MetaGeneratorElementpublic String getTitle()
DcTitleElement.
null, if the element is not set.
DcTitleElementpublic void setTitle(String title)
DcTitleElement.
title - set the specified document titleDcTitleElementpublic String getDescription()
DcDescriptionElement.
null, if the element is not set.
DcDescriptionElementpublic void setDescription(String description)
DcDescriptionElement.
description - set the specified document descriptionDcDescriptionElementpublic String getSubject()
DcSubjectElement.
null, if the element is not set.
DcSubjectElementpublic void setSubject(String subject)
DcSubjectElement.
subject - set the specified document subject.DcSubjectElementpublic List<String> getKeywords()
MetaKeywordElement.
null, if the element is not set.
MetaKeywordElementpublic void setKeywords(List<String> keyList)
MetaKeywordElement.
keyList - set the specified list of keywords.MetaKeywordElementpublic void addKeyword(String keyword)
MetaKeywordElement.
keyword - the value of child element MetaKeywordElement.MetaKeywordElementpublic List<String> getUserDefinedDataNames()
MetaUserDefinedElement.
null, if the element is not set.
MetaUserDefinedElementpublic MetaUserDefinedElement getUserDefinedElementByAttributeName(String name)
MetaUserDefinedElement by attribute name.
name - the name of the user-defined metadata
MetaUserDefinedElement which is identified by the specified name;
null, if the element is not set.
MetaUserDefinedElementpublic String getUserDefinedDataValue(String name)
MetaUserDefinedElement by attribute name.
name - the name of the user-defined metadata
null, if the element is not set.
MetaUserDefinedElementpublic String getUserDefinedDataType(String name)
MetaUserDefinedElement by attribute name.
name - the name of the user-defined metadata
null, if the element is not set.
MetaUserDefinedElementpublic void removeUserDefinedDataByName(String name)
MetaUserDefinedElement by attribute name.
name - the name of the user-defined metadataMetaUserDefinedElement
public void setUserDefinedDataValue(String name,
String value)
MetaUserDefinedElement by attribute name.
name - the name need to set for the user-defined metadatavalue - the value need to set for the user-defined metadataMetaUserDefinedElement
public void setUserDefinedDataType(String name,
String value)
MetaUserDefinedElement by attribute name.
name - the name need to set for the user-defined metadatavalue - the value need to set for the user-defined metadataMetaUserDefinedElement
public void setUserDefinedData(String name,
String type,
String value)
MetaUserDefinedElement, if the element with the attribute name exists,then
update;or create a new element if type or value is null,the original will
not be updated.
name - the name need to set for the user-defined metadatatype - the data type need to set for the user-defined metadatavalue - the value need to set for the user-defined metadataMetaUserDefinedElementpublic String getInitialCreator()
MetaInitialCreatorElement.
null, if the element is not set.
MetaInitialCreatorElementpublic void setInitialCreator(String initialCreator)
MetaInitialCreatorElement.
initialCreator - set the specified initial creatorMetaInitialCreatorElementpublic String getCreator()
DcCreatorElement.
null, if the element is not set.
DcCreatorElementpublic void setCreator(String creator)
DcCreatorElement.
creator - set the specified creatorDcCreatorElementpublic String getPrintedBy()
MetaPrintedByElement
null, if element is not set
MetaPrintedByElementpublic void setPrintedBy(String printedBy)
MetaPrintedByElement.
printedBy - the name need to set for the last person who printed the current documentMetaPrintedByElementpublic Calendar getCreationDate()
MetaCreationDateElement
null, if element is not set
MetaCreationDateElementpublic void setCreationDate(Calendar creationDate)
MetaCreationDateElement .
creationDate - the date and time need to setMetaCreationDateElementpublic Calendar getDcdate()
DcDateElement.
null, if the element is not set.
DcDateElementpublic void setDcdate(Calendar dcdate)
DcDateElement.
dcdate - the date and time need to setDcDateElementpublic Calendar getPrintDate()
MetaPrintDateElement.
null, if the element is not set.
MetaPrintDateElementpublic void setPrintDate(Calendar printDate)
MetaPrintDateElement.
printDate - the date and time need to setMetaPrintDateElementpublic String getLanguage()
DcLanguageElement.
null, if the element is not set.
DcLanguageElementpublic void setLanguage(String language)
DcLanguageElement.
language - the default language need to set fo the current documentDcLanguageElementpublic Integer getEditingCycles()
MetaEditingCyclesElement .
null, if the element is not set.
MetaEditingCyclesElementpublic void setEditingCycles(Integer editingCycles)
MetaEditingCyclesElement .
editingCycles - set the specified edit timesMetaEditingCyclesElementpublic Duration getEditingDuration()
MetaEditingDurationElement.
null, if the element is not set.
MetaEditingDurationElementpublic void setEditingDuration(Duration editingDuration)
MetaEditingDurationElement.
editingDuration - the time need to setMetaEditingDurationElementpublic DocumentStatistic getDocumentStatistic()
DocumentStatistic feature;
null, if the feature is not exist.
DocumentStatistic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||