com.sun.xml.bind.v2.model.impl
class TypeInfoSetImpl<T,C,F,M> extends Object implements TypeInfoSet<T,C,F,M>
This contains a fixed set of LeafInfos and arbitrary set of ClassInfos.
Members are annotated with JAXB annotations so that we can dump it easily.
Field Summary | |
---|---|
Map<C,ClassInfoImpl<T,C,F,M>> | beans
All the user-defined classes.
|
Map<C,ClassInfoImpl<T,C,F,M>> | beansView |
Navigator<T,C,F,M> | nav |
AnnotationReader<T,C,F,M> | reader |
Constructor Summary | |
---|---|
TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) |
Method Summary | |
---|---|
void | add(ClassInfoImpl<T,C,F,M> ci)
Adds a new ClassInfo to the set. |
void | add(EnumLeafInfoImpl<T,C,F,M> li)
Adds a new LeafInfo to the set. |
void | add(ArrayInfoImpl<T,C,F,M> ai) |
void | add(ElementInfoImpl<T,C,F,M> ei, ModelBuilder<T,C,F,M> builder) |
Map<? extends T,? extends ArrayInfoImpl<T,C,F,M>> | arrays() |
Map<C,? extends ClassInfoImpl<T,C,F,M>> | beans()
Returns all the ClassInfos known to this set. |
Map<T,? extends BuiltinLeafInfo<T,C>> | builtins() |
protected NonElement<T,C> | createAnyType() |
void | dump(Result out)
Dumps this model into XML.
|
Map<C,? extends EnumLeafInfoImpl<T,C,F,M>> | enums() |
Iterable<? extends ElementInfoImpl<T,C,F,M>> | getAllElements() |
NonElement<T,C> | getAnyTypeInfo() |
XmlNsForm | getAttributeFormDefault(String nsUri) |
NonElement<T,C> | getClassInfo(C type)
Returns a ClassInfo for the given bean.
|
XmlNsForm | getElementFormDefault(String nsUri) |
ElementInfoImpl<T,C,F,M> | getElementInfo(C scope, QName name) |
Map<QName,? extends ElementInfoImpl<T,C,F,M>> | getElementMappings(C scope) |
Navigator<T,C,F,M> | getNavigator() |
Map<String,String> | getSchemaLocations() |
NonElement<T,C> | getTypeInfo(T type)
Returns a TypeInfo for the given type.
|
NonElement<T,C> | getTypeInfo(Ref<T,C> ref)
This method is used to add a root reference to a model. |
Map<String,String> | getXmlNs(String namespaceUri) |
Parameters: builder used for reporting errors.
This method is almost like refinement of TypeInfoSetImpl except our C cannot derive from T.
Returns: null if the specified type is not bound by JAXB or otherwise unknown to this set.
Returns: null if the specified type cannot be bound by JAXB, or not known to this set.