Module dev.metaschema.core
Class IFeatureFlagContainerItem.FlagContainer
java.lang.Object
dev.metaschema.core.metapath.item.node.IFeatureFlagContainerItem.FlagContainer
- Direct Known Subclasses:
IFeatureModelContainerItem.ModelContainer
- Enclosing interface:
- IFeatureFlagContainerItem
Provides an abstract implementation of a model that contains a collection of
flags.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFlagContainer(Map<Integer, IFlagNodeItem> flags) Initialize the container with the provided collection of flags. -
Method Summary
Modifier and TypeMethodDescriptiongetFlagByName(IEnhancedQName name) Get a flag in this container using the associated flag qualified name.getFlags()Get the flags in this container.
-
Constructor Details
-
FlagContainer
Initialize the container with the provided collection of flags.- Parameters:
flags- a flag mapping of qualified name to correspondingIFlagNodeItem
-
-
Method Details
-
getFlagByName
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
nullif no flag had the provided name
-
getFlags
Get the flags in this container.- Returns:
- the flags
-