com.openharbor.beck.marshal
Class XPathMarshaller

java.lang.Object
  extended bycom.openharbor.beck.marshal.DefaultMarshaller
      extended bycom.openharbor.beck.marshal.XPathMarshaller
All Implemented Interfaces:
Marshaller

public class XPathMarshaller
extends DefaultMarshaller


Field Summary
static XMLWriter.MapKey OBJECT_TO_XPATH
           
 
Fields inherited from class com.openharbor.beck.marshal.DefaultMarshaller
log
 
Constructor Summary
XPathMarshaller()
           
 
Method Summary
 java.lang.Object getXMLSource(MapToXML mapper, java.lang.Object parent, Getter getter)
          Return null to indicate that the XML is a reference, not a referent.
protected  void writeAsElement(MapToXML mapper, java.lang.Object parent, Getter getter, java.lang.Object child, XMLThing tag, XMLWriter writer)
           
 
Methods inherited from class com.openharbor.beck.marshal.DefaultMarshaller
getText, getXML, marshal, marshalMember, writeNull, writeSimply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_TO_XPATH

public static final XMLWriter.MapKey OBJECT_TO_XPATH
Constructor Detail

XPathMarshaller

public XPathMarshaller()
Method Detail

getXMLSource

public java.lang.Object getXMLSource(MapToXML mapper,
                                     java.lang.Object parent,
                                     Getter getter)
Return null to indicate that the XML is a reference, not a referent.

Specified by:
getXMLSource in interface Marshaller
Overrides:
getXMLSource in class DefaultMarshaller

writeAsElement

protected void writeAsElement(MapToXML mapper,
                              java.lang.Object parent,
                              Getter getter,
                              java.lang.Object child,
                              XMLThing tag,
                              XMLWriter writer)
                       throws java.lang.Exception
Overrides:
writeAsElement in class DefaultMarshaller
Throws:
java.lang.Exception