Module dev.metaschema.core
Package dev.metaschema.core.model
Interface IFeatureContainerModelGrouped<NMI extends INamedModelInstanceGrouped,FI extends IFieldInstanceGrouped,AI extends IAssemblyInstanceGrouped>
- Type Parameters:
NMI- the Java type of named model instancesFI- the Java type of field instancesAI- the Java type of assembly instances
- All Superinterfaces:
IContainer,IContainerModel,IContainerModelGrouped
- All Known Subinterfaces:
IBoundInstanceModelChoiceGroup
- All Known Implementing Classes:
AbstractChoiceGroupInstance
public interface IFeatureContainerModelGrouped<NMI extends INamedModelInstanceGrouped,FI extends IFieldInstanceGrouped,AI extends IAssemblyInstanceGrouped>
extends IContainerModelGrouped
Provides grouped container model functionality through delegation.
This interface provides default implementations for grouped container model
operations by delegating to an IContainerModelSupport instance.
-
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<NMI>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.default booleanIdentifies if the container allows child instances or not.Methods inherited from interface dev.metaschema.core.model.IContainerModelGrouped
getOwningDefinition
-
Method Details
-
getModelContainer
Get the model container implementation instance.- Returns:
- the model container instance
-
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- Specified by:
hasChildrenin interfaceIContainerModel- Returns:
trueif there are flags or a model, orfalseotherwise
-
getModelInstances
Description copied from interface:IContainerModelGet all model instances within the container.- Specified by:
getModelInstancesin interfaceIContainerModel- Specified by:
getModelInstancesin interfaceIContainerModelGrouped- Returns:
- an ordered collection of model instances
-
getNamedModelInstanceByName
Description copied from interface:IContainerModelGroupedGet the model instance contained within the model with the associated use name.- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModel- Specified by:
getNamedModelInstanceByNamein interfaceIContainerModelGrouped- Parameters:
name- the effective name of the model instance- Returns:
- the matching model instance, or
nullif no match was found - See Also:
-
getNamedModelInstances
Description copied from interface:IContainerModelGroupedGet all named model instances within the container.- Specified by:
getNamedModelInstancesin interfaceIContainerModel- Specified by:
getNamedModelInstancesin interfaceIContainerModelGrouped- Returns:
- the named model instances in this container
-
getFieldInstanceByName
Description copied from interface:IContainerModelGroupedGet the field instance contained within the model with the associated use name.- Specified by:
getFieldInstanceByNamein interfaceIContainerModel- Specified by:
getFieldInstanceByNamein interfaceIContainerModelGrouped- Parameters:
name- the use name of the field instance- Returns:
- the matching field instance, or
nullif no match was found - See Also:
-
getFieldInstances
Description copied from interface:IContainerModelGroupedGet all field instances within the container.- Specified by:
getFieldInstancesin interfaceIContainerModel- Specified by:
getFieldInstancesin interfaceIContainerModelGrouped- Returns:
- the field instances in this container
-
getAssemblyInstanceByName
Description copied from interface:IContainerModelGroupedGet the assembly instance contained within the model with the associated use name.- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModel- Specified by:
getAssemblyInstanceByNamein interfaceIContainerModelGrouped- Parameters:
name- the effective name of the assembly instance- Returns:
- the matching assembly instance, or
nullif no match was found - See Also:
-
getAssemblyInstances
Description copied from interface:IContainerModelGroupedGet all assembly instances within the container.- Specified by:
getAssemblyInstancesin interfaceIContainerModel- Specified by:
getAssemblyInstancesin interfaceIContainerModelGrouped- Returns:
- the assembly instances in this container
-