public class XmlDelegateImpl extends java.lang.Object implements XmlDelegate
XmlDelegate
interface. By default
it turns around and tells the encoder to create the element and to create the object.Constructor and Description |
---|
XmlDelegateImpl()
Do nothing ctor.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
createElement(XmlEncoder encoder,
java.lang.Object object)
Create the xml element for the given object.
|
java.lang.Object |
createObject(XmlEncoder encoder,
org.w3c.dom.Element element)
Create the Object defined by the given xml element.
|
public org.w3c.dom.Element createElement(XmlEncoder encoder, java.lang.Object object)
createElement
in interface XmlDelegate
encoder
- The XmlEncoder that is calling this method.object
- The Object to encode.public java.lang.Object createObject(XmlEncoder encoder, org.w3c.dom.Element element)
createObject
in interface XmlDelegate
encoder
- The XmlEncoder that is calling this method.element
- The xml that defines the object.