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 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 item
      modelItems - 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 null if no match was found
    • getModelItems

      @NonNull public Collection<List<? extends IModelNodeItem<?,?>>> getModelItems()
      Get all model items grouped by model item name.
      Returns:
      a collection of lists containg model items grouped by names