Class XsiTypeLoader

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

public class XsiTypeLoader extends Loader
Looks at @xsi:type and forwards to the right Loader.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • XsiTypeLoader

      public XsiTypeLoader(JaxBeanInfo defaultBeanInfo)
  • Method Details

    • 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
    • getExpectedAttributes

      public Collection<QName> getExpectedAttributes()
      Description copied from class: Loader
      Returns a set of tag names expected as possible child elements in this context.
      Overrides:
      getExpectedAttributes in class Loader