Class ComplexTypeFieldBuilder
- java.lang.Object
-
- com.sun.tools.xjc.reader.xmlschema.BindingComponent
-
- com.sun.tools.xjc.reader.xmlschema.ct.ComplexTypeFieldBuilder
-
public final class ComplexTypeFieldBuilder extends BindingComponent
single entry point of building a field expression from a complex type. One object is created for oneBGMBuilder
.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ComplexTypeFieldBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(XSComplexType type)
Binds a complex type to a field expression.protected ComplexTypeBindingMode
getBindingMode(XSComplexType type)
Obtains the binding mode recorded throughrecordBindingMode(XSComplexType, ComplexTypeBindingMode)
.void
recordBindingMode(XSComplexType type, ComplexTypeBindingMode flag)
Records the binding mode of the given complex type.-
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.BindingComponent
getClassSelector, getErrorReporter
-
-
-
-
Method Detail
-
build
public void build(XSComplexType type)
Binds a complex type to a field expression.
-
recordBindingMode
public void recordBindingMode(XSComplexType type, ComplexTypeBindingMode flag)
Records the binding mode of the given complex type.Binding of a derived complex type often depends on that of the base complex type. For example, when a base type is bound to the getRest() method, all the derived complex types will be bound in the same way.
For this reason, we have to record how each complex type is being bound.
-
getBindingMode
protected ComplexTypeBindingMode getBindingMode(XSComplexType type)
Obtains the binding mode recorded throughrecordBindingMode(XSComplexType, ComplexTypeBindingMode)
.
-
-