
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| public final String | defaultPackage1
If this is non-null, this package name takes over all the schema customizations. |
| public final String | defaultPackage2
If this is non-null, this package name will be used when no customization is specified. |
| private final BindInfo | emptyBindInfo
Used as a constant instance to represent the empty |
| private final Map | externalBindInfos
A map that stores binding declarations augmented by XJC. |
| public final FieldRendererFactory | |
| private BIGlobalBinding | globalBinding
Global bindings. |
| private final BindGreen | |
| private Transformer | |
| public final boolean | inExtensionMode
True if the compiler is running in the extension mode (as opposed to the strict conformance mode.) |
| public final Model | |
| private ParticleBinder | |
| private final BindPurple | |
| private RefererFinder | refFinder
Lazily computed |
| private final XSFinder | toPurple
Returns true if the component should be processed by purple. |
| Access | Constructor and Description |
|---|---|
| protected | BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private BindInfo | Returns: null if no bind info is associated to this schema component.Gets the BindInfo object associated to a schema component. |
| private XSAnnotation | |
| public static Model | build(XSSchemaSet _schemas, JCodeModel codeModel, ErrorReceiver _errorReceiver, Options opts)
Entry point. |
| private void | |
| private void | checkMultipleSchemaBindings(XSSchema schema)
Reports an error if there are more than one jaxb:schemaBindings customization. |
| public String | deriveName(String
The base name. This should be things like element names
or type names. name, XSComponent The component from which the base name was taken.
Used to determine how names are modified. comp)Derives a name from a schema component. |
| private XSAnnotation | |
| public BindInfo | Returns: always return a validBindInfo object. If none
is specified for the given component, a dummy empty BindInfo
will be returned.Gets the BindInfo object associated to a schema component. |
| public String | Returns: return the documentation tag for the given component, null if none foundGets the documentation object associated to a schema component. |
| public BIGlobalBinding | |
| public Transformer | |
| protected final BIDom | |
| public static QName | Returns: null if the declaration is anonymous.Returns the QName of the declaration. |
| public NameConverter | getNameConverter()
Name converter that implements " |
| public BindInfo | 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.Gets or creates the BindInfo object associated to a schema component. |
| public ParticleBinder | |
| public Set | |
| public boolean | |
| private void | populate(Map<String, ? extends XSComponent> col, XSSchema schema)
Calls |
| private void | |
| private void | |
| public void | ying(XSComponent sc, XSComponent referer)
If the component maps to a property, forwards to purple, otherwise to green. |
| activePlugins | back to summary |
|---|---|
| private List<Plugin> activePlugins | |
| defaultPackage1 | back to summary |
|---|---|
| public final String defaultPackage1 If this is non-null, this package name takes over all the schema customizations. | |
| defaultPackage2 | back to summary |
|---|---|
| public final String defaultPackage2 If this is non-null, this package name will be used when no customization is specified. | |
| emptyBindInfo | back to summary |
|---|---|
| private final BindInfo emptyBindInfo Used as a constant instance to represent the empty | |
| externalBindInfos | back to summary |
|---|---|
| private final Map<XSComponent, BindInfo> externalBindInfos A map that stores binding declarations augmented by XJC. | |
| fieldRendererFactory | back to summary |
|---|---|
| public final FieldRendererFactory fieldRendererFactory | |
| globalBinding | back to summary |
|---|---|
| private BIGlobalBinding globalBinding Global bindings. The empty global binding is set as the default, so that there will be no need to test if the value is null. | |
| green | back to summary |
|---|---|
| private final BindGreen green | |
| identityTransformer | back to summary |
|---|---|
| private Transformer identityTransformer | |
| inExtensionMode | back to summary |
|---|---|
| public final boolean inExtensionMode True if the compiler is running in the extension mode (as opposed to the strict conformance mode.) | |
| model | back to summary |
|---|---|
| public final Model model | |
| particleBinder | back to summary |
|---|---|
| private ParticleBinder particleBinder | |
| purple | back to summary |
|---|---|
| private final BindPurple purple | |
| refFinder | back to summary |
|---|---|
| private RefererFinder refFinder Lazily computed
| |
| toPurple | back to summary |
|---|---|
| private final XSFinder toPurple Returns true if the component should be processed by purple. | |
| BGMBuilder | back to summary |
|---|---|
| protected BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins) | |
| _build | back to summary |
|---|---|
| private void _build() | |
| _getBindInfoReadOnly | back to summary |
|---|---|
| private BindInfo _getBindInfoReadOnly(XSComponent schemaComponent, boolean extended) Gets the BindInfo object associated to a schema component.
| |
| _getXSAnnotation | back to summary |
|---|---|
| private XSAnnotation _getXSAnnotation(XSComponent schemaComponent, boolean extended) | |
| build | back to summary |
|---|---|
| public static Model build(XSSchemaSet _schemas, JCodeModel codeModel, ErrorReceiver _errorReceiver, Options opts) Entry point. | |
| buildContents | back to summary |
|---|---|
| private void buildContents() Fill-in the contents of each classes. | |
| checkMultipleSchemaBindings | back to summary |
|---|---|
| private void checkMultipleSchemaBindings(XSSchema schema) Reports an error if there are more than one jaxb:schemaBindings customization. | |
| deriveName | back to summary |
|---|---|
| public String deriveName(String name, XSComponent comp) Derives a name from a schema component. This method handles prefix/suffix modification and XML-to-Java name conversion.
| |
| enhanceBindInfo | back to summary |
|---|---|
| private XSAnnotation enhanceBindInfo(XSAnnotation annon, XSComponent schemaComponent) | |
| getBindInfo | back to summary |
|---|---|
| public BindInfo getBindInfo(XSComponent schemaComponent) Gets the BindInfo object associated to a schema component. | |
| getDocumentation | back to summary |
|---|---|
| public String getDocumentation(XSComponent schemaComponent) Gets the documentation object associated to a schema component.
| |
| getGlobalBinding | back to summary |
|---|---|
| public BIGlobalBinding getGlobalBinding() Gets the global bindings.
| |
| getIdentityTransformer | back to summary |
|---|---|
| public Transformer getIdentityTransformer() Gets the shared instance of the identity transformer. | |
| getLocalDomCustomization | back to summary |
|---|---|
| protected final BIDom getLocalDomCustomization(XSParticle p) Gets the | |
| getName | back to summary |
|---|---|
| public static QName getName(XSDeclaration decl) Returns the QName of the declaration.
| |
| getNameConverter | back to summary |
|---|---|
| public NameConverter getNameConverter() Name converter that implements " This object should be used to perform any name conversion needs, instead of the JJavaName class in CodeModel. | |
| getOrCreateBindInfo | back to summary |
|---|---|
| public BindInfo getOrCreateBindInfo(XSComponent schemaComponent) Gets or creates the BindInfo object associated to a schema component.
| |
| getParticleBinder | back to summary |
|---|---|
| public ParticleBinder getParticleBinder() Gets the particle binder for this binding.
| |
| getReferer | back to summary |
|---|---|
| public Set Find all types that refer to the given complex type. | |
| isGenerateMixedExtensions | back to summary |
|---|---|
| public boolean isGenerateMixedExtensions() | |
| populate | back to summary |
|---|---|
| private void populate(Map<String, ? extends XSComponent> col, XSSchema schema) Calls | |
| processPackageJavadoc | back to summary |
|---|---|
| private void processPackageJavadoc(XSSchema s) Generates | |
| promoteGlobalBindings | back to summary |
|---|---|
| private void promoteGlobalBindings() List up all the global bindings. | |
| ying | back to summary |
|---|---|
| public void ying(XSComponent sc, XSComponent referer) If the component maps to a property, forwards to purple, otherwise to green. If the component is mapped to a type, this method needs to return true. See the chart at the class javadoc. | |