com.sun.xml.bind.v2.runtime.unmarshaller
Class StAXConnector

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector
Direct Known Subclasses:
StAXEventConnector, StAXStreamConnector

abstract class StAXConnector
extends Object


Field Summary
protected  UnmarshallingContext context
           
protected  XmlVisitor.TextPredictor predictor
           
protected  TagName tagName
           
protected  XmlVisitor visitor
           
 
Constructor Summary
protected StAXConnector(XmlVisitor visitor)
           
 
Method Summary
abstract  void bridge()
           
protected static String fixNull(String s)
           
protected abstract  javax.xml.stream.Location getCurrentLocation()
          Gets the Location.
protected abstract  String getCurrentQName()
          Gets the QName of the current element.
protected  String getQName(String prefix, String localName)
           
protected  void handleEndDocument()
           
protected  void handleStartDocument(NamespaceContext nsc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visitor

protected final XmlVisitor visitor

context

protected final UnmarshallingContext context

predictor

protected final XmlVisitor.TextPredictor predictor

tagName

protected final TagName tagName
Constructor Detail

StAXConnector

protected StAXConnector(XmlVisitor visitor)
Method Detail

bridge

public abstract void bridge()
                     throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getCurrentLocation

protected abstract javax.xml.stream.Location getCurrentLocation()
Gets the Location. Used for implementing the line number information.

Returns:
must not null.

getCurrentQName

protected abstract String getCurrentQName()
Gets the QName of the current element.


handleStartDocument

protected final void handleStartDocument(NamespaceContext nsc)
                                  throws SAXException
Throws:
SAXException

handleEndDocument

protected final void handleEndDocument()
                                throws SAXException
Throws:
SAXException

fixNull

protected static String fixNull(String s)

getQName

protected final String getQName(String prefix,
                                String localName)