- All Superinterfaces:
IContainer
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModelAssembly,IBoundDefinitionModelAssembly,IBoundInstanceModelChoiceGroup,IChoiceGroupInstance,IChoiceInstance,IContainerModelAbsolute,IContainerModelAssembly,IContainerModelGrouped,IFeatureContainerModelAbsolute<MI,,NMI, FI, AI> IFeatureContainerModelAssembly<MI,,NMI, FI, AI, CI, CGI> IFeatureContainerModelGrouped<NMI,FI, AI>
- All Known Implementing Classes:
AbstractChoiceGroupInstance,AbstractChoiceInstance,AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition
Indicates that the Metaschema type that has a complex model that can contain
field and assembly instances.
-
Method Summary
Modifier and TypeMethodDescriptiongetAssemblyInstanceByName(Integer index) Get the assembly instance contained within the model with the associated use name.Collection<? extends IAssemblyInstance>Get all assembly instances within the container.getFieldInstanceByName(Integer index) Get the field instance contained within the model with the associated use name.Collection<? extends IFieldInstance>Get all field instances within the container.Collection<? extends IModelInstance>Get all model instances within the container.Get the model instance contained within the model with the associated use name.Collection<? extends INamedModelInstance>Get all named model instances within the container.Retrieve the Metaschema module definition containing this container.default booleanIdentifies if the container allows child instances or not.
-
Method Details
-
hasChildren
default boolean hasChildren()Description copied from interface:IContainerIdentifies if the container allows child instances or not.This can be the case if the container has flags or a complex model with at least a choice, choice group, field, or assembly instance.
- Specified by:
hasChildrenin interfaceIContainer- Returns:
trueif there are flags or a model, orfalseotherwise
-
getOwningDefinition
Retrieve the Metaschema module definition containing this container.- Returns:
- the containing Metaschema module definition
-
getModelInstances
Get all model instances within the container.- Returns:
- an ordered collection of model instances
-
getNamedModelInstances
Get all named model instances within the container.- Returns:
- an ordered mapping of use name to model instance
-
getNamedModelInstanceByName
Get the model instance contained within the model with the associated use name.- Parameters:
index- 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
Get all field instances within the container.- Returns:
- a mapping of use name to field instance
-
getFieldInstanceByName
Get the field instance contained within the model with the associated use name.- Parameters:
index- 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
Get all assembly instances within the container.- Returns:
- a mapping of use name to assembly instance
-
getAssemblyInstanceByName
Get the assembly instance contained within the model with the associated use name.- Parameters:
index- the effective name-based qualified name index of the assembly instance- Returns:
- the matching assembly instance, or
nullif no match was found - See Also:
-