com.sun.xml.bind.v2.model.core

Class Ref<T,C>

public final class Ref<T,C> extends Object

Reference to a type in a model. TODO: isn't there a similarity between this and TypeUse in XJC?
Field Summary
Adapter<T,C>adapter
If the reference has an adapter, non-null.
Ttype
The type being referenced.
booleanvalueList
If the type is an array and it is a value list, true.
Constructor Summary
Ref(T type)
Ref(T type, Adapter<T,C> adapter, boolean valueList)
Ref(ModelBuilder<T,C,?,?> builder, T type, XmlJavaTypeAdapter xjta, XmlList xl)
Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl)

Field Detail

adapter

public final Adapter<T,C> adapter
If the reference has an adapter, non-null.

type

public final T type
The type being referenced.

If the type is adapted, this field is the same as the adapter's default type.

valueList

public final boolean valueList
If the type is an array and it is a value list, true.

Constructor Detail

Ref

public Ref(T type)

Ref

public Ref(T type, Adapter<T,C> adapter, boolean valueList)

Ref

public Ref(ModelBuilder<T,C,?,?> builder, T type, XmlJavaTypeAdapter xjta, XmlList xl)

Ref

public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl)