Module dev.metaschema.core
Package dev.metaschema.core.model
Interface IContainerModelSupport<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance>
- Type Parameters:
MI- the model instance Java typeNMI- the named model instance Java typeFI- the field instance Java typeAI- the assembly instance Java type
- All Known Subinterfaces:
IContainerModelAssemblySupport<MI,NMI, FI, AI, CI, CGI>
- All Known Implementing Classes:
AbstractContainerModelSupport
public interface IContainerModelSupport<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance>
Common interface for model container support classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <MI extends IModelInstance,NMI extends INamedModelInstance, FI extends IFieldInstance, AI extends IAssemblyInstance>
IContainerModelSupport<MI,NMI, FI, AI> empty()Get an empty, immutable container.Get a mapping of all assembly instances, mapped from their effective name to the instance.Get a mapping of all field instances, mapped from their effective name to the instance.Get a listing of all model instances.Get a mapping of all named model instances, mapped from their effective name to the instance.
-
Method Details
-
empty
@NonNull static <MI extends IModelInstance,NMI extends INamedModelInstance, IContainerModelSupport<MI,FI extends IFieldInstance, AI extends IAssemblyInstance> NMI, empty()FI, AI> Get an empty, immutable container.- Type Parameters:
MI- the model instance Java typeNMI- the named model instance Java typeFI- the field instance Java typeAI- the assembly instance Java type- Returns:
- the empty container
-
getModelInstances
Get a listing of all model instances.- Returns:
- the listing
-
getNamedModelInstanceMap
Get a mapping of all named model instances, mapped from their effective name to the instance.- Returns:
- the mapping
-
getFieldInstanceMap
Get a mapping of all field instances, mapped from their effective name to the instance.- Returns:
- the mapping
-
getAssemblyInstanceMap
Get a mapping of all assembly instances, mapped from their effective name to the instance.- Returns:
- the mapping
-