org.odftoolkit.odfdom
Class OdfXMLFactory
java.lang.Object
org.odftoolkit.odfdom.OdfXMLFactory
public class OdfXMLFactory
- extends java.lang.Object
This factory determines what elements are being used in the DOC layer
(ie. the convenient layer).
The mapping of ODF element to convenient class can be changed from the user
during run time.
For example, a user might want to create a table always with a certain style or default data and
might want to overwrite the mapping for {odf.element table:table}, that a different
class instead of OdfTable is being used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OdfXMLFactory
public OdfXMLFactory()
setOdfElementClass
public static void setOdfElementClass(OdfName odfName,
java.lang.Class className)
- Mapping an ODF element to a new Java DOM element class.
Note: There is a default class for each element being generated from the latest ODF schema
setOdfAttributeClass
public static void setOdfAttributeClass(OdfName odfName,
java.lang.Class className)
- Mapping an ODF attribute to a new Java DOM attribute class.
Note: There is a default class for each element being generated from the latest ODF schema.
getOdfAttributeClass
public static java.lang.Class getOdfAttributeClass(OdfName odfName)
- Parameters:
odfName - the name of the ODF attribute the desired DOM class should represent.
- Returns:
- the Java DOM attribute class to be mapped to a certain ODF attribute.
getOdfElementClass
public static java.lang.Class getOdfElementClass(OdfName odfName)
- Parameters:
odfName - the name of the ODF element the desired DOM class should represent.
- Returns:
- the Java DOM element class to be mapped to a certain ODF element.
newOdfElement
public static OdfElement newOdfElement(OdfFileDom ownerDocument,
OdfName name)
throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
newOdfAttribute
public static OdfAttribute newOdfAttribute(OdfFileDom ownerDocument,
OdfName name)
throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.