Interface IFeatureModelContainer<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance,CI extends IChoiceInstance>
-
- All Superinterfaces:
IContainer
,IModelContainer
public interface IFeatureModelContainer<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance,CI extends IChoiceInstance> extends IModelContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AI
getAssemblyInstanceByName(String name)
Get the assembly instance contained within the model with the associated use name.default Collection<AI>
getAssemblyInstances()
Get all assembly instances within the container.default List<CI>
getChoiceInstances()
Get all choice instances within the container.default FI
getFieldInstanceByName(String name)
Get the field instance contained within the model with the associated use name.default Collection<FI>
getFieldInstances()
Get all field instances within the container.IModelContainerSupport<MI,NMI,FI,AI,CI>
getModelContainer()
Lazy initialize the model instances associated with this definition.default NMI
getModelInstanceByName(String name)
Get the model instance contained within the model with the associated use name.default Collection<MI>
getModelInstances()
Get all model instances within the container.default Collection<NMI>
getNamedModelInstances()
Get all named model instances within the container.-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelContainer
getOwningDefinition
-
-
-
-
Method Detail
-
getModelContainer
@NonNull IModelContainerSupport<MI,NMI,FI,AI,CI> getModelContainer()
Lazy initialize the model instances associated with this definition.- Returns:
- the flag container
-
getModelInstanceByName
default NMI getModelInstanceByName(String name)
Description copied from interface:IModelContainer
Get the model instance contained within the model with the associated use name.- Specified by:
getModelInstanceByName
in interfaceIModelContainer
- Parameters:
name
- the use name of the model instance- Returns:
- the matching model instance, or
null
if no match was found - See Also:
INamedModelElement.getUseName()
-
getNamedModelInstances
default Collection<NMI> getNamedModelInstances()
Description copied from interface:IModelContainer
Get all named model instances within the container.- Specified by:
getNamedModelInstances
in interfaceIModelContainer
- Returns:
- an ordered mapping of use name to model instance
-
getFieldInstanceByName
default FI getFieldInstanceByName(String name)
Description copied from interface:IModelContainer
Get the field instance contained within the model with the associated use name.- Specified by:
getFieldInstanceByName
in interfaceIModelContainer
- Parameters:
name
- the use name of the field instance- Returns:
- the matching field instance, or
null
if no match was found - See Also:
INamedModelElement.getUseName()
-
getFieldInstances
default Collection<FI> getFieldInstances()
Description copied from interface:IModelContainer
Get all field instances within the container.- Specified by:
getFieldInstances
in interfaceIModelContainer
- Returns:
- a mapping of use name to field instance
-
getAssemblyInstanceByName
default AI getAssemblyInstanceByName(String name)
Description copied from interface:IModelContainer
Get the assembly instance contained within the model with the associated use name.- Specified by:
getAssemblyInstanceByName
in interfaceIModelContainer
- Parameters:
name
- the use name of the assembly instance- Returns:
- the matching assembly instance, or
null
if no match was found - See Also:
INamedModelElement.getUseName()
-
getAssemblyInstances
default Collection<AI> getAssemblyInstances()
Description copied from interface:IModelContainer
Get all assembly instances within the container.- Specified by:
getAssemblyInstances
in interfaceIModelContainer
- Returns:
- a mapping of use name to assembly instance
-
getChoiceInstances
default List<CI> getChoiceInstances()
Description copied from interface:IModelContainer
Get all choice instances within the container.- Specified by:
getChoiceInstances
in interfaceIModelContainer
- Returns:
- a list of choice instances
-
getModelInstances
default Collection<MI> getModelInstances()
Description copied from interface:IModelContainer
Get all model instances within the container.- Specified by:
getModelInstances
in interfaceIModelContainer
- Returns:
- an ordered collection of model instances
-
-