org.jopendocument.dom
Class ODMeta

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by 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"

Method Summary
 Calendar getCreationDate()
           
 String getCreator()
           
 org.jdom.Element getDCChild(String name)
           
 String getDescription()
           
 int getEditingCycles()
           
 String getGenerator()
           
 String getInitialCreator()
           
 List<String> getKeywords()
           
 String getLanguage()
           
 org.jdom.Element getMetaChild(String name)
           
 Calendar getModifDate()
           
protected  ODXMLDocument getParent()
           
 String getSubject()
           
 String getTitle()
           
 ODUserDefinedMeta getUserMeta(String name)
          Return the metadata with the passed name.
 ODUserDefinedMeta getUserMeta(String name, boolean create)
          Return the metadata with the passed name, optionnaly creating it.
 ODUserDefinedMeta getUserMeta(String name, Integer index)
          Return the metadata with the passed name, optionnaly creating it.
 List<String> getUserMetaNames()
           
 boolean removeMetaChild(String name)
           
 void removeUserMeta(String name)
           
 void setCreationDate(Calendar cal)
           
 void setCreator(String s)
           
 void setDescription(String s)
           
 void setEditingCycles(int s)
           
 void setGenerator(String s)
           
 void setInitialCreator(String s)
           
 void setKeywords(List<String> s)
           
 void setLanguage(String s)
           
 void setModifDate(Calendar cal)
           
 void setSubject(String s)
           
 void setTitle(String s)
           
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.