Class Ref<T,​C>


  • public final class Ref<T,​C>
    extends java.lang.Object
    Reference to a type in a model. TODO: isn't there a similarity between this and TypeUse in XJC?
    Author:
    Kohsuke Kawaguchi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Adapter<T,​C> adapter
      If the reference has an adapter, non-null.
      T type
      The type being referenced.
      boolean valueList
      If the type is an array and it is a value list, true.
    • Constructor Summary

      Constructors 
      Constructor Description
      Ref​(AnnotationReader<T,​C,​?,​?> reader, Navigator<T,​C,​?,​?> nav, T type, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter xjta, javax.xml.bind.annotation.XmlList xl)  
      Ref​(ModelBuilderI<T,​C,​?,​?> builder, T type, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter xjta, javax.xml.bind.annotation.XmlList xl)  
      Ref​(T type)  
      Ref​(T type, Adapter<T,​C> adapter, boolean valueList)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

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

      • adapter

        public final Adapter<T,​C> adapter
        If the reference has an adapter, non-null.
      • 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​(ModelBuilderI<T,​C,​?,​?> builder,
                   T type,
                   javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter xjta,
                   javax.xml.bind.annotation.XmlList xl)
      • Ref

        public Ref​(AnnotationReader<T,​C,​?,​?> reader,
                   Navigator<T,​C,​?,​?> nav,
                   T type,
                   javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter xjta,
                   javax.xml.bind.annotation.XmlList xl)