Module dev.metaschema.core
Class IFeatureModelContainerItem.ModelContainer
java.lang.Object
dev.metaschema.core.metapath.item.node.IFeatureFlagContainerItem.FlagContainer
dev.metaschema.core.metapath.item.node.IFeatureModelContainerItem.ModelContainer
- Enclosing interface:
- IFeatureModelContainerItem
public static class IFeatureModelContainerItem.ModelContainer
extends IFeatureFlagContainerItem.FlagContainer
Provides an abstract implementation of a lazy loaded model.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModelContainer(Map<Integer, IFlagNodeItem> flags, Map<Integer, List<? extends IModelNodeItem<?, ?>>> modelItems) Creates a new collection of flags and model items. -
Method Summary
Modifier and TypeMethodDescriptionCollection<List<? extends IModelNodeItem<?,?>>> Get all model items grouped by model item name.List<? extends IModelNodeItem<?,?>> Get the matching list of model items having the provided name.Methods inherited from class dev.metaschema.core.metapath.item.node.IFeatureFlagContainerItem.FlagContainer
getFlagByName, getFlags
-
Constructor Details
-
ModelContainer
protected ModelContainer(@NonNull Map<Integer, IFlagNodeItem> flags, @NonNull Map<Integer, List<? extends IModelNodeItem<?, ?>>> modelItems) Creates a new collection of flags and model items.- Parameters:
flags- a mapping of flag name to a flag itemmodelItems- a mapping of model item name to a list of model items
-
-
Method Details
-
getModelItemsByName
@NonNull public List<? extends IModelNodeItem<?,?>> getModelItemsByName(@NonNull IEnhancedQName name) Get the matching list of model items having the provided name.- Parameters:
name- the name of the model items to retrieve- Returns:
- a lisy of matching model items or
nullif no match was found
-
getModelItems
Get all model items grouped by model item name.- Returns:
- a collection of lists containg model items grouped by names
-