com.sun.tools.xjc.model
public final class Model extends Object implements TypeInfoSet<NType,NClass,Void,Void>, CCustomizable
A Model is a schema language neutral representation of the result of a scehma parsing. The back-end then works against this model to turn this into a series of Java source code.
Field Summary | |
---|---|
ClassNameAllocatorWrapper | allocator
This allocator has the final say on deciding the class name.
|
JCodeModel | codeModel
This model uses this code model exclusively. |
CCustomizations | customizations
Single linked list that connects all CCustomizations that belong to this model.
|
SymbolSpace | defaultSymbolSpace
Default ID/IDREF symbol space. |
static Locator | EMPTY_LOCATOR |
Options | options
Command-line options used for building this model. |
JClass | rootClass
If non-null, all the generated classes should eventually derive from this class. |
JClass | rootInterface
If non-null, all the generated interfaces should eventually derive from this interface. |
XSSchemaSet | schemaComponent
If this model was built from XML Schema, this field
stores the root object of the parse schema model.
|
boolean | serializable
True to generate serializable classes. |
Long | serialVersionUID
serial version UID to be generated.
null if not to generate serialVersionUID field. |
ImplStructureStrategy | strategy
Specifies the code generation strategy.
|
Constructor Summary | |
---|---|
Model(Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent) |
Model classes are responsible for using the allocator. This allocator interaction should be transparent to the user/builder of the model.
See Also: next
UNKNOWN: 2.1.1
Parameters: nc Usually this should be set in the constructor, but we do allow this parameter to be initially null, and then set later. schemaComponent The source schema model, if this is built from XSD.
This is used to support the use of a schema inside WSDL. For XML Schema, the top-level binding is a map from global element declarations to its representation class.
For other schema languages, it should follow the appendicies in WSDL (but in practice no one would use WSDL with a schema language other than XML Schema, so it doesn't really matter.)
This needs to be filled by the front-end.
Returns:
null if there was any errors. Otherwise it returns a valid
Outline object, which captures how the model objects
are mapped to the generated source code.
Add-ons can use those information to further augment the generated
source code.
Deprecated: No line number available for the "root" component.
Deprecated: Always return null. Perhaps you are interested in schemaComponent?