- java.lang.Object
-
- com.sun.tools.xjc.model.CTypeRef
-
-
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<NType,NClass>getSource()Gets the property which is the source of this reference.QNamegetTagName()The associated element name.CNonElementgetTarget()Target of the reference.QNamegetTypeName()booleanisLeaf()booleanisNillable()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:NonElementRefTarget of the reference.- Specified by:
getTargetin interfaceNonElementRef<NType,NClass>- Returns:
- never null
-
getTagName
public QName 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
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<NType,NClass>- See Also:
defaultValue
-
isLeaf
public boolean isLeaf()
-
getSource
public PropertyInfo<NType,NClass> getSource()
Description copied from interface:NonElementRefGets the property which is the source of this reference.- Specified by:
getSourcein interfaceNonElementRef<NType,NClass>- Returns:
- never null
-
-