|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.xml.Dom4jXmlAdapter
public class Dom4jXmlAdapter
XmlAdapter implementation that converts Strings to/from dom4j document instances.
| Constructor Summary | |
|---|---|
Dom4jXmlAdapter()
|
|
| Method Summary | |
|---|---|
Object |
buildDocument(String xml)
Builds an XML DOM instance from the given string. |
void |
init()
Initializes the adapter, called once for each instance at application startup. |
boolean |
isXmlDocumentClass(Class<?> type)
Checks whether the given class represents an XML DOM class that this adapter can process. |
String |
toXmlString(Object object)
Returns the String representation for the given DOM instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dom4jXmlAdapter()
| Method Detail |
|---|
public void init()
XmlAdapter
init in interface XmlAdapterpublic Object buildDocument(String xml)
XmlAdapter
buildDocument in interface XmlAdapterxml - the XML document as a string
public boolean isXmlDocumentClass(Class<?> type)
XmlAdapter
isXmlDocumentClass in interface XmlAdaptertype - the class to check
public String toXmlString(Object object)
XmlAdapter
toXmlString in interface XmlAdapterobject - the DOM instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||