- All Superinterfaces:
IContainer,IContainerModel
- All Known Subinterfaces:
IBoundInstanceModelChoiceGroup,IChoiceGroupInstance,IFeatureContainerModelGrouped<NMI,FI, AI>
- All Known Implementing Classes:
AbstractChoiceGroupInstance
Represents a model container with grouped instances.
Grouped instances are part of a choice group and share a common group-as
name. This interface narrows the return types of IContainerModel
methods to grouped instance types.
-
Method Summary
Modifier and TypeMethodDescriptionGet the assembly instance contained within the model with the associated use name.Collection<? extends IAssemblyInstanceGrouped>Get all assembly instances within the container.Get the field instance contained within the model with the associated use name.Collection<? extends IFieldInstanceGrouped>Get all field instances within the container.default Collection<? extends INamedModelInstanceGrouped>Get all model instances within the container.Get the model instance contained within the model with the associated use name.Collection<? extends INamedModelInstanceGrouped>Get all named model instances within the container.Retrieve the Metaschema module definition containing this container.Methods inherited from interface dev.metaschema.core.model.IContainerModel
hasChildren
-
Method Details
-
getOwningDefinition
IAssemblyDefinition getOwningDefinition()Description copied from interface:IContainerModelRetrieve the Metaschema module definition containing this container.- Specified by:
getOwningDefinitionin interfaceIContainerModel- Returns:
- the containing Metaschema module definition
-
getModelInstances
Description copied from interface:IContainerModelGet all model instances within the container.- Specified by:
getModelInstancesin interfaceIContainerModel- Returns:
- an ordered collection of model instances
-
getNamedModelInstances
Get all named model instances within the container.- Specified by:
getNamedModelInstancesin interfaceIContainerModel- Returns:
- the named model instances in this container
-
getNamedModelInstanceByName
Get the model instance contained within the model with the associated use name.- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModel- Parameters:
name- the effective name of the model instance- Returns:
- the matching model instance, or
nullif no match was found - See Also:
-
getFieldInstances
Get all field instances within the container.- Specified by:
getFieldInstancesin interfaceIContainerModel- Returns:
- the field instances in this container
-
getFieldInstanceByName
Get the field instance contained within the model with the associated use name.- Specified by:
getFieldInstanceByNamein interfaceIContainerModel- Parameters:
name- the use name of the field instance- Returns:
- the matching field instance, or
nullif no match was found - See Also:
-
getAssemblyInstances
Get all assembly instances within the container.- Specified by:
getAssemblyInstancesin interfaceIContainerModel- Returns:
- the assembly instances in this container
-
getAssemblyInstanceByName
Get the assembly instance contained within the model with the associated use name.- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModel- Parameters:
name- the effective name of the assembly instance- Returns:
- the matching assembly instance, or
nullif no match was found - See Also:
-