Interface StructureLoaderBuilder
-
- All Known Subinterfaces:
Property<BeanT>
- All Known Implementing Classes:
AttributeProperty
,ValueProperty
public interface StructureLoaderBuilder
Component that contributes element unmarshallers intoStructureLoader
. TODO: think of a better name.- Author:
- Bhakti Mehta
-
-
Field Summary
Fields Modifier and Type Field Description static javax.xml.namespace.QName
CATCH_ALL
MagicQName
used to store a handler for the rest of the elements.static javax.xml.namespace.QName
TEXT_HANDLER
MagicQName
used to store a handler for the text.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)
Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specifiedQNameMap
by elements that are expected by this property.
-
-
-
Field Detail
-
TEXT_HANDLER
static final javax.xml.namespace.QName TEXT_HANDLER
MagicQName
used to store a handler for the text.To support the mixed content model,
StructureLoader
can have at most oneValuePropertyLoader
for processing text found amoung elements. This special text handler is put into theQNameMap
parameter of thebuildChildElementUnmarshallers(com.sun.xml.bind.v2.runtime.property.UnmarshallerChain, com.sun.xml.bind.v2.util.QNameMap<com.sun.xml.bind.v2.runtime.unmarshaller.ChildLoader>)
method by using this magic token as the key.
-
CATCH_ALL
static final javax.xml.namespace.QName CATCH_ALL
MagicQName
used to store a handler for the rest of the elements.To support the wildcard,
StructureLoader
can have at most oneLoader
for processing elements that didn't match any of the named elements. This special text handler is put into theQNameMap
parameter of thebuildChildElementUnmarshallers(com.sun.xml.bind.v2.runtime.property.UnmarshallerChain, com.sun.xml.bind.v2.util.QNameMap<com.sun.xml.bind.v2.runtime.unmarshaller.ChildLoader>)
method by using this magic token as the key.
-
-
Method Detail
-
buildChildElementUnmarshallers
void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)
Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specifiedQNameMap
by elements that are expected by this property.
-
-