java.lang.Object
dev.metaschema.core.model.AbstractModule<IBoundModule,IBoundDefinitionModelComplex,IBoundDefinitionFlag,IBoundDefinitionModelField<?>,IBoundDefinitionModelAssembly>
dev.metaschema.databind.model.AbstractBoundModule
- All Implemented Interfaces:
dev.metaschema.core.model.IModule,dev.metaschema.core.model.IModuleExtended<IBoundModule,,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly> IBoundModule
- Direct Known Subclasses:
MetaschemaBindingsModule,MetaschemaModelModule
public abstract class AbstractBoundModule
extends dev.metaschema.core.model.AbstractModule<IBoundModule,IBoundDefinitionModelComplex,IBoundDefinitionFlag,IBoundDefinitionModelField<?>,IBoundDefinitionModelAssembly>
implements IBoundModule
An abstract base class for Metaschema modules bound to Java classes.
This class provides the common implementation for modules that are defined through Java annotations on classes, enabling data binding between Metaschema module definitions and Java objects.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBoundModule(List<? extends IBoundModule> importedModules, IBindingContext bindingContext) Construct a new Module instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends dev.metaschema.core.model.IBoundObject>[]Get the assembly instance annotations associated with this bound choice group.protected Map<Integer,IBoundDefinitionModelAssembly> Get the mapping of assembly definition effective name to definition.Get the Module binding context.protected Class<? extends dev.metaschema.core.model.IBoundObject>[]Get the field instance annotations associated with this bound choice group.protected Map<Integer,IBoundDefinitionModelField<?>> Get the mapping of field definition effective name to definition.getFlagDefinitionByName(dev.metaschema.core.qname.IEnhancedQName name) dev.metaschema.core.metapath.StaticContextprotected NsBinding[]Get the namespace binding annotations associated with this module.dev.metaschema.core.model.ISourceMethods inherited from class dev.metaschema.core.model.AbstractModule
getExportedAssemblyDefinitionByName, getExportedAssemblyDefinitions, getExportedFieldDefinitionByName, getExportedFieldDefinitions, getExportedFlagDefinitionByName, getExportedFlagDefinitions, getExportedRootAssemblyDefinitionByName, getImportedModuleByShortName, getImportedModules, getQNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.databind.model.IBoundModule
getLocationMethods inherited from interface dev.metaschema.core.model.IModule
getExportedRootAssemblyDefinitionByName, getJsonBaseUri, getName, getQName, getRemarks, getShortName, getVersion, getXmlNamespaceMethods inherited from interface dev.metaschema.core.model.IModuleExtended
getAssemblyAndFieldDefinitions, getExportedAssemblyDefinitionByName, getExportedAssemblyDefinitions, getExportedFieldDefinitionByName, getExportedFieldDefinitions, getExportedFlagDefinitionByName, getExportedFlagDefinitions, getExportedRootAssemblyDefinitions, getImportedModuleByShortName, getImportedModules, getRootAssemblyDefinitions, getScopedAssemblyDefinitionByName, getScopedFieldDefinitionByName, getScopedFlagDefinitionByName
-
Constructor Details
-
AbstractBoundModule
protected AbstractBoundModule(@NonNull List<? extends IBoundModule> importedModules, @NonNull IBindingContext bindingContext) Construct a new Module instance.- Parameters:
importedModules- Module imports associated with the Metaschema modulebindingContext- the Module binding context
-
-
Method Details
-
getSource
- Specified by:
getSourcein interfacedev.metaschema.core.model.IModule
-
getLocationHint
- Specified by:
getLocationHintin interfacedev.metaschema.core.model.IModule
-
getModuleStaticContext
- Specified by:
getModuleStaticContextin interfacedev.metaschema.core.model.IModule
-
getBindingContext
Description copied from interface:IBoundModuleGet the Module binding context.- Specified by:
getBindingContextin interfaceIBoundModule- Returns:
- the context
-
getNamespaceBindings
- Specified by:
getNamespaceBindingsin interfacedev.metaschema.core.model.IModule
-
getNsBindings
Get the namespace binding annotations associated with this module.- Returns:
- the namespace bindings array, or an empty array if none are defined
-
getAssemblyClasses
Get the assembly instance annotations associated with this bound choice group.- Returns:
- the annotations
-
getFieldClasses
Get the field instance annotations associated with this bound choice group.- Returns:
- the annotations
-
getAssemblyDefinitionMap
Get the mapping of assembly definition effective name to definition.- Returns:
- the mapping
-
getAssemblyDefinitions
- Specified by:
getAssemblyDefinitionsin interfaceIBoundModule- Specified by:
getAssemblyDefinitionsin interfacedev.metaschema.core.model.IModule- Specified by:
getAssemblyDefinitionsin interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getAssemblyDefinitionByName
- Specified by:
getAssemblyDefinitionByNamein interfaceIBoundModule- Specified by:
getAssemblyDefinitionByNamein interfacedev.metaschema.core.model.IModule- Specified by:
getAssemblyDefinitionByNamein interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getFieldDefinitionMap
Get the mapping of field definition effective name to definition.- Returns:
- the mapping
-
getFieldDefinitions
- Specified by:
getFieldDefinitionsin interfaceIBoundModule- Specified by:
getFieldDefinitionsin interfacedev.metaschema.core.model.IModule- Specified by:
getFieldDefinitionsin interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getFieldDefinitionByName
- Specified by:
getFieldDefinitionByNamein interfaceIBoundModule- Specified by:
getFieldDefinitionByNamein interfacedev.metaschema.core.model.IModule- Specified by:
getFieldDefinitionByNamein interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getFlagDefinitions
- Specified by:
getFlagDefinitionsin interfacedev.metaschema.core.model.IModule- Specified by:
getFlagDefinitionsin interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getFlagDefinitionByName
public IBoundDefinitionFlag getFlagDefinitionByName(@NonNull dev.metaschema.core.qname.IEnhancedQName name) - Specified by:
getFlagDefinitionByNamein interfacedev.metaschema.core.model.IModule- Specified by:
getFlagDefinitionByNamein interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-