com.sun.tools.xjc.reader.xmlschema.ct
Class CTBuilder

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.ct.CTBuilder
Direct Known Subclasses:
ChoiceContentComplexTypeBuilder, ExtendedComplexTypeBuilder, FreshComplexTypeBuilder, MixedComplexTypeBuilder, RestrictedComplexTypeBuilder, STDerivedComplexTypeBuilder

abstract class CTBuilder
extends Object

Builds a field expression from a complex type. Depending on a "kind" of complex type, the binding is quite different. For example, how a complex type is bound when it is extended from another complex type is very different from how it's bound when it has, say, mixed content model. Each different algorithm of binding a complex type is implemented as an implementation of this interface.


Field Summary
protected  BGMBuilder bgmBuilder
           
protected  ComplexTypeFieldBuilder builder
           
protected  ErrorReceiver errorReceiver
           
protected  BindGreen green
           
protected  XSSchemaSet schemas
           
protected  ClassSelector selector
           
protected  SimpleTypeBuilder simpleTypeBuilder
           
 
Constructor Summary
CTBuilder()
           
 
Method Summary
(package private) abstract  void build(XSComplexType ct)
          Binds the given complex type.
(package private) abstract  boolean isApplicable(XSComplexType ct)
          Returns true if this owner can handle the given complex type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected final ComplexTypeFieldBuilder builder

selector

protected final ClassSelector selector

simpleTypeBuilder

protected final SimpleTypeBuilder simpleTypeBuilder

errorReceiver

protected final ErrorReceiver errorReceiver

green

protected final BindGreen green

schemas

protected final XSSchemaSet schemas

bgmBuilder

protected final BGMBuilder bgmBuilder
Constructor Detail

CTBuilder

CTBuilder()
Method Detail

isApplicable

abstract boolean isApplicable(XSComplexType ct)
Returns true if this owner can handle the given complex type.


build

abstract void build(XSComplexType ct)
Binds the given complex type. This method will be called only when the isApplicable method returns true.