| java.lang.Object com.sun.tools.xjc.reader.xmlschema.BindingComponent com.sun.tools.xjc.reader.xmlschema.ClassSelector
ClassSelector | final public class ClassSelector extends BindingComponent (Code) | | 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 (kohsuke.kawaguchi@sun.com) |
boundElements | final Map<XSComponent, CElementInfo> boundElements(Code) | | UGLY HACK.
To avoid cyclic dependency between binding elements and types,
we need additional markers that tell which elements are definitely not bound
to a class.
the cyclic dependency is as follows:
elements need to bind its types first, because otherwise it can't
determine T of JAXBElement.
OTOH, types need to know whether its parent is bound to a class to decide
which class name to use.
|
ClassSelector | public ClassSelector()(Code) | | |
_bindToClass | CTypeInfo _bindToClass(XSComponent sc, XSComponent referer, boolean cannotBeDelayed)(Code) | | The real meat of the "bindToType" code.
Parameters: cannotBeDelayed - if the binding of the body of the class cannot be deferedand needs to be done immediately. If the flag is false,the binding of the body will be done later, to avoidcyclic binding problem. Parameters: referer - The component that refers to sc. This can be null,if figuring out the referer is too hard, in which casethe error message might be less user friendly. |
bindToType | public CTypeInfo bindToType(XSComponent sc, XSComponent referer)(Code) | | 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.
|
executeTasks | public void executeTasks()(Code) | | Runs all the pending build tasks.
|
getPackage | public JPackage getPackage(String targetNamespace)(Code) | | 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.
|
popClassScope | final public void popClassScope()(Code) | | |
|
|