|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.databeans.io.XmlDefaultEncoder
public class XmlDefaultEncoder
Default XML fallback encoder. This encoder can encode any object that (in order of preference):
XmlOutput.registerTextEncoder(TextEncoder)
XmlDefaultDecoder
Constructor Summary | |
---|---|
XmlDefaultEncoder()
|
Method Summary | |
---|---|
boolean |
canEncode(XmlEncodeContext context,
Object value)
Test if this codec can encode a given object. |
org.jdom.Element |
encode(XmlEncodeContext context,
Object value)
Generate an XML representation of an object. |
protected void |
encodeArray(XmlEncodeContext context,
org.jdom.Element element,
Object array)
Encode an array. |
protected void |
encodeText(XmlEncodeContext context,
org.jdom.Element element,
Object value)
Encode an object as text using a TextEncoder. |
boolean |
shouldPreserveIdentity(XmlEncodeContext context,
Object value)
Return true if the identity of the given value should be preserved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlDefaultEncoder()
Method Detail |
---|
public boolean shouldPreserveIdentity(XmlEncodeContext context, Object value)
XmlEncoder
shouldPreserveIdentity
in interface XmlEncoder
public boolean canEncode(XmlEncodeContext context, Object value)
XmlEncoder
canEncode
in interface XmlEncoder
context
- The current encode context.value
- The value. May be null.
public org.jdom.Element encode(XmlEncodeContext context, Object value)
XmlEncoder
encode
in interface XmlEncoder
context
- The encoding context.value
- The value to be encoded.
protected void encodeArray(XmlEncodeContext context, org.jdom.Element element, Object array)
protected void encodeText(XmlEncodeContext context, org.jdom.Element element, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |