public class BGMBuilder extends BindingComponent
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
BGMBuilder(String defaultPackage1,
String defaultPackage2,
boolean _inExtensionMode,
FieldRendererFactory fieldRendererFactory,
List<Plugin> activePlugins) |
Modifier and Type | Method and Description |
---|---|
static Model |
build(com.sun.xml.xsom.XSSchemaSet _schemas,
JCodeModel codeModel,
ErrorReceiver _errorReceiver,
Options opts)
Entry point.
|
String |
deriveName(String name,
com.sun.xml.xsom.XSComponent comp)
Derives a name from a schema component.
|
BindInfo |
getBindInfo(com.sun.xml.xsom.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(com.sun.xml.xsom.XSParticle p)
Gets the
BIDom object that applies to the given particle. |
static QName |
getName(com.sun.xml.xsom.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(com.sun.xml.xsom.XSComponent schemaComponent)
Gets or creates the BindInfo object associated to a schema component.
|
ParticleBinder |
getParticleBinder()
Gets the particle binder for this binding.
|
Set<com.sun.xml.xsom.XSComponent> |
getReferer(com.sun.xml.xsom.XSType c)
Find all types that refer to the given complex type.
|
boolean |
isGenerateMixedExtensions() |
void |
ying(com.sun.xml.xsom.XSComponent sc,
com.sun.xml.xsom.XSComponent referer)
If the component maps to a property, forwards to purple, otherwise to green.
|
getClassSelector, getErrorReporter
public final boolean inExtensionMode
public final String defaultPackage1
public final String defaultPackage2
public final Model model
public final FieldRendererFactory fieldRendererFactory
protected BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins)
public static Model build(com.sun.xml.xsom.XSSchemaSet _schemas, JCodeModel codeModel, ErrorReceiver _errorReceiver, Options opts)
@NotNull public BIGlobalBinding getGlobalBinding()
@NotNull public ParticleBinder getParticleBinder()
public NameConverter getNameConverter()
XML -> Java
name conversion"
as specified in the spec.
This object abstracts the detail that we use different name
conversion depending on the customization.
This object should be used to perform any name conversion needs, instead of the JJavaName class in CodeModel.
public BindInfo getOrCreateBindInfo(com.sun.xml.xsom.XSComponent schemaComponent)
public BindInfo getBindInfo(com.sun.xml.xsom.XSComponent schemaComponent)
BindInfo
object. If none
is specified for the given component, a dummy empty BindInfo
will be returned.protected final BIDom getLocalDomCustomization(com.sun.xml.xsom.XSParticle p)
BIDom
object that applies to the given particle.public void ying(com.sun.xml.xsom.XSComponent sc, @Nullable com.sun.xml.xsom.XSComponent referer)
public Transformer getIdentityTransformer()
public Set<com.sun.xml.xsom.XSComponent> getReferer(com.sun.xml.xsom.XSType c)
public static QName getName(com.sun.xml.xsom.XSDeclaration decl)
public String deriveName(String name, com.sun.xml.xsom.XSComponent comp)
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.public boolean isGenerateMixedExtensions()
Copyright © 2019 JBoss by Red Hat. All rights reserved.