Package com.sun.tools.xjc.model
Class CTypeRef
- 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, javax.xml.namespace.QName elementName, javax.xml.namespace.QName typeName, boolean nillable, XmlString defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultValue()Inside XJC, usedefaultValuethat has context information.static javax.xml.namespace.QNamegetSimpleTypeName(XSElementDecl decl)PropertyInfo<NType,NClass>getSource()Gets the property which is the source of this reference.javax.xml.namespace.QNamegetTagName()The associated element name.CNonElementgetTarget()Target of the reference.javax.xml.namespace.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, javax.xml.namespace.QName elementName, javax.xml.namespace.QName typeName, boolean nillable, XmlString defaultValue)
-
-
Method Detail
-
getTypeName
public javax.xml.namespace.QName getTypeName()
-
getSimpleTypeName
public static javax.xml.namespace.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 javax.xml.namespace.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 java.lang.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
-
-