|
||||||||||
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<TypeT,ClassDeclT,FieldT,MethodT>
class TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT>
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<TypeT,ClassDeclT,FieldT,MethodT> |
nav
|
AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> |
reader
|
Constructor Summary | |
---|---|
TypeInfoSetImpl(Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav,
AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader,
java.util.Map<TypeT,? extends BuiltinLeafInfoImpl<TypeT,ClassDeclT>> leaves)
|
Method Summary | |
---|---|
void |
add(ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> ai)
|
void |
add(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> ci)
Adds a new ClassInfo to the set. |
void |
add(ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> ei,
ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder)
|
void |
add(EnumLeafInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> li)
Adds a new LeafInfo to the set. |
java.util.Map<? extends TypeT,? extends ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> |
arrays()
Returns all the ArrayInfo s known to this set. |
java.util.Map<ClassDeclT,? extends ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> |
beans()
Returns all the ClassInfo s known to this set. |
java.util.Map<TypeT,? extends BuiltinLeafInfo<TypeT,ClassDeclT>> |
builtins()
Returns all the BuiltinLeafInfo s known to this set. |
protected NonElement<TypeT,ClassDeclT> |
createAnyType()
|
void |
dump(javax.xml.transform.Result out)
Dumps this model into XML. |
java.util.Map<ClassDeclT,? extends EnumLeafInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> |
enums()
Returns all the EnumLeafInfo s known to this set. |
java.lang.Iterable<? extends ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> |
getAllElements()
Returns all the ElementInfo known to this set. |
NonElement<TypeT,ClassDeclT> |
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<TypeT,ClassDeclT> |
getClassInfo(ClassDeclT 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<TypeT,ClassDeclT,FieldT,MethodT> |
getElementInfo(ClassDeclT scope,
javax.xml.namespace.QName name)
Returns a ElementInfo for the given element. |
java.util.Map<javax.xml.namespace.QName,? extends ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> |
getElementMappings(ClassDeclT scope)
Returns all ElementInfo s in the given scope. |
Navigator<TypeT,ClassDeclT,FieldT,MethodT> |
getNavigator()
Navigator for this model. |
NonElement<TypeT,ClassDeclT> |
getTypeInfo(Ref<TypeT,ClassDeclT> ref)
This method is used to add a root reference to a model. |
NonElement<TypeT,ClassDeclT> |
getTypeInfo(TypeT 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<TypeT,ClassDeclT,FieldT,MethodT> nav
public final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader
Constructor Detail |
---|
public TypeInfoSetImpl(Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav, AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader, java.util.Map<TypeT,? extends BuiltinLeafInfoImpl<TypeT,ClassDeclT>> leaves)
Method Detail |
---|
protected NonElement<TypeT,ClassDeclT> createAnyType()
public Navigator<TypeT,ClassDeclT,FieldT,MethodT> getNavigator()
TypeInfoSet
Navigator
for this model.
getNavigator
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public void add(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> ci)
ClassInfo
to the set.
public void add(EnumLeafInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> li)
LeafInfo
to the set.
public void add(ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> ai)
public NonElement<TypeT,ClassDeclT> getTypeInfo(TypeT type)
TypeInfo
for the given type.
getTypeInfo
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public NonElement<TypeT,ClassDeclT> getAnyTypeInfo()
TypeInfoSet
TypeInfo
for the any type.
getAnyTypeInfo
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public NonElement<TypeT,ClassDeclT> getTypeInfo(Ref<TypeT,ClassDeclT> ref)
getTypeInfo
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public java.util.Map<ClassDeclT,? extends ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> beans()
ClassInfo
s known to this set.
beans
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public java.util.Map<TypeT,? extends BuiltinLeafInfo<TypeT,ClassDeclT>> builtins()
TypeInfoSet
BuiltinLeafInfo
s known to this set.
builtins
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public java.util.Map<ClassDeclT,? extends EnumLeafInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> enums()
TypeInfoSet
EnumLeafInfo
s known to this set.
enums
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public java.util.Map<? extends TypeT,? extends ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> arrays()
TypeInfoSet
ArrayInfo
s known to this set.
arrays
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public NonElement<TypeT,ClassDeclT> getClassInfo(ClassDeclT 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<TypeT,ClassDeclT,FieldT,MethodT>
public ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> getElementInfo(ClassDeclT scope, javax.xml.namespace.QName name)
TypeInfoSet
ElementInfo
for the given element.
getElementInfo
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
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<TypeT,ClassDeclT,FieldT,MethodT> ei, ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder)
builder
- used for reporting errors.public java.util.Map<javax.xml.namespace.QName,? extends ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> getElementMappings(ClassDeclT scope)
TypeInfoSet
ElementInfo
s in the given scope.
getElementMappings
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
scope
- if non-null, this method only returns the local element mapping.public java.lang.Iterable<? extends ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>> getAllElements()
TypeInfoSet
ElementInfo
known to this set.
getAllElements
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
public java.util.Map<java.lang.String,java.lang.String> getXmlNs(java.lang.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<TypeT,ClassDeclT,FieldT,MethodT>
public final javax.xml.bind.annotation.XmlNsForm getElementFormDefault(java.lang.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<TypeT,ClassDeclT,FieldT,MethodT>
public final javax.xml.bind.annotation.XmlNsForm getAttributeFormDefault(java.lang.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<TypeT,ClassDeclT,FieldT,MethodT>
public void dump(javax.xml.transform.Result out) throws javax.xml.bind.JAXBException
dump
in interface TypeInfoSet<TypeT,ClassDeclT,FieldT,MethodT>
javax.xml.bind.JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |