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

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.unmarshaller.Loader
      extended by com.sun.xml.bind.v2.runtime.unmarshaller.XsiTypeLoader

public class XsiTypeLoader
extends Loader

Looks at @xsi:type and forwards to the right Loader.


Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
expectText
 
Constructor Summary
XsiTypeLoader(JaxBeanInfo defaultBeanInfo)
           
 
Method Summary
(package private) static JaxBeanInfo parseXsiType(UnmarshallingContext.State state, TagName ea, JaxBeanInfo defaultBeanInfo)
           
 void startElement(UnmarshallingContext.State state, TagName ea)
          Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader.
 
Methods inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, getExpectedChildElements, handleGenericException, handleGenericException, handleParseConversionException, leaveElement, reportError, reportError, reportUnexpectedChildElement, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsiTypeLoader

public XsiTypeLoader(JaxBeanInfo defaultBeanInfo)
Method Detail

startElement

public void startElement(UnmarshallingContext.State state,
                         TagName ea)
                  throws SAXException
Description copied from class: Loader
Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader.

The callee may change state.loader to designate another Loader for the processing. It's the responsibility of the callee to forward the startElement event in such a case.

Overrides:
startElement in class Loader
ea - info about the start tag. never null.
Throws:
SAXException

parseXsiType

static JaxBeanInfo parseXsiType(UnmarshallingContext.State state,
                                TagName ea,
                                @Nullable
                                JaxBeanInfo defaultBeanInfo)
                         throws SAXException
Throws:
SAXException