Class ClassSelector
java.lang.Object
com.sun.tools.xjc.reader.xmlschema.BindingComponent
com.sun.tools.xjc.reader.xmlschema.ClassSelector
Manages association between
XSComponent
s and generated
CTypeInfo
s.
This class determines which component is mapped to (or is not mapped to) what types.
- Author:
- Kohsuke Kawaguchi ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbindToType
(XSComplexType t, XSComponent referer, boolean cannotBeDelayed) bindToType
(XSComponent sc, XSComponent referer) Checks if the given component is being mapped to a type.bindToType
(XSElementDecl e, XSComponent referer) bindToType
(XSType t, XSComponent referer) void
Runs all the pending build tasks.Gets the current class scope.getPackage
(String targetNamespace) Gets the Java package to which classes from this namespace should go.isBound
(XSElementDecl x, XSComponent referer) Checks if the given component is bound to a class.void
void
pushClassScope
(CClassInfoParent clsFctry) void
queueBuild
(XSComponent sc, CElement bean) Methods inherited from class com.sun.tools.xjc.reader.xmlschema.BindingComponent
getClassSelector, getErrorReporter
-
Constructor Details
-
ClassSelector
public ClassSelector()
-
-
Method Details
-
getClassScope
Gets the current class scope. -
pushClassScope
-
popClassScope
public void popClassScope() -
getCurrentRoot
-
getCurrentBean
-
isBound
Checks if the given component is bound to a class. -
bindToType
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
-
bindToType
-
bindToType
-
executeTasks
public void executeTasks()Runs all the pending build tasks. -
queueBuild
-
getPackage
Gets the Java package to which classes from this namespace should go.Usually, the getOuterClass method should be used to determine where to put a class.
-