Package com.sun.tools.xjc.model
Class CTypeRef
java.lang.Object
com.sun.tools.xjc.model.CTypeRef
TypeRef for XJC.
TODO: do we need the source schema component support here?- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCTypeRef(CNonElement type, XSElementDecl decl) CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionInside XJC, usedefaultValuethat has context information.static QNameGets the property which is the source of this reference.The associated element name.Target of the reference.booleanisLeaf()booleanReturns true if this element is nillable.
-
Field Details
-
defaultValue
-
-
Constructor Details
-
CTypeRef
-
CTypeRef
public CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)
-
-
Method Details
-
getTypeName
-
getSimpleTypeName
-
getTarget
Description copied from interface:NonElementRefTarget of the reference.- Specified by:
getTargetin interfaceNonElementRef<NType,NClass> - Returns:
- never null
-
getTagName
Description copied from interface:TypeRefThe associated element name.- Specified by:
getTagNamein interfaceTypeRef<NType,NClass> - Returns:
- never null.
-
isNillable
public boolean isNillable()Description copied from interface:TypeRefReturns true if this element is nillable.- Specified by:
isNillablein interfaceTypeRef<NType,NClass>
-
getDefaultValue
Inside XJC, usedefaultValuethat has context information. This method is to override the one defined in the runtime model.- Specified by:
getDefaultValuein interfaceTypeRef<NType,NClass> - See Also:
-
isLeaf
public boolean isLeaf() -
getSource
Description copied from interface:NonElementRefGets the property which is the source of this reference.- Specified by:
getSourcein interfaceNonElementRef<NType,NClass> - Returns:
- never null
-