|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openharbor.beck.receive.DefaultXMLReceiver
Traverses the XML document tree in document order (as it comes from a SAX parser). Allocates an Unmarshaller to each XML element.
Field Summary | |
protected org.apache.commons.logging.Log |
log
|
protected java.util.Stack |
unmarshallerStack
The current state of XML document traversal, represented as a stack of the unmarshallers allocated to the current element, its enclosing element, its enclosing element and so on to the root element (whose Unmarshaller is at the bottom of this stack). |
Constructor Summary | |
DefaultXMLReceiver()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
clear()
Release all resources and subsequently behave as though newly constructed. |
void |
endElement()
|
protected java.util.Map |
getDocumentState()
|
MapFromXML |
getMapFromXML()
|
protected Prefixer |
getPrefixer()
|
java.lang.Object |
getResult()
|
protected XMLContext |
getXMLContext()
|
protected void |
recycleDanglingReferences()
Log warnings about any cross-references that were not resolved. |
protected void |
resolveDocumentReferences()
Resolve XPaths, after the rest of the document has been copied to Java. |
void |
setMapFromXML(MapFromXML mapper)
|
void |
setXMLContext(XMLContext context)
|
void |
startElement(XMLThing element)
|
protected Unmarshaller |
startObject(Unmarshaller parent,
XMLThing source)
Start constructing a Java object from an element of an XML document. |
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
protected java.util.Stack unmarshallerStack
Constructor Detail |
public DefaultXMLReceiver()
Method Detail |
public MapFromXML getMapFromXML()
getMapFromXML
in interface MapFromXML.Aware
public void setMapFromXML(MapFromXML mapper)
setMapFromXML
in interface MapFromXML.Aware
protected XMLContext getXMLContext()
public void setXMLContext(XMLContext context)
setXMLContext
in interface XMLReceiver
protected java.util.Map getDocumentState()
public void clear()
XMLReceiver
clear
in interface XMLReceiver
public void startElement(XMLThing element) throws java.lang.Exception
startElement
in interface XMLReceiver
java.lang.Exception
protected Prefixer getPrefixer()
protected Unmarshaller startObject(Unmarshaller parent, XMLThing source) throws java.lang.Exception
java.lang.Exception
public void characters(char[] ch, int start, int length) throws java.lang.Exception
characters
in interface XMLReceiver
java.lang.Exception
public void endElement() throws java.lang.Exception
endElement
in interface XMLReceiver
java.lang.Exception
protected void resolveDocumentReferences()
protected void recycleDanglingReferences()
public java.lang.Object getResult()
getResult
in interface XMLReceiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |