|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XmlAdapter
Implementations of this interface are responsible for creating XML DOM instances from String values and vice versa. With this interface you can plug your preferred XML DOM API into Cinnamons AMF3 encoding/decoding process. Cinnamon contains three builtin adapters for W3C DOM, dom4j and XOM.
| 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. |
| Method Detail |
|---|
void init()
Object buildDocument(String xml)
xml - the XML document as a string
boolean isXmlDocumentClass(Class<?> type)
type - the class to check
String toXmlString(Object object)
object - the DOM instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||