|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<T,C,F,M>
class TypeInfoSetImpl<T,C,F,M>
Set of TypeInfo
s.
This contains a fixed set of LeafInfo
s and arbitrary set of ClassInfo
s.
Members are annotated with JAXB annotations so that we can dump it easily.
Field Summary | |
---|---|
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(ArrayInfoImpl<T,C,F,M> ai)
|
void |
add(ClassInfoImpl<T,C,F,M> ci)
Adds a new ClassInfo to the set. |
void |
add(ElementInfoImpl<T,C,F,M> ei,
ModelBuilder<T,C,F,M> builder)
|
void |
add(EnumLeafInfoImpl<T,C,F,M> li)
Adds a new LeafInfo to the set. |
Map<? extends T,? extends ArrayInfoImpl<T,C,F,M>> |
arrays()
Returns all the ArrayInfo s known to this set. |
Map<C,? extends ClassInfoImpl<T,C,F,M>> |
beans()
Returns all the ClassInfo s known to this set. |
Map<T,? extends BuiltinLeafInfo<T,C>> |
builtins()
Returns all the BuiltinLeafInfo s known to this set. |
protected NonElement<T,C> |
createAnyType()
|
void |
dump(Result out)
Dumps this model into XML. |
Map<C,? extends EnumLeafInfoImpl<T,C,F,M>> |
enums()
Returns all the EnumLeafInfo s known to this set. |
Iterable<? extends ElementInfoImpl<T,C,F,M>> |
getAllElements()
Returns all the ElementInfo known to this set. |
NonElement<T,C> |
getAnyTypeInfo()
Gets the TypeInfo for the any type. |
XmlNsForm |
getAttributeFormDefault(String nsUri)
Gets the reasonable XmlNsForm for the given namespace URI. |
NonElement<T,C> |
getClassInfo(C type)
Returns a ClassInfo for the given bean. |
XmlNsForm |
getElementFormDefault(String nsUri)
Gets the reasonable XmlNsForm for the given namespace URI. |
ElementInfoImpl<T,C,F,M> |
getElementInfo(C scope,
QName name)
Returns a ElementInfo for the given element. |
Map<QName,? extends ElementInfoImpl<T,C,F,M>> |
getElementMappings(C scope)
Returns all ElementInfo s in the given scope. |
Navigator<T,C,F,M> |
getNavigator()
Navigator for this model. |
Map<String,String> |
getSchemaLocations()
Gets XmlSchema.location() found in this context. |
NonElement<T,C> |
getTypeInfo(Ref<T,C> ref)
This method is used to add a root reference to a model. |
NonElement<T,C> |
getTypeInfo(T type)
Returns a TypeInfo for the given type. |
Map<String,String> |
getXmlNs(String namespaceUri)
Gets all XmlSchema.xmlns() found in this context for the given namespace URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Navigator<T,C,F,M> nav
public final AnnotationReader<T,C,F,M> reader
Constructor Detail |
---|
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves)
Method Detail |
---|
protected NonElement<T,C> createAnyType()
public Navigator<T,C,F,M> getNavigator()
TypeInfoSet
Navigator
for this model.
getNavigator
in interface TypeInfoSet<T,C,F,M>
public void add(ClassInfoImpl<T,C,F,M> ci)
ClassInfo
to the set.
public void add(EnumLeafInfoImpl<T,C,F,M> li)
LeafInfo
to the set.
public void add(ArrayInfoImpl<T,C,F,M> ai)
public NonElement<T,C> getTypeInfo(T type)
TypeInfo
for the given type.
getTypeInfo
in interface TypeInfoSet<T,C,F,M>
public NonElement<T,C> getAnyTypeInfo()
TypeInfoSet
TypeInfo
for the any type.
getAnyTypeInfo
in interface TypeInfoSet<T,C,F,M>
public NonElement<T,C> getTypeInfo(Ref<T,C> ref)
getTypeInfo
in interface TypeInfoSet<T,C,F,M>
public Map<C,? extends ClassInfoImpl<T,C,F,M>> beans()
ClassInfo
s known to this set.
beans
in interface TypeInfoSet<T,C,F,M>
public Map<T,? extends BuiltinLeafInfo<T,C>> builtins()
TypeInfoSet
BuiltinLeafInfo
s known to this set.
builtins
in interface TypeInfoSet<T,C,F,M>
public Map<C,? extends EnumLeafInfoImpl<T,C,F,M>> enums()
TypeInfoSet
EnumLeafInfo
s known to this set.
enums
in interface TypeInfoSet<T,C,F,M>
public Map<? extends T,? extends ArrayInfoImpl<T,C,F,M>> arrays()
TypeInfoSet
ArrayInfo
s known to this set.
arrays
in interface TypeInfoSet<T,C,F,M>
public NonElement<T,C> getClassInfo(C type)
ClassInfo
for the given bean.
This method is almost like refinement of getTypeInfo(Object)
except
our C cannot derive from T.
getClassInfo
in interface TypeInfoSet<T,C,F,M>
public ElementInfoImpl<T,C,F,M> getElementInfo(C scope, QName name)
TypeInfoSet
ElementInfo
for the given element.
getElementInfo
in interface TypeInfoSet<T,C,F,M>
scope
- if null, return the info about a global element.
Otherwise return a local element in the given scope if available,
then look for a global element next.public final void add(ElementInfoImpl<T,C,F,M> ei, ModelBuilder<T,C,F,M> builder)
builder
- used for reporting errors.public Map<QName,? extends ElementInfoImpl<T,C,F,M>> getElementMappings(C scope)
TypeInfoSet
ElementInfo
s in the given scope.
getElementMappings
in interface TypeInfoSet<T,C,F,M>
scope
- if non-null, this method only returns the local element mapping.public Iterable<? extends ElementInfoImpl<T,C,F,M>> getAllElements()
TypeInfoSet
ElementInfo
known to this set.
getAllElements
in interface TypeInfoSet<T,C,F,M>
public Map<String,String> getXmlNs(String namespaceUri)
TypeInfoSet
XmlSchema.xmlns()
found in this context for the given namespace URI.
This operation is expected to be only used in schema generator, so it can be slow.
getXmlNs
in interface TypeInfoSet<T,C,F,M>
public Map<String,String> getSchemaLocations()
TypeInfoSet
XmlSchema.location()
found in this context.
This operation is expected to be only used in schema generator, so it can be slow.
getSchemaLocations
in interface TypeInfoSet<T,C,F,M>
public final XmlNsForm getElementFormDefault(String nsUri)
TypeInfoSet
XmlNsForm
for the given namespace URI.
The spec doesn't define very precisely what the XmlNsForm
value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. It should work as what most people expect for simple cases.
getElementFormDefault
in interface TypeInfoSet<T,C,F,M>
public final XmlNsForm getAttributeFormDefault(String nsUri)
TypeInfoSet
XmlNsForm
for the given namespace URI.
The spec doesn't define very precisely what the XmlNsForm
value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. It should work as what most people expect for simple cases.
getAttributeFormDefault
in interface TypeInfoSet<T,C,F,M>
public void dump(Result out) throws JAXBException
dump
in interface TypeInfoSet<T,C,F,M>
JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |