com.sun.tools.xjc.model

Class CTypeRef

public final class CTypeRef extends Object implements TypeRef<NType,NClass>

TypeRef for XJC. TODO: do we need the source schema component support here?
Field Summary
XmlStringdefaultValue
CNonElementtype
In-memory type.
QNametypeName
XML Schema type name of type, if available.
Constructor Summary
CTypeRef(CNonElement type, XSElementDecl decl)
CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)
Method Summary
StringgetDefaultValue()
Inside XJC, use defaultValue that has context information.
static QNamegetSimpleTypeName(XSElementDecl decl)
PropertyInfo<NType,NClass>getSource()
QNamegetTagName()
CNonElementgetTarget()
QNamegetTypeName()
booleanisLeaf()
booleanisNillable()

Field Detail

defaultValue

public final XmlString defaultValue

type

final CNonElement type
In-memory type. This is the type used when

typeName

QName typeName
XML Schema type name of type, if available.

Constructor Detail

CTypeRef

public CTypeRef(CNonElement type, XSElementDecl decl)

CTypeRef

public CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)

Method Detail

getDefaultValue

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

See Also: defaultValue

getSimpleTypeName

public static QName getSimpleTypeName(XSElementDecl decl)

getSource

public PropertyInfo<NType,NClass> getSource()

getTagName

public QName getTagName()

getTarget

public CNonElement getTarget()

getTypeName

public QName getTypeName()

isLeaf

public boolean isLeaf()

isNillable

public boolean isNillable()