Package org.odftoolkit.odfdom.pkg
Class OdfXMLFactory
- java.lang.Object
-
- org.odftoolkit.odfdom.pkg.OdfXMLFactory
-
public class OdfXMLFactory extends Object
This factory determines what elements are being used in the DOC layer (i.e. 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 ofOdfTable
is being used.
-
-
Constructor Summary
Constructors Constructor Description OdfXMLFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OdfAttribute
newOdfAttribute(OdfFileDom dom, OdfName name)
static OdfElement
newOdfElement(OdfFileDom dom, OdfName name)
-
-
-
Method Detail
-
newOdfElement
public static OdfElement newOdfElement(OdfFileDom dom, OdfName name) throws DOMException
- Throws:
DOMException
-
newOdfAttribute
public static OdfAttribute newOdfAttribute(OdfFileDom dom, OdfName name) throws DOMException
- Throws:
DOMException
-
-