org.jopendocument.dom
Class ODMeta
java.lang.Object
org.jopendocument.dom.ODNode
org.jopendocument.dom.ODMeta
public class ODMeta
- extends ODNode
OpenDocument metadata, obtained through ODPackage.getMeta()
.
- Author:
- Sylvain
- See Also:
- "section 3 of OpenDocument v1.1"
getParent
protected final ODXMLDocument getParent()
getGenerator
public final String getGenerator()
setGenerator
public final void setGenerator(String s)
getTitle
public final String getTitle()
setTitle
public final void setTitle(String s)
getDescription
public final String getDescription()
setDescription
public final void setDescription(String s)
getSubject
public final String getSubject()
setSubject
public final void setSubject(String s)
getKeywords
public final List<String> getKeywords()
setKeywords
public final void setKeywords(List<String> s)
getInitialCreator
public final String getInitialCreator()
setInitialCreator
public final void setInitialCreator(String s)
getCreator
public final String getCreator()
setCreator
public final void setCreator(String s)
getCreationDate
public final Calendar getCreationDate()
setCreationDate
public final void setCreationDate(Calendar cal)
getModifDate
public final Calendar getModifDate()
setModifDate
public final void setModifDate(Calendar cal)
getLanguage
public final String getLanguage()
setLanguage
public final void setLanguage(String s)
getEditingCycles
public final int getEditingCycles()
setEditingCycles
public final void setEditingCycles(int s)
getUserMeta
public final ODUserDefinedMeta getUserMeta(String name)
- Return the metadata with the passed name.
- Parameters:
name
- the name of user metadata.
- Returns:
- the requested metadata, or
null
if none is found.
getUserMeta
public final ODUserDefinedMeta getUserMeta(String name,
boolean create)
- Return the metadata with the passed name, optionnaly creating it.
- Parameters:
name
- the name of user metadata.create
- true
if it should be created.
- Returns:
- the requested metadata, or
null
if none is found and create
is false
.
getUserMeta
public final ODUserDefinedMeta getUserMeta(String name,
Integer index)
- Return the metadata with the passed name, optionnaly creating it.
- Parameters:
name
- the name of user metadata.index
- if and where it should be created, null
means do not add.
- Returns:
- the requested metadata, or
null
if none is found and create
is false
.
removeUserMeta
public final void removeUserMeta(String name)
getUserMetaNames
public final List<String> getUserMetaNames()
throws org.jdom.JDOMException
- Throws:
org.jdom.JDOMException
getMetaChild
public final org.jdom.Element getMetaChild(String name)
removeMetaChild
public final boolean removeMetaChild(String name)
getDCChild
public final org.jdom.Element getDCChild(String name)
Copyright © 2010 jOpenDocument All Rights Reserved.