Top Description Fields Constructors Methods
org.glassfish.jaxb.core.v2.model.core

public final Class Ref<T, C>

extends Object
Class Inheritance
Imports
jakarta.xml.bind.annotation.XmlList, jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter, org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader, org.glassfish.jaxb.core.v2.model.impl.ModelBuilderI, org.glassfish.jaxb.core.v2.model.nav.Navigator

Reference to a type in a model.

Todo

isn't there a similarity between this and TypeUse in XJC?

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
public final Adapter<T, C>
adapter

If the reference has an adapter, non-null.

public final T
type

The type being referenced.

public final boolean
valueList

If the type is an array and it is a value list, true.

Constructor Summary

AccessConstructor and Description
public
Ref(T type)

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

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

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

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

adapterback to summary
public final Adapter<T, C> adapter

If the reference has an adapter, non-null.

typeback to summary
public final T type

The type being referenced.

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

valueListback to summary
public final boolean valueList

If the type is an array and it is a value list, true.

Constructor Detail

Refback to summary
public Ref(T type)
Refback to summary
public Ref(T type, Adapter<T, C> adapter, boolean valueList)
Refback to summary
public Ref(ModelBuilderI<T, C, ?, ?> builder, T type, XmlJavaTypeAdapter xjta, XmlList xl)
Refback to summary
public Ref(AnnotationReader<T, C, ?, ?> reader, Navigator<T, C, ?, ?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl)