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, usedefaultValue
that has context information.static QName
Gets the property which is the source of this reference.The associated element name.Target of the reference.boolean
isLeaf()
boolean
Returns 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:NonElementRef
Target of the reference.- Specified by:
getTarget
in interfaceNonElementRef<NType,
NClass> - Returns:
- never null
-
getTagName
Description copied from interface:TypeRef
The associated element name.- Specified by:
getTagName
in interfaceTypeRef<NType,
NClass> - Returns:
- never null.
-
isNillable
public boolean isNillable()Description copied from interface:TypeRef
Returns true if this element is nillable.- Specified by:
isNillable
in interfaceTypeRef<NType,
NClass>
-
getDefaultValue
Inside XJC, usedefaultValue
that has context information. This method is to override the one defined in the runtime model.- Specified by:
getDefaultValue
in interfaceTypeRef<NType,
NClass> - See Also:
-
isLeaf
public boolean isLeaf() -
getSource
Description copied from interface:NonElementRef
Gets the property which is the source of this reference.- Specified by:
getSource
in interfaceNonElementRef<NType,
NClass> - Returns:
- never null
-