com.sun.xml.bind.v2.model.impl
Class TypeRefImpl<TypeT,ClassDeclT>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.TypeRefImpl<TypeT,ClassDeclT>
All Implemented Interfaces:
NonElementRef<TypeT,ClassDeclT>, TypeRef<TypeT,ClassDeclT>
Direct Known Subclasses:
RuntimeTypeRefImpl

 class TypeRefImpl<TypeT,ClassDeclT>
extends Object
implements TypeRef<TypeT,ClassDeclT>


Field Summary
protected  ElementPropertyInfoImpl<TypeT,ClassDeclT,?,?> owner
           
 
Constructor Summary
TypeRefImpl(ElementPropertyInfoImpl<TypeT,ClassDeclT,?,?> owner, QName elementName, TypeT type, boolean isNillable, String defaultValue)
           
 
Method Summary
 String getDefaultValue()
          The default value for this element if any.
 PropertyInfo<TypeT,ClassDeclT> getSource()
          Gets the property which is the source of this reference.
 QName getTagName()
          The associated element name.
 NonElement<TypeT,ClassDeclT> getTarget()
          Target of the reference.
 boolean isNillable()
          Returns true if this element is nillable.
protected  void link()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected final ElementPropertyInfoImpl<TypeT,ClassDeclT,?,?> owner
Constructor Detail

TypeRefImpl

public TypeRefImpl(ElementPropertyInfoImpl<TypeT,ClassDeclT,?,?> owner,
                   QName elementName,
                   TypeT type,
                   boolean isNillable,
                   String defaultValue)
Method Detail

getTarget

public NonElement<TypeT,ClassDeclT> getTarget()
Description copied from interface: NonElementRef
Target of the reference.

Specified by:
getTarget in interface NonElementRef<TypeT,ClassDeclT>
Returns:
never null

getTagName

public QName getTagName()
Description copied from interface: TypeRef
The associated element name.

Specified by:
getTagName in interface TypeRef<TypeT,ClassDeclT>
Returns:
never null.

isNillable

public boolean isNillable()
Description copied from interface: TypeRef
Returns true if this element is nillable.

Specified by:
isNillable in interface TypeRef<TypeT,ClassDeclT>

getDefaultValue

public String getDefaultValue()
Description copied from interface: TypeRef
The default value for this element if any. Otherwise null.

Specified by:
getDefaultValue in interface TypeRef<TypeT,ClassDeclT>

link

protected void link()

getSource

public PropertyInfo<TypeT,ClassDeclT> getSource()
Description copied from interface: NonElementRef
Gets the property which is the source of this reference.

Specified by:
getSource in interface NonElementRef<TypeT,ClassDeclT>
Returns:
never null