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

Class StructureLoader

public final class StructureLoader extends Loader

Loads children of an element.

This loader works with a single JaxBeanInfo and handles attributes, child elements, or child text.

Constructor Summary
StructureLoader(ClassBeanInfoImpl beanInfo)
Method Summary
voidchildElement(UnmarshallingContext.State state, TagName arg)
JaxBeanInfogetBeanInfo()
Collection<QName>getExpectedAttributes()
Collection<QName>getExpectedChildElements()
voidinit(JAXBContextImpl context, ClassBeanInfoImpl beanInfo, Accessor<?,Map<QName,String>> attWildcard)
Completes the initialization.
voidleaveElement(UnmarshallingContext.State state, TagName ea)
voidstartElement(UnmarshallingContext.State state, TagName ea)
voidtext(UnmarshallingContext.State state, CharSequence text)

Constructor Detail

StructureLoader

public StructureLoader(ClassBeanInfoImpl beanInfo)

Method Detail

childElement

void childElement(UnmarshallingContext.State state, TagName arg)

getBeanInfo

public JaxBeanInfo getBeanInfo()

getExpectedAttributes

Collection<QName> getExpectedAttributes()

getExpectedChildElements

Collection<QName> getExpectedChildElements()

init

public void init(JAXBContextImpl context, ClassBeanInfoImpl beanInfo, Accessor<?,Map<QName,String>> attWildcard)
Completes the initialization.

To fix the cyclic reference issue, the main part of the initialization needs to be done after a StructureLoader is set to loader.

leaveElement

void leaveElement(UnmarshallingContext.State state, TagName ea)

startElement

void startElement(UnmarshallingContext.State state, TagName ea)

text

void text(UnmarshallingContext.State state, CharSequence text)