com.sun.tools.xjc.reader.xmlschema
public class BGMBuilder extends BindingComponent
Field Summary | |
---|---|
String | defaultPackage1
If this is non-null, this package name takes over
all the schema customizations. |
String | defaultPackage2
If this is non-null, this package name will be
used when no customization is specified. |
FieldRendererFactory | fieldRendererFactory |
boolean | inExtensionMode
True if the compiler is running in the extension mode
(as opposed to the strict conformance mode.) |
Model | model |
Constructor Summary | |
---|---|
protected | BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins) |
Method Summary | |
---|---|
static Model | build(XSSchemaSet _schemas, JCodeModel codeModel, ErrorReceiver _errorReceiver, Options opts)
Entry point. |
String | deriveName(String name, XSComponent comp)
Derives a name from a schema component.
|
BindInfo | getBindInfo(XSComponent schemaComponent)
Gets the BindInfo object associated to a schema component.
|
BIGlobalBinding | getGlobalBinding()
Gets the global bindings. |
Transformer | getIdentityTransformer()
Gets the shared instance of the identity transformer. |
protected BIDom | getLocalDomCustomization(XSParticle p)
Gets the BIDom object that applies to the given particle. |
static QName | getName(XSDeclaration decl)
Returns the QName of the declaration. |
NameConverter | getNameConverter()
Name converter that implements "XML->Java name conversion"
as specified in the spec.
|
BindInfo | getOrCreateBindInfo(XSComponent schemaComponent)
Gets or creates the BindInfo object associated to a schema component.
|
ParticleBinder | getParticleBinder()
Gets the particle binder for this binding. |
Set<XSComponent> | getReferer(XSType c)
Find all types that refer to the given complex type. |
boolean | isGenerateMixedExtensions() |
void | ying(XSComponent sc, XSComponent referer)
If the component maps to a property, forwards to purple, otherwise to green.
|
Parameters: name The base name. This should be things like element names or type names. comp The component from which the base name was taken. Used to determine how names are modified.
Returns: always return a valid BindInfo object. If none is specified for the given component, a dummy empty BindInfo will be returned.
Returns: null if the declaration is anonymous.
This object should be used to perform any name conversion needs, instead of the JJavaName class in CodeModel.
Returns: Always return a non-null valid BindInfo object. Even if no declaration was specified, this method creates a new BindInfo so that new decls can be added.