|
||||||||||
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.xmlMethod Detail |
---|
public OfficeMetaElement getOfficeMetaElement()
OfficeMetaElement
which represents this feature.
public String getGenerator()
MetaGeneratorElement
.
null
, if the element is not set.
MetaGeneratorElement
public void setGenerator(String generator)
MetaGeneratorElement
.
generator
- set the specified document generator.MetaGeneratorElement
public String getTitle()
DcTitleElement
.
null
, if the element is not set.
DcTitleElement
public void setTitle(String title)
DcTitleElement
.
title
- set the specified document titleDcTitleElement
public String getDescription()
DcDescriptionElement
.
null
, if the element is not set.
DcDescriptionElement
public void setDescription(String description)
DcDescriptionElement
.
description
- set the specified document descriptionDcDescriptionElement
public String getSubject()
DcSubjectElement
.
null
, if the element is not set.
DcSubjectElement
public void setSubject(String subject)
DcSubjectElement
.
subject
- set the specified document subject.DcSubjectElement
public List<String> getKeywords()
MetaKeywordElement
.
null
, if the element is not set.
MetaKeywordElement
public void setKeywords(List<String> keyList)
MetaKeywordElement
.
keyList
- set the specified list of keywords.MetaKeywordElement
public void addKeyword(String keyword)
MetaKeywordElement
.
keyword
- the value of child element MetaKeywordElement
.MetaKeywordElement
public List<String> getUserDefinedDataNames()
MetaUserDefinedElement
.
null
, if the element is not set.
MetaUserDefinedElement
public 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.
MetaUserDefinedElement
public String getUserDefinedDataValue(String name)
MetaUserDefinedElement
by attribute name.
name
- the name of the user-defined metadata
null
, if the element is not set.
MetaUserDefinedElement
public String getUserDefinedDataType(String name)
MetaUserDefinedElement
by attribute name.
name
- the name of the user-defined metadata
null
, if the element is not set.
MetaUserDefinedElement
public 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 metadataMetaUserDefinedElement
public String getInitialCreator()
MetaInitialCreatorElement
.
null
, if the element is not set.
MetaInitialCreatorElement
public void setInitialCreator(String initialCreator)
MetaInitialCreatorElement
.
initialCreator
- set the specified initial creatorMetaInitialCreatorElement
public String getCreator()
DcCreatorElement
.
null
, if the element is not set.
DcCreatorElement
public void setCreator(String creator)
DcCreatorElement
.
creator
- set the specified creatorDcCreatorElement
public String getPrintedBy()
MetaPrintedByElement
null
, if element is not set
MetaPrintedByElement
public void setPrintedBy(String printedBy)
MetaPrintedByElement
.
printedBy
- the name need to set for the last person who printed the current documentMetaPrintedByElement
public Calendar getCreationDate()
MetaCreationDateElement
null
, if element is not set
MetaCreationDateElement
public void setCreationDate(Calendar creationDate)
MetaCreationDateElement
.
creationDate
- the date and time need to setMetaCreationDateElement
public Calendar getDcdate()
DcDateElement
.
null
, if the element is not set.
DcDateElement
public void setDcdate(Calendar dcdate)
DcDateElement
.
dcdate
- the date and time need to setDcDateElement
public Calendar getPrintDate()
MetaPrintDateElement
.
null
, if the element is not set.
MetaPrintDateElement
public void setPrintDate(Calendar printDate)
MetaPrintDateElement
.
printDate
- the date and time need to setMetaPrintDateElement
public String getLanguage()
DcLanguageElement
.
null
, if the element is not set.
DcLanguageElement
public void setLanguage(String language)
DcLanguageElement
.
language
- the default language need to set fo the current documentDcLanguageElement
public Integer getEditingCycles()
MetaEditingCyclesElement
.
null
, if the element is not set.
MetaEditingCyclesElement
public void setEditingCycles(Integer editingCycles)
MetaEditingCyclesElement
.
editingCycles
- set the specified edit timesMetaEditingCyclesElement
public Duration getEditingDuration()
MetaEditingDurationElement
.
null
, if the element is not set.
MetaEditingDurationElement
public void setEditingDuration(Duration editingDuration)
MetaEditingDurationElement
.
editingDuration
- the time need to setMetaEditingDurationElement
public 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 |