- java.lang.Object
-
- com.sun.tools.xjc.reader.xmlschema.BindingComponent
-
- com.sun.tools.xjc.reader.xmlschema.ClassSelector
-
public final class ClassSelector extends BindingComponent
Manages association betweenXSComponent
s and generatedCTypeInfo
s.This class determines which component is mapped to (or is not mapped to) what types.
- Author:
- Kohsuke Kawaguchi ([email protected])
-
-
Constructor Summary
Constructors Constructor Description ClassSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CClass
bindToType(XSComplexType t, XSComponent referer, boolean cannotBeDelayed)
CTypeInfo
bindToType(XSComponent sc, XSComponent referer)
Checks if the given component is being mapped to a type.CElement
bindToType(XSElementDecl e, XSComponent referer)
TypeUse
bindToType(XSType t, XSComponent referer)
void
executeTasks()
Runs all the pending build tasks.CClassInfoParent
getClassScope()
Gets the current class scope.CClassInfo
getCurrentBean()
XSComponent
getCurrentRoot()
JPackage
getPackage(String targetNamespace)
Gets the Java package to which classes from this namespace should go.CElement
isBound(XSElementDecl x, XSComponent referer)
Checks if the given component is bound to a class.void
popClassScope()
void
pushClassScope(CClassInfoParent clsFctry)
void
queueBuild(XSComponent sc, CElement bean)
-
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.BindingComponent
getClassSelector, getErrorReporter
-
-
-
-
Method Detail
-
getClassScope
public CClassInfoParent getClassScope()
Gets the current class scope.
-
pushClassScope
public void pushClassScope(CClassInfoParent clsFctry)
-
popClassScope
public void popClassScope()
-
getCurrentRoot
public XSComponent getCurrentRoot()
-
getCurrentBean
public CClassInfo getCurrentBean()
-
isBound
public CElement isBound(XSElementDecl x, XSComponent referer)
Checks if the given component is bound to a class.
-
bindToType
public CTypeInfo bindToType(XSComponent sc, XSComponent referer)
Checks if the given component is being mapped to a type. If so, build that type and return that object. If it is not being mapped to a type item, return null.
-
bindToType
public CElement bindToType(XSElementDecl e, XSComponent referer)
-
bindToType
public CClass bindToType(XSComplexType t, XSComponent referer, boolean cannotBeDelayed)
-
bindToType
public TypeUse bindToType(XSType t, XSComponent referer)
-
executeTasks
public void executeTasks()
Runs all the pending build tasks.
-
queueBuild
public void queueBuild(XSComponent sc, CElement bean)
-
-