Package com.sun.tools.xjc.model
Class CTypeRef
- java.lang.Object
-
- 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 Object implements com.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>
TypeReffor XJC. TODO: do we need the source schema component support here?- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description XmlStringdefaultValue
-
Constructor Summary
Constructors Constructor Description CTypeRef(CNonElement type, XSElementDecl decl)CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()Inside XJC, usedefaultValuethat has context information.static QNamegetSimpleTypeName(XSElementDecl decl)com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>getSource()QNamegetTagName()CNonElementgetTarget()QNamegetTypeName()booleanisLeaf()booleanisNillable()
-
-
-
Field Detail
-
defaultValue
public final XmlString defaultValue
-
-
Constructor Detail
-
CTypeRef
public CTypeRef(CNonElement type, XSElementDecl decl)
-
CTypeRef
public CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)
-
-
Method Detail
-
getTypeName
public QName getTypeName()
-
getSimpleTypeName
public static QName getSimpleTypeName(XSElementDecl decl)
-
getTarget
public CNonElement getTarget()
-
getTagName
public QName getTagName()
-
isNillable
public boolean isNillable()
-
getDefaultValue
public String getDefaultValue()
Inside XJC, usedefaultValuethat has context information. This method is to override the one defined in the runtime model.- Specified by:
getDefaultValuein interfacecom.sun.xml.bind.v2.model.core.TypeRef<NType,NClass>- See Also:
defaultValue
-
isLeaf
public boolean isLeaf()
-
-