|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.incubator.meta.OdfOfficeMeta
public class OdfOfficeMeta
OdfOfficeMeta represent the meta data feature in the ODF document.
It provides convenient method to get meta data info.
| Constructor Summary | |
|---|---|
OdfOfficeMeta(OdfFileDom metaDom)
Constructor of OdfOfficeMeta feature. |
|
| Method Summary | |
|---|---|
void |
addKeyword(java.lang.String keyword)
Add the keyword to the current document. |
OdfMetaAutoReload |
getAutoReload()
Receives the OdfMetaAutoReload feature. |
java.util.Calendar |
getCreationDate()
Receives the value of the ODFDOM element representation MetaCreationDateElement , See |
java.lang.String |
getCreator()
Receives the value of the ODFDOM element representation DcCreatorElement , See |
java.util.Calendar |
getDcdate()
Receives the value of the ODFDOM element representation DcDateElement , See . |
java.lang.String |
getDescription()
Receives the value of the ODFDOM element representation DcDescriptionElement , See . |
OdfMetaDocumentStatistic |
getDocumentStatistic()
Receives the sub feature of OdfMetaDocumentStatistic. |
java.lang.Integer |
getEditingCycles()
Receives the value of the ODFDOM element representation MetaEditingCyclesElement , See . |
Duration |
getEditingDuration()
Receives the value of the ODFDOM element representation MetaEditingDurationElement , See . |
java.lang.String |
getGenerator()
Receives the value of the ODFDOM element representation MetaGeneratorElement , See . |
OdfMetaHyperlinkBehaviour |
getHyperlinkBehaviour()
Receives the OdfMetaHyperlinkBehaviour feature. |
java.lang.String |
getInitialCreator()
Receives the value of the ODFDOM element representation MetaInitialCreatorElement , See . |
java.util.List<java.lang.String> |
getKeywords()
Receives the list value of the ODFDOM element representation MetaKeywordElement , See . |
java.lang.String |
getLanguage()
Receives the value of the ODFDOM element representation DcLanguageElement , See . |
OfficeMetaElement |
getOfficeMetaElement()
Get the instance of OfficeMetaElement which represents this feature. |
java.util.Calendar |
getPrintDate()
Receives the value of the ODFDOM element representation MetaPrintDateElement , See . |
java.lang.String |
getPrintedBy()
Receives the value of the ODFDOM element representation MetaPrintedByElement , See |
java.lang.String |
getSubject()
Receives the value of the ODFDOM element representation DcSubjectElement , See . |
OdfMetaTemplate |
getTemplate()
Receives the OdfMetaTemplate feature. |
java.lang.String |
getTitle()
Receives the value of the ODFDOM element representation DcTitleElement , See . |
java.util.List<java.lang.String> |
getUserDefinedDataNames()
Receives the list value of the ODFDOM element representation MetaUserDefinedElement , See . |
java.lang.String |
getUserDefinedDataType(java.lang.String name)
Receives the data type of the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
java.lang.String |
getUserDefinedDataValue(java.lang.String name)
Receives the value of the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
MetaUserDefinedElement |
getUserDefinedElementByAttributeName(java.lang.String name)
Receives the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
void |
removeUserDefinedDataByName(java.lang.String name)
Remove the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
void |
setCreationDate(java.util.Calendar creationDate)
Sets the value of the ODFDOM element representation MetaCreationDateElement , See . |
void |
setCreator(java.lang.String creator)
Sets the value of the ODFDOM element representation DcCreatorElement , See . |
void |
setDcdate(java.util.Calendar dcdate)
Sets the value of the ODFDOM element representation DcDateElement , See . |
void |
setDescription(java.lang.String description)
Sets the value of the ODFDOM element representation DcDescriptionElement , See . |
void |
setEditingCycles(java.lang.Integer editingCycles)
Sets the value of the ODFDOM element representation MetaEditingCyclesElement , See . |
void |
setEditingDuration(Duration editingDuration)
Sets the value of the ODFDOM element representation MetaEditingDurationElement , See . |
void |
setGenerator(java.lang.String generator)
Sets the value of the ODFDOM element representation MetaGeneratorElement , See . |
void |
setInitialCreator(java.lang.String initialCreator)
Sets the value of the ODFDOM element representation MetaInitialCreatorElement , See . |
void |
setKeywords(java.util.List<java.lang.String> keyList)
Sets the list value of the ODFDOM element representation MetaKeywordElement , See . |
void |
setLanguage(java.lang.String language)
Sets the value of the ODFDOM element representation DcLanguageElement , See . |
void |
setPrintDate(java.util.Calendar printDate)
Sets the value of the ODFDOM element representation MetaPrintDateElement , See . |
void |
setPrintedBy(java.lang.String printedBy)
Sets the value of the ODFDOM element representation MetaPrintedByElement , See . |
void |
setSubject(java.lang.String subject)
Sets the value of the ODFDOM element representation DcSubjectElement , See . |
void |
setTitle(java.lang.String title)
Sets the value of the ODFDOM element representation DcTitleElement , See . |
void |
setUserDefinedData(java.lang.String name,
java.lang.String type,
java.lang.String value)
Sets the ODFDOM element representation MetaUserDefinedElement , See 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(java.lang.String name,
java.lang.String value)
Sets the data type of the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
void |
setUserDefinedDataValue(java.lang.String name,
java.lang.String value)
Sets the value of the ODFDOM element representation MetaUserDefinedElement by attribute name, See . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OdfOfficeMeta(OdfFileDom metaDom)
OdfOfficeMeta feature.
metaDom - the file DOM element of meta.xml| Method Detail |
|---|
public OfficeMetaElement getOfficeMetaElement()
OfficeMetaElement which represents this feature.
public java.lang.String getGenerator()
MetaGeneratorElement , See .
null, if the element is not set.
public void setGenerator(java.lang.String generator)
MetaGeneratorElement , See .
generator - set the specified document generatorpublic java.lang.String getTitle()
DcTitleElement , See .
null, if the element is not set.
public void setTitle(java.lang.String title)
DcTitleElement , See .
title - set the specified document titlepublic java.lang.String getDescription()
DcDescriptionElement , See .
null, if the element is not set.
public void setDescription(java.lang.String description)
DcDescriptionElement , See .
description - set the specified document descriptionpublic java.lang.String getSubject()
DcSubjectElement , See .
null, if the element is not set.
public void setSubject(java.lang.String subject)
DcSubjectElement , See .
subject - set the specified document subjectpublic java.util.List<java.lang.String> getKeywords()
MetaKeywordElement , See .
null, if the element is not set.
public void setKeywords(java.util.List<java.lang.String> keyList)
MetaKeywordElement , See .
keyList - set the specified list of keywordspublic void addKeyword(java.lang.String keyword)
keyword - the value of child element .public java.util.List<java.lang.String> getUserDefinedDataNames()
MetaUserDefinedElement , See .
null, if the element is not set.
public MetaUserDefinedElement getUserDefinedElementByAttributeName(java.lang.String name)
MetaUserDefinedElement by attribute name, See .
name - the name of the user-defined metadata
MetaUserDefinedElement which is identified by the specified name;
null, if the element is not set.
public java.lang.String getUserDefinedDataValue(java.lang.String name)
MetaUserDefinedElement by attribute name, See .
name - the name of the user-defined metadata
null, if the element is not set.
public java.lang.String getUserDefinedDataType(java.lang.String name)
MetaUserDefinedElement by attribute name, See .
name - the name of the user-defined metadata
null, if the element is not set.
public void removeUserDefinedDataByName(java.lang.String name)
MetaUserDefinedElement by attribute name, See .
name - the name of the user-defined metadata
public void setUserDefinedDataValue(java.lang.String name,
java.lang.String value)
MetaUserDefinedElement by attribute name, See .
name - the name need to set for the user-defined metadatavalue - the value need to set for the user-defined metadata
public void setUserDefinedDataType(java.lang.String name,
java.lang.String value)
MetaUserDefinedElement by attribute name, See .
name - the name need to set for the user-defined metadatavalue - the value need to set for the user-defined metadata
public void setUserDefinedData(java.lang.String name,
java.lang.String type,
java.lang.String value)
MetaUserDefinedElement , See 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 metadatapublic java.lang.String getInitialCreator()
MetaInitialCreatorElement , See .
null, if the element is not set.
public void setInitialCreator(java.lang.String initialCreator)
MetaInitialCreatorElement , See .
initialCreator - set the specified initial creatorpublic java.lang.String getCreator()
DcCreatorElement , See
null, if the element is not set.
public void setCreator(java.lang.String creator)
DcCreatorElement , See .
creator - set the specified creatorpublic java.lang.String getPrintedBy()
MetaPrintedByElement , See
null, if element is not set
public void setPrintedBy(java.lang.String printedBy)
MetaPrintedByElement , See .
printedBy - the name need to set for the last person who printed the current documentpublic java.util.Calendar getCreationDate()
MetaCreationDateElement , See
null, if element is not set
public void setCreationDate(java.util.Calendar creationDate)
MetaCreationDateElement , See .
creationDate - the date and time need to setpublic java.util.Calendar getDcdate()
DcDateElement , See .
null, if the element is not set.
public void setDcdate(java.util.Calendar dcdate)
DcDateElement , See .
dcdate - the date and time need to setpublic java.util.Calendar getPrintDate()
MetaPrintDateElement , See .
null, if the element is not set.
public void setPrintDate(java.util.Calendar printDate)
MetaPrintDateElement , See .
printDate - the date and time need to setpublic java.lang.String getLanguage()
DcLanguageElement , See .
null, if the element is not set.
public void setLanguage(java.lang.String language)
DcLanguageElement , See .
language - the default language need to set fo the current documentpublic java.lang.Integer getEditingCycles()
MetaEditingCyclesElement , See .
null, if the element is not set.
public void setEditingCycles(java.lang.Integer editingCycles)
MetaEditingCyclesElement , See .
editingCycles - set the specified edit timespublic Duration getEditingDuration()
MetaEditingDurationElement , See .
null, if the element is not set.
public void setEditingDuration(Duration editingDuration)
MetaEditingDurationElement , See .
editingDuration - the time need to setpublic OdfMetaDocumentStatistic getDocumentStatistic()
OdfMetaDocumentStatistic feature;
null, if the feature is not exist.
public OdfMetaHyperlinkBehaviour getHyperlinkBehaviour()
OdfMetaHyperlinkBehaviour feature;
null, if the feature is not exist.
public OdfMetaAutoReload getAutoReload()
It can be represented by OdfMetaAutoReload feature;
null, if the feature is not exist.
public OdfMetaTemplate getTemplate()
It can be represented by OdfMetaTemplate feature;
null, if the feature is not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||