com.sun.tools.xjc.model
Class CTypeRef

java.lang.Object
  extended by com.sun.tools.xjc.model.CTypeRef
All Implemented Interfaces:
com.sun.xml.bind.v2.model.core.NonElementRef<NType,NClass>, com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>

public final class CTypeRef
extends java.lang.Object
implements com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>

TypeRef for XJC. TODO: do we need the source schema component support here?


Field Summary
 com.sun.xml.xsom.XmlString defaultValue
           
 
Constructor Summary
CTypeRef(CNonElement type, javax.xml.namespace.QName elementName, boolean nillable, com.sun.xml.xsom.XmlString defaultValue)
           
 
Method Summary
 java.lang.String getDefaultValue()
          Inside XJC, use defaultValue that has context information.
 com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass> getSource()
           
 javax.xml.namespace.QName getTagName()
           
 CNonElement getTarget()
           
 boolean isLeaf()
           
 boolean isNillable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

public final com.sun.xml.xsom.XmlString defaultValue
Constructor Detail

CTypeRef

public CTypeRef(CNonElement type,
                javax.xml.namespace.QName elementName,
                boolean nillable,
                com.sun.xml.xsom.XmlString defaultValue)
Method Detail

getTarget

public CNonElement getTarget()
Specified by:
getTarget in interface com.sun.xml.bind.v2.model.core.NonElementRef<NType,NClass>

getTagName

public javax.xml.namespace.QName getTagName()
Specified by:
getTagName in interface com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>

isNillable

public boolean isNillable()
Specified by:
isNillable in interface com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>

getDefaultValue

public java.lang.String getDefaultValue()
Inside XJC, use defaultValue that has context information. This method is to override the one defined in the runtime model.

Specified by:
getDefaultValue in interface com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>
See Also:
defaultValue

isLeaf

public boolean isLeaf()

getSource

public com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass> getSource()
Specified by:
getSource in interface com.sun.xml.bind.v2.model.core.NonElementRef<NType,NClass>