- All Superinterfaces:
dev.metaschema.core.model.IModule,dev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
- All Known Implementing Classes:
AbstractBoundModule,MetaschemaBindingsModule,MetaschemaModelModule
public interface IBoundModule
extends dev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex,IBoundDefinitionFlag,IBoundDefinitionModelField<?>,IBoundDefinitionModelAssembly>
Represents a bound Metaschema module that provides access to its field and
assembly definitions through Java class bindings.
-
Method Summary
Modifier and TypeMethodDescriptionGet the Module binding context.default URIstatic IBoundModulenewInstance(Class<? extends IBoundModule> clazz, IBindingContext bindingContext, List<? extends IBoundModule> importedModules) Create a new instance of a bound module using reflection.Methods inherited from interface dev.metaschema.core.model.IModule
getExportedRootAssemblyDefinitionByName, getJsonBaseUri, getLocationHint, getModuleStaticContext, getName, getNamespaceBindings, getQName, getRemarks, getShortName, getSource, getVersion, getXmlNamespaceMethods inherited from interface dev.metaschema.core.model.IModuleExtended
getAssemblyAndFieldDefinitions, getExportedAssemblyDefinitionByName, getExportedAssemblyDefinitions, getExportedFieldDefinitionByName, getExportedFieldDefinitions, getExportedFlagDefinitionByName, getExportedFlagDefinitions, getExportedRootAssemblyDefinitions, getFlagDefinitionByName, getFlagDefinitions, getImportedModuleByShortName, getImportedModules, getRootAssemblyDefinitions, getScopedAssemblyDefinitionByName, getScopedFieldDefinitionByName, getScopedFlagDefinitionByName
-
Method Details
-
newInstance
@NonNull static IBoundModule newInstance(@NonNull Class<? extends IBoundModule> clazz, @NonNull IBindingContext bindingContext, @NonNull List<? extends IBoundModule> importedModules) Create a new instance of a bound module using reflection.- Parameters:
clazz- the bound module class to instantiatebindingContext- the binding context for the moduleimportedModules- the list of modules imported by this module- Returns:
- the new module instance
- Throws:
IllegalArgumentException- if the module cannot be instantiated
-
getBindingContext
Get the Module binding context.- Returns:
- the context
-
getLocation
- Specified by:
getLocationin interfacedev.metaschema.core.model.IModule
-
getAssemblyDefinitions
- 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 interfacedev.metaschema.core.model.IModule- Specified by:
getAssemblyDefinitionByNamein interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-
getFieldDefinitions
- 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 interfacedev.metaschema.core.model.IModule- Specified by:
getFieldDefinitionByNamein interfacedev.metaschema.core.model.IModuleExtended<IBoundModule,IBoundDefinitionModelComplex, IBoundDefinitionFlag, IBoundDefinitionModelField<?>, IBoundDefinitionModelAssembly>
-