com.sun.xml.bind.v2.model.impl
Class RuntimeTypeInfoSetImpl

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<Type,Class,Field,Method>
      extended by com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl
All Implemented Interfaces:
TypeInfoSet<Type,Class,Field,Method>, RuntimeTypeInfoSet

final class RuntimeTypeInfoSetImpl
extends TypeInfoSetImpl<Type,Class,Field,Method>
implements RuntimeTypeInfoSet

TypeInfoSet specialized for runtime.


Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl
nav, reader
 
Constructor Summary
RuntimeTypeInfoSetImpl(AnnotationReader<Type,Class,Field,Method> reader)
           
 
Method Summary
 Map<Class,RuntimeArrayInfoImpl> arrays()
          Returns all the ArrayInfos known to this set.
 Map<Class,RuntimeClassInfoImpl> beans()
          Returns all the ClassInfos known to this set.
 Map<Type,RuntimeBuiltinLeafInfoImpl<?>> builtins()
          Returns all the BuiltinLeafInfos known to this set.
protected  RuntimeNonElement createAnyType()
           
 Map<Class,RuntimeEnumLeafInfoImpl<?,?>> enums()
          Returns all the EnumLeafInfos known to this set.
 Iterable<RuntimeElementInfoImpl> getAllElements()
          Returns all the ElementInfo known to this set.
 RuntimeNonElement getAnyTypeInfo()
          Gets the TypeInfo for the any type.
 RuntimeNonElement getClassInfo(Class clazz)
          Returns a ClassInfo for the given bean.
 RuntimeElementInfoImpl getElementInfo(Class scope, QName name)
          Returns a ElementInfo for the given element.
 Map<QName,RuntimeElementInfoImpl> getElementMappings(Class scope)
          Returns all ElementInfos in the given scope.
 ReflectionNavigator getNavigator()
          Navigator for this model.
 RuntimeNonElement getTypeInfo(Type type)
          Returns a TypeInfo for the given type.
 
Methods inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl
add, add, add, add, dump, getAttributeFormDefault, getElementFormDefault, getSchemaLocations, getTypeInfo, getXmlNs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfoSet
dump, getAttributeFormDefault, getElementFormDefault, getSchemaLocations, getTypeInfo, getXmlNs
 

Constructor Detail

RuntimeTypeInfoSetImpl

public RuntimeTypeInfoSetImpl(AnnotationReader<Type,Class,Field,Method> reader)
Method Detail

createAnyType

protected RuntimeNonElement createAnyType()
Overrides:
createAnyType in class TypeInfoSetImpl<Type,Class,Field,Method>

getNavigator

public ReflectionNavigator getNavigator()
Description copied from interface: TypeInfoSet
Navigator for this model.

Specified by:
getNavigator in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getNavigator in interface RuntimeTypeInfoSet
Overrides:
getNavigator in class TypeInfoSetImpl<Type,Class,Field,Method>

getTypeInfo

public RuntimeNonElement getTypeInfo(Type type)
Description copied from class: TypeInfoSetImpl
Returns a TypeInfo for the given type.

Specified by:
getTypeInfo in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getTypeInfo in interface RuntimeTypeInfoSet
Overrides:
getTypeInfo in class TypeInfoSetImpl<Type,Class,Field,Method>
Returns:
null if the specified type cannot be bound by JAXB, or not known to this set.

getAnyTypeInfo

public RuntimeNonElement getAnyTypeInfo()
Description copied from interface: TypeInfoSet
Gets the TypeInfo for the any type.

Specified by:
getAnyTypeInfo in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getAnyTypeInfo in interface RuntimeTypeInfoSet
Overrides:
getAnyTypeInfo in class TypeInfoSetImpl<Type,Class,Field,Method>

getClassInfo

public RuntimeNonElement getClassInfo(Class clazz)
Description copied from class: TypeInfoSetImpl
Returns a ClassInfo for the given bean.

This method is almost like refinement of TypeInfoSetImpl.getTypeInfo(Object) except our C cannot derive from T.

Specified by:
getClassInfo in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getClassInfo in interface RuntimeTypeInfoSet
Overrides:
getClassInfo in class TypeInfoSetImpl<Type,Class,Field,Method>
Returns:
null if the specified type is not bound by JAXB or otherwise unknown to this set.

beans

public Map<Class,RuntimeClassInfoImpl> beans()
Description copied from class: TypeInfoSetImpl
Returns all the ClassInfos known to this set.

Specified by:
beans in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
beans in interface RuntimeTypeInfoSet
Overrides:
beans in class TypeInfoSetImpl<Type,Class,Field,Method>

builtins

public Map<Type,RuntimeBuiltinLeafInfoImpl<?>> builtins()
Description copied from interface: TypeInfoSet
Returns all the BuiltinLeafInfos known to this set.

Specified by:
builtins in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
builtins in interface RuntimeTypeInfoSet
Overrides:
builtins in class TypeInfoSetImpl<Type,Class,Field,Method>

enums

public Map<Class,RuntimeEnumLeafInfoImpl<?,?>> enums()
Description copied from interface: TypeInfoSet
Returns all the EnumLeafInfos known to this set.

Specified by:
enums in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
enums in interface RuntimeTypeInfoSet
Overrides:
enums in class TypeInfoSetImpl<Type,Class,Field,Method>

arrays

public Map<Class,RuntimeArrayInfoImpl> arrays()
Description copied from interface: TypeInfoSet
Returns all the ArrayInfos known to this set.

Specified by:
arrays in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
arrays in interface RuntimeTypeInfoSet
Overrides:
arrays in class TypeInfoSetImpl<Type,Class,Field,Method>

getElementInfo

public RuntimeElementInfoImpl getElementInfo(Class scope,
                                             QName name)
Description copied from interface: TypeInfoSet
Returns a ElementInfo for the given element.

Specified by:
getElementInfo in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getElementInfo in interface RuntimeTypeInfoSet
Overrides:
getElementInfo in class TypeInfoSetImpl<Type,Class,Field,Method>
Parameters:
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.

getElementMappings

public Map<QName,RuntimeElementInfoImpl> getElementMappings(Class scope)
Description copied from interface: TypeInfoSet
Returns all ElementInfos in the given scope.

Specified by:
getElementMappings in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getElementMappings in interface RuntimeTypeInfoSet
Overrides:
getElementMappings in class TypeInfoSetImpl<Type,Class,Field,Method>
Parameters:
scope - if non-null, this method only returns the local element mapping.

getAllElements

public Iterable<RuntimeElementInfoImpl> getAllElements()
Description copied from interface: TypeInfoSet
Returns all the ElementInfo known to this set.

Specified by:
getAllElements in interface TypeInfoSet<Type,Class,Field,Method>
Specified by:
getAllElements in interface RuntimeTypeInfoSet
Overrides:
getAllElements in class TypeInfoSetImpl<Type,Class,Field,Method>