|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.xml.marshall.tree.ReferenceXmlMapping
public class ReferenceXmlMapping
Enables referencing another
XmlWriter to write the XML
of the object obtained from the source object.
| Field Summary | |
|---|---|
protected XmlMapping |
delegate
XmlMapping being wrapped to delegate XML writing. |
protected String |
getMethodName
Name of method to obtain object to write as XML. |
protected Map<Class<?>,Method> |
methods
Methods specific to a class. |
| Constructor Summary | |
|---|---|
ReferenceXmlMapping(Method getMethod,
XmlMapping delegate)
Initiate to apply reference mapping. |
|
| Method Summary | |
|---|---|
XmlWriter |
getWriter()
Obtains the XmlWriter for this mapping. |
void |
map(Object source,
XmlOutput output)
Maps the object into XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String getMethodName
protected final XmlMapping delegate
XmlMapping being wrapped to delegate XML writing.
protected final Map<Class<?>,Method> methods
| Constructor Detail |
|---|
public ReferenceXmlMapping(Method getMethod,
XmlMapping delegate)
getMethod - Method to obtain object to apply reference from upper bound
type of source object.delegate - Delgate to object the XmlWriter to write the XML.| Method Detail |
|---|
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 | |||||||||