|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.xml.marshall.tree.ProxyXmlMapping
public class ProxyXmlMapping
Enables wrapping of a
XmlWriter to let it be
referenced.
| Field Summary | |
|---|---|
protected XmlMapping |
delegate
XmlMapping being wrapped to delegate XML mapping. |
| Constructor Summary | |
|---|---|
ProxyXmlMapping()
|
|
| Method Summary | |
|---|---|
XmlWriter |
getWriter()
Obtains the XmlWriter for this mapping. |
void |
map(Object source,
XmlOutput output)
Maps the object into XML. |
void |
setDelegate(XmlMapping delegate)
The creation of XmlMapping (and its XmlWriter) will
recursively load its XmlMapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XmlMapping delegate
XmlMapping being wrapped to delegate XML mapping.
| Constructor Detail |
|---|
public ProxyXmlMapping()
| Method Detail |
|---|
public void setDelegate(XmlMapping delegate)
The creation of XmlMapping (and its XmlWriter) will
recursively load its XmlMapping.
This is therefore necessary to enable a child to reference this in place
of the actual parent XmlMapping, as the parent
XmlMapping will not be available until all its descendants are
created.
delegate - Delegate to do the XML writing.
public void map(Object source,
XmlOutput output)
throws XmlMarshallException
XmlMapping
map in interface XmlMappingsource - Object to map into XML.output - Output to send the XML.
XmlMarshallException - If fails to map object into XML.public XmlWriter getWriter()
XmlMappingXmlWriter for this mapping.
getWriter in interface XmlMappingXmlWriter for this mapping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||