com.sun.xml.bind.v2.model.runtime

Interface RuntimeLeafInfo

public interface RuntimeLeafInfo extends LeafInfo<Type,Class>, RuntimeNonElement

Method Summary
ClassgetClazz()
The same as RuntimeLeafInfo but returns the type as a Class.
<V> Transducer<V>getTransducer()
{@inheritDoc }
QName[]getTypeNames()
Returns all the type names recognized by this type for unmarshalling.

Method Detail

getClazz

public Class getClazz()
The same as RuntimeLeafInfo 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.

getTransducer

public <V> Transducer<V> getTransducer()
{@inheritDoc }

Returns: always non-null.

getTypeNames

public 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.