- java.lang.Object
-
- com.sun.tools.xjc.model.CTypeRef
-
-
Field Summary
Fields Modifier and Type Field Description XmlString
defaultValue
-
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 String
getDefaultValue()
Inside XJC, usedefaultValue
that has context information.static QName
getSimpleTypeName(XSElementDecl decl)
PropertyInfo<NType,NClass>
getSource()
Gets the property which is the source of this reference.QName
getTagName()
The associated element name.CNonElement
getTarget()
Target of the reference.QName
getTypeName()
boolean
isLeaf()
boolean
isNillable()
Returns true if this element is nillable.
-
-
-
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()
Description copied from interface:NonElementRef
Target of the reference.- Specified by:
getTarget
in interfaceNonElementRef<NType,NClass>
- Returns:
- never null
-
getTagName
public QName 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
public String 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:
defaultValue
-
isLeaf
public boolean isLeaf()
-
getSource
public PropertyInfo<NType,NClass> 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
-
-