| java.lang.Object com.sun.tools.internal.xjc.reader.xmlschema.BindingComponent com.sun.tools.internal.xjc.reader.xmlschema.ClassSelector
ClassSelector | final public class ClassSelector extends BindingComponent (Code) | | Manages association between XSComponents and generated
content interfaces.
All the content interfaces are created, registered, and
maintained in this class.
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, boolean cannotBeDelayed)(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. |
bindToType | public CTypeInfo bindToType(XSComponent sc)(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.
|
bindToType | public CClassInfo bindToType(XSComplexType t, boolean cannotBeDelayed)(Code) | | |
executeTasks | public void executeTasks()(Code) | | Runs all the pending build tasks.
|
getCurrentRoot | public XSComponent getCurrentRoot()(Code) | | |
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.
|
isBound | final public CElement isBound(XSElementDecl x)(Code) | | Checks if the given component is bound to a class.
|
popClassScope | final public void popClassScope()(Code) | | |
|
|