Module dev.metaschema.core
Package dev.metaschema.core.model
Interface IFeatureContainerModelAbsolute<MI extends IModelInstanceAbsolute,NMI extends INamedModelInstanceAbsolute,FI extends IFieldInstanceAbsolute,AI extends IAssemblyInstanceAbsolute>
- Type Parameters:
MI- the model instance Java typeNMI- the named model instance Java typeFI- the field instance Java typeAI- the assembly instance Java type
- All Superinterfaces:
IContainer,IContainerModel,IContainerModelAbsolute
- All Known Subinterfaces:
IBoundDefinitionModelAssembly,IFeatureContainerModelAssembly<MI,NMI, FI, AI, CI, CGI>
- All Known Implementing Classes:
AbstractChoiceInstance,AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition
public interface IFeatureContainerModelAbsolute<MI extends IModelInstanceAbsolute,NMI extends INamedModelInstanceAbsolute,FI extends IFieldInstanceAbsolute,AI extends IAssemblyInstanceAbsolute>
extends IContainerModelAbsolute
Common interface for model container support classes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault AIGet the assembly instance contained within the model with the associated use name.default Collection<AI>Get all assembly instances within the container.default FIGet the field instance contained within the model with the associated use name.default Collection<FI>Get all field instances within the container.Get the model container implementation instance.default Collection<? extends MI>Get all model instances within the container.default NMIGet the model instance contained within the model with the associated use name.default Collection<NMI>Get all named model instances within the container.Methods inherited from interface dev.metaschema.core.model.IContainerModel
getOwningDefinition, hasChildren
-
Method Details
-
getModelContainer
Get the model container implementation instance.- Returns:
- the model container instance
-
getModelInstances
Description copied from interface:IContainerModelGet all model instances within the container.- Specified by:
getModelInstancesin interfaceIContainerModel- Specified by:
getModelInstancesin interfaceIContainerModelAbsolute- Returns:
- an ordered collection of model instances
-
getNamedModelInstanceByName
Description copied from interface:IContainerModelGet the model instance contained within the model with the associated use name.- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModel- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModelAbsolute- Parameters:
name- the effective name-based qualified name index of the model instance- Returns:
- the matching model instance, or
nullif no match was found - See Also:
-
getNamedModelInstances
Description copied from interface:IContainerModelGet all named model instances within the container.- Specified by:
getNamedModelInstancesin interfaceIContainerModel- Specified by:
getNamedModelInstancesin interfaceIContainerModelAbsolute- Returns:
- an ordered mapping of use name to model instance
-
getFieldInstanceByName
Description copied from interface:IContainerModelGet the field instance contained within the model with the associated use name.- Specified by:
getFieldInstanceByNamein interfaceIContainerModel- Specified by:
getFieldInstanceByNamein interfaceIContainerModelAbsolute- Parameters:
name- the use name-based qualified name index of the field instance- Returns:
- the matching field instance, or
nullif no match was found - See Also:
-
getFieldInstances
Description copied from interface:IContainerModelGet all field instances within the container.- Specified by:
getFieldInstancesin interfaceIContainerModel- Specified by:
getFieldInstancesin interfaceIContainerModelAbsolute- Returns:
- a mapping of use name to field instance
-
getAssemblyInstanceByName
Description copied from interface:IContainerModelGet the assembly instance contained within the model with the associated use name.- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModel- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModelAbsolute- Parameters:
name- the effective name-based qualified name index of the assembly instance- Returns:
- the matching assembly instance, or
nullif no match was found - See Also:
-
getAssemblyInstances
Description copied from interface:IContainerModelGet all assembly instances within the container.- Specified by:
getAssemblyInstancesin interfaceIContainerModel- Specified by:
getAssemblyInstancesin interfaceIContainerModelAbsolute- Returns:
- a mapping of use name to assembly instance
-