com.sun.xml.bind.v2.model.runtime
Interface RuntimeLeafInfo
- All Superinterfaces:
- LeafInfo<java.lang.reflect.Type,java.lang.Class>, MaybeElement<java.lang.reflect.Type,java.lang.Class>, NonElement<java.lang.reflect.Type,java.lang.Class>, RuntimeNonElement, RuntimeTypeInfo, TypeInfo<java.lang.reflect.Type,java.lang.Class>
- All Known Subinterfaces:
- RuntimeBuiltinLeafInfo, RuntimeEnumLeafInfo
- All Known Implementing Classes:
- RuntimeBuiltinLeafInfoImpl
public interface RuntimeLeafInfo
- extends LeafInfo<java.lang.reflect.Type,java.lang.Class>, RuntimeNonElement
getTransducer
<V> Transducer<V> getTransducer()
- This method doesn't take the reference properties defined on
RuntimeNonElementRef
into account (such as ID-ness.)
- Specified by:
getTransducer
in interface RuntimeNonElement
- Returns:
- always non-null.
- See Also:
RuntimeNonElementRef.getTransducer()
getClazz
java.lang.Class getClazz()
- The same as
TypeInfo.getType()
but returns the type as a Class
.
Note that the returned Class
object does not necessarily represents
a class declaration. It can be primitive types.
getTypeNames
javax.xml.namespace.QName[] getTypeNames()
- Returns all the type names recognized by this type for unmarshalling.
While conceptually this method belongs to RuntimeNonElement
,
if we do that we have to put a lot of dummy implementations everywhere,
so it's placed here, where it's actually needed.
- Returns:
- Always non-null. Do not modify the returned array.