Class IFeatureFlagContainerItem.FlagContainer

java.lang.Object
dev.metaschema.core.metapath.item.node.IFeatureFlagContainerItem.FlagContainer
Direct Known Subclasses:
IFeatureModelContainerItem.ModelContainer
Enclosing interface:
IFeatureFlagContainerItem

public static class IFeatureFlagContainerItem.FlagContainer extends Object
Provides an abstract implementation of a model that contains a collection of flags.
  • Constructor Details

    • FlagContainer

      protected FlagContainer(@NonNull Map<Integer,IFlagNodeItem> flags)
      Initialize the container with the provided collection of flags.
      Parameters:
      flags - a flag mapping of qualified name to corresponding IFlagNodeItem
  • Method Details

    • getFlagByName

      @Nullable public IFlagNodeItem getFlagByName(@NonNull IEnhancedQName name)
      Get a flag in this container using the associated flag qualified name.
      Parameters:
      name - the qualified name of the flag
      Returns:
      the corresponding flag item or null if no flag had the provided name
    • getFlags

      @NonNull public Collection<IFlagNodeItem> getFlags()
      Get the flags in this container.
      Returns:
      the flags