- All Superinterfaces:
IContainer,IContainerModel,IContainerModelAbsolute
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModelAssembly,IBoundDefinitionModelAssembly,IFeatureContainerModelAssembly<MI,NMI, FI, AI, CI, CGI>
- All Known Implementing Classes:
AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition
Represents a model container for assembly definitions.
Assembly containers extend absolute containers by adding support for choice instances and choice group instances, which allow for alternative content models within the assembly.
-
Method Summary
Modifier and TypeMethodDescriptionGet the choice group model instance contained within the model with the associated group as name.Map<String,? extends IChoiceGroupInstance> Get all choice group instances within the container.List<? extends IChoiceInstance>Get all choice instances within the container.Methods inherited from interface dev.metaschema.core.model.IContainerModel
getOwningDefinition, hasChildrenMethods inherited from interface dev.metaschema.core.model.IContainerModelAbsolute
getAssemblyInstanceByName, getAssemblyInstances, getFieldInstanceByName, getFieldInstances, getModelInstances, getNamedModelInstanceByName, getNamedModelInstances
-
Method Details
-
getChoiceInstances
Get all choice instances within the container.- Returns:
- a list of choice instances
-
getChoiceGroupInstanceByName
Get the choice group model instance contained within the model with the associated group as name.- Parameters:
name- the group as name of the choice group instance- Returns:
- the matching choice group instance, or
nullif no match was found - See Also:
-
getChoiceGroupInstances
Get all choice group instances within the container.- Returns:
- a list of choice instances
-