- java.lang.Object
-
- com.sun.tools.xjc.model.CTypeRef
-
- All Implemented Interfaces:
NonElementRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>,TypeRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>
public final class CTypeRef extends Object implements TypeRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.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)PropertyInfo<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.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()
- Specified by:
getTargetin interfaceNonElementRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>
-
getTagName
public QName getTagName()
- Specified by:
getTagNamein interfaceTypeRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>
-
isNillable
public boolean isNillable()
- Specified by:
isNillablein interfaceTypeRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>
-
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 interfaceTypeRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>- See Also:
defaultValue
-
isLeaf
public boolean isLeaf()
-
getSource
public PropertyInfo<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass> getSource()
- Specified by:
getSourcein interfaceNonElementRef<com.sun.tools.xjc.model.nav.NType,com.sun.tools.xjc.model.nav.NClass>
-
-