com.sun.tools.xjc.model
Class CTypeRef

java.lang.Object
  extended by com.sun.tools.xjc.model.CTypeRef
All Implemented Interfaces:
NonElementRef<NType,NClass>, TypeRef<NType,NClass>

public final class CTypeRef
extends Object
implements TypeRef<NType,NClass>

TypeRef for XJC. TODO: do we need the source schema component support here?

Author:
Kohsuke Kawaguchi

Field Summary
 XmlString defaultValue
           
 
Constructor Summary
CTypeRef(CNonElement type, QName elementName, QName typeName, boolean nillable, XmlString defaultValue)
           
CTypeRef(CNonElement type, XSElementDecl decl)
           
 
Method Summary
 String getDefaultValue()
          Inside XJC, use defaultValue that has context information.
static QName getSimpleTypeName(XSElementDecl decl)
           
 PropertyInfo<NType,NClass> getSource()
           
 QName getTagName()
           
 CNonElement getTarget()
           
 QName getTypeName()
           
 boolean isLeaf()
           
 boolean isNillable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
Specified by:
getTarget in interface NonElementRef<NType,NClass>

getTagName

public QName getTagName()
Specified by:
getTagName in interface TypeRef<NType,NClass>

isNillable

public boolean isNillable()
Specified by:
isNillable in interface TypeRef<NType,NClass>

getDefaultValue

public String getDefaultValue()
Inside XJC, use defaultValue that has context information. This method is to override the one defined in the runtime model.

Specified by:
getDefaultValue in interface TypeRef<NType,NClass>
See Also:
defaultValue

isLeaf

public boolean isLeaf()

getSource

public PropertyInfo<NType,NClass> getSource()
Specified by:
getSource in interface NonElementRef<NType,NClass>


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.