com.sun.xml.bind.v2.runtime.property

Interface StructureLoaderBuilder

public interface StructureLoaderBuilder

Component that contributes element unmarshallers into StructureLoader. TODO: think of a better name.
Field Summary
static QNameCATCH_ALL
Magic QName used to store a handler for the rest of the elements.
static QNameTEXT_HANDLER
Magic QName used to store a handler for the text.
Method Summary
voidbuildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)
Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specified QNameMap by elements that are expected by this property.

Field Detail

CATCH_ALL

public static final QName CATCH_ALL
Magic QName used to store a handler for the rest of the elements.

To support the wildcard, StructureLoader can have at most one Loader for processing elements that didn't match any of the named elements. This special text handler is put into the QNameMap parameter of the StructureLoaderBuilder method by using this magic token as the key.

TEXT_HANDLER

public static final QName TEXT_HANDLER
Magic QName used to store a handler for the text.

To support the mixed content model, StructureLoader can have at most one ValuePropertyLoader for processing text found amoung elements. This special text handler is put into the QNameMap parameter of the StructureLoaderBuilder method by using this magic token as the key.

Method Detail

buildChildElementUnmarshallers

public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)
Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specified QNameMap by elements that are expected by this property.