- All Superinterfaces:
IContainer,IContainerModel
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModelAssembly,IBoundDefinitionModelAssembly,IChoiceInstance,IContainerModelAssembly,IFeatureContainerModelAbsolute<MI,,NMI, FI, AI> IFeatureContainerModelAssembly<MI,NMI, FI, AI, CI, CGI>
- All Known Implementing Classes:
AbstractChoiceInstance,AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition
Represents a model container with absolute (non-grouped) instances.
Absolute instances are identified by their effective name (index) rather than
a use name. This interface narrows the return types of
IContainerModel methods to absolute instance types.
-
Method Summary
Modifier and TypeMethodDescriptionGet the assembly instance contained within the model with the associated use name.Collection<? extends IAssemblyInstanceAbsolute>Get all assembly instances within the container.Get the field instance contained within the model with the associated use name.Collection<? extends IFieldInstanceAbsolute>Get all field instances within the container.Collection<? extends IModelInstanceAbsolute>Get all model instances within the container.Get the model instance contained within the model with the associated use name.Collection<? extends INamedModelInstanceAbsolute>Get all named model instances within the container.Methods inherited from interface dev.metaschema.core.model.IContainerModel
getOwningDefinition, hasChildren
-
Method Details
-
getModelInstances
Collection<? extends IModelInstanceAbsolute> getModelInstances()Description copied from interface:IContainerModelGet all model instances within the container.- Specified by:
getModelInstancesin interfaceIContainerModel- Returns:
- an ordered collection of model instances
-
getNamedModelInstances
Collection<? extends INamedModelInstanceAbsolute> getNamedModelInstances()Description copied from interface:IContainerModelGet all named model instances within the container.- Specified by:
getNamedModelInstancesin interfaceIContainerModel- Returns:
- an ordered mapping of use name to model instance
-
getNamedModelInstanceByName
Description copied from interface:IContainerModelGet the model instance contained within the model with the associated use name.- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModel- 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:
-
getFieldInstances
Collection<? extends IFieldInstanceAbsolute> getFieldInstances()Description copied from interface:IContainerModelGet all field instances within the container.- Specified by:
getFieldInstancesin interfaceIContainerModel- Returns:
- a mapping of use name to field instance
-
getFieldInstanceByName
Description copied from interface:IContainerModelGet the field instance contained within the model with the associated use name.- Specified by:
getFieldInstanceByNamein interfaceIContainerModel- 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:
-
getAssemblyInstances
Collection<? extends IAssemblyInstanceAbsolute> getAssemblyInstances()Description copied from interface:IContainerModelGet all assembly instances within the container.- Specified by:
getAssemblyInstancesin interfaceIContainerModel- Returns:
- a mapping of use name to assembly instance
-
getAssemblyInstanceByName
Description copied from interface:IContainerModelGet the assembly instance contained within the model with the associated use name.- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModel- 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:
-