|
||||||||||
| 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 TypeInfos.
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 | |
|---|---|
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,
java.util.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. |
java.util.Map<? extends T,? extends ArrayInfoImpl<T,C,F,M>> |
arrays()
Returns all the ArrayInfos known to this set. |
java.util.Map<C,? extends ClassInfoImpl<T,C,F,M>> |
beans()
Returns all the ClassInfos known to this set. |
java.util.Map<T,? extends BuiltinLeafInfo<T,C>> |
builtins()
Returns all the BuiltinLeafInfos known to this set. |
protected NonElement<T,C> |
createAnyType()
|
void |
dump(javax.xml.transform.Result out)
Dumps this model into XML. |
java.util.Map<C,? extends EnumLeafInfoImpl<T,C,F,M>> |
enums()
Returns all the EnumLeafInfos known to this set. |
java.lang.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. |
javax.xml.bind.annotation.XmlNsForm |
getAttributeFormDefault(java.lang.String nsUri)
Gets the reasonable XmlNsForm for the given namespace URI. |
NonElement<T,C> |
getClassInfo(C type)
Returns a ClassInfo for the given bean. |
javax.xml.bind.annotation.XmlNsForm |
getElementFormDefault(java.lang.String nsUri)
Gets the reasonable XmlNsForm for the given namespace URI. |
ElementInfoImpl<T,C,F,M> |
getElementInfo(C scope,
javax.xml.namespace.QName name)
Returns a ElementInfo for the given element. |
java.util.Map<javax.xml.namespace.QName,? extends ElementInfoImpl<T,C,F,M>> |
getElementMappings(C scope)
Returns all ElementInfos in the given scope. |
Navigator<T,C,F,M> |
getNavigator()
Navigator for this model. |
java.util.Map<java.lang.String,java.lang.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. |
java.util.Map<java.lang.String,java.lang.String> |
getXmlNs(java.lang.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,
java.util.Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves)
| Method Detail |
|---|
protected NonElement<T,C> createAnyType()
public Navigator<T,C,F,M> getNavigator()
TypeInfoSetNavigator 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()
TypeInfoSetTypeInfo 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 java.util.Map<C,? extends ClassInfoImpl<T,C,F,M>> beans()
ClassInfos known to this set.
beans in interface TypeInfoSet<T,C,F,M>public java.util.Map<T,? extends BuiltinLeafInfo<T,C>> builtins()
TypeInfoSetBuiltinLeafInfos known to this set.
builtins in interface TypeInfoSet<T,C,F,M>public java.util.Map<C,? extends EnumLeafInfoImpl<T,C,F,M>> enums()
TypeInfoSetEnumLeafInfos known to this set.
enums in interface TypeInfoSet<T,C,F,M>public java.util.Map<? extends T,? extends ArrayInfoImpl<T,C,F,M>> arrays()
TypeInfoSetArrayInfos 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,
javax.xml.namespace.QName name)
TypeInfoSetElementInfo 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 java.util.Map<javax.xml.namespace.QName,? extends ElementInfoImpl<T,C,F,M>> getElementMappings(C scope)
TypeInfoSetElementInfos 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 java.lang.Iterable<? extends ElementInfoImpl<T,C,F,M>> getAllElements()
TypeInfoSetElementInfo known to this set.
getAllElements in interface TypeInfoSet<T,C,F,M>public java.util.Map<java.lang.String,java.lang.String> getXmlNs(java.lang.String namespaceUri)
TypeInfoSetXmlSchema.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 java.util.Map<java.lang.String,java.lang.String> getSchemaLocations()
TypeInfoSetXmlSchema.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 javax.xml.bind.annotation.XmlNsForm getElementFormDefault(java.lang.String nsUri)
TypeInfoSetXmlNsForm 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 javax.xml.bind.annotation.XmlNsForm getAttributeFormDefault(java.lang.String nsUri)
TypeInfoSetXmlNsForm 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(javax.xml.transform.Result out)
throws javax.xml.bind.JAXBException
dump in interface TypeInfoSet<T,C,F,M>javax.xml.bind.JAXBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||