| org.mandarax.xkb.framework.XMLAdapter
All known Subclasses: org.mandarax.xkb.framework.AbstractXMLAdapter,
XMLAdapter | public interface XMLAdapter (Code) | | An XML adapter specifies how to convert an object to an element in the xml
document tree, and how to recover it from a (JDOM) element.
See Also: org.jdom.Element author: Jens Dietrich version: 3.4 <7 March 05> since: 1.6 |
exportObject | abstract public Element exportObject(Object obj, GenericDriver driver, Map cache) throws XKBException(Code) | | Export an object, i.e., convert it to an element in the DOM.
Parameters: obj - an object Parameters: driver - the generic driver Parameters: cache - a cache used in order to associate the sameid with various occurences of the same object exception: an - XKBException is thrown if export fails |
getKindOfObject | abstract public String getKindOfObject()(Code) | | Get the kind of object the adapter can export/import.
Hint: use the constants defined in GenericDriver
a string |
getTagName | abstract public String getTagName()(Code) | | Get the name of the associated tag (element).
a string |
importObject | abstract public Object importObject(Element e, GenericDriver driver, Map cache, LogicFactory lfactory) throws XKBException(Code) | | Build an object from an XML element.
Parameters: e - an element Parameters: driver - the generic driver Parameters: cache - a cache used to identify objects that have an id Parameters: lfactory - the logic factory used to create objects exception: an - XKBException is thrown if import fails |
|
|