|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openharbor.beck.marshal.DefaultMarshaller
Field Summary | |
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
DefaultMarshaller()
|
Method Summary | |
java.lang.String |
getText(java.lang.Object parent,
Getter source,
java.lang.Object child,
XMLWriter out)
Copy data as a String, for use as XML element text or an XML attribute value. |
XMLThing |
getXML(MapToXML mapper,
java.lang.Object parent,
Getter getter,
XMLWriter writer)
Choose the XML element or attribute name for a Java object. |
java.lang.Object |
getXMLSource(MapToXML mapper,
java.lang.Object parent,
Getter getter)
This implementation returns getter.getValue(parent), but extended classes override this. |
void |
marshal(MapToXML mapper,
java.lang.Object parent,
Getter getter,
XMLThing tag,
XMLWriter writer)
Generate XML from an object and its contained objects (if any). |
protected void |
marshalMember(XMLThing tag,
MapToXML mapper,
java.lang.Object parent,
Getter getter,
Marshaller marshaller,
XMLWriter writer)
|
protected void |
writeAsElement(MapToXML mapper,
java.lang.Object parent,
Getter getter,
java.lang.Object source,
XMLThing tag,
XMLWriter writer)
|
protected void |
writeNull(MapToXML mapper,
java.lang.Object parent,
Getter getter,
XMLWriter out)
Generate the XML representation of a null reference (the absence of an object). |
protected boolean |
writeSimply(XMLThing tag,
XMLWriter out)
Output XML if it's simple. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final org.apache.commons.logging.Log log
Constructor Detail |
public DefaultMarshaller()
Method Detail |
public XMLThing getXML(MapToXML mapper, java.lang.Object parent, Getter getter, XMLWriter writer) throws java.lang.Exception
Marshaller
getXML
in interface Marshaller
getter
- to be mapped to XMLparent
- contains source
java.lang.Exception
public void marshal(MapToXML mapper, java.lang.Object parent, Getter getter, XMLThing tag, XMLWriter writer) throws java.lang.Exception
Marshaller
marshal
in interface Marshaller
parent
- the object that contains this one, or null if the containing object is unknown.getter
- a reference to the object to be mapped and its name (if any) in the parent.tag
- the desired element name and conditions, or null if unspecified.writer
- the stream wherein to marshal the generated XML.
java.lang.Exception
public java.lang.Object getXMLSource(MapToXML mapper, java.lang.Object parent, Getter getter)
getXMLSource
in interface Marshaller
public java.lang.String getText(java.lang.Object parent, Getter source, java.lang.Object child, XMLWriter out) throws java.lang.Exception
Marshaller
getText
in interface Marshaller
java.lang.Exception
protected void writeNull(MapToXML mapper, java.lang.Object parent, Getter getter, XMLWriter out) throws java.lang.Exception
java.lang.Exception
protected boolean writeSimply(XMLThing tag, XMLWriter out) throws java.lang.Exception
tag
- out
-
java.lang.Exception
protected void writeAsElement(MapToXML mapper, java.lang.Object parent, Getter getter, java.lang.Object source, XMLThing tag, XMLWriter writer) throws java.lang.Exception
java.lang.Exception
protected void marshalMember(XMLThing tag, MapToXML mapper, java.lang.Object parent, Getter getter, Marshaller marshaller, XMLWriter writer) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |