Module dev.metaschema.core
Package dev.metaschema.core.model
Interface IContainerFlagSupport<FI extends IFlagInstance>
- Type Parameters:
FI- the Java type of the managed flag instance data
public interface IContainerFlagSupport<FI extends IFlagInstance>
Provides support for managing the flag contents of a
IModelDefinition.
This interface provides the underlying data used by
IFeatureContainerFlag.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IFlagInstance>
IFlagContainerBuilder<T>builder()Create a new flag container without a JSON key.static <T extends IFlagInstance>
IFlagContainerBuilder<T>Create a new flag container using the provided flag qualified name as the JSON key.static <T extends IFlagInstance>
IContainerFlagSupport<T>empty()Provides an empty instance.Get a mapping of flag effective name to flag instance.Get the JSON key flag instance.
-
Method Details
-
empty
Provides an empty instance.- Type Parameters:
T- the Java type of the flag instances- Returns:
- an empty instance
-
builder
Create a new flag container without a JSON key.- Type Parameters:
T- the Java type of the flag instances- Returns:
- the flag container
-
builder
@NonNull static <T extends IFlagInstance> IFlagContainerBuilder<T> builder(@NonNull Integer jsonKey) Create a new flag container using the provided flag qualified name as the JSON key.- Type Parameters:
T- the Java type of the flag instances- Parameters:
jsonKey- the qualified name of the JSON key- Returns:
- the flag container
-
getFlagInstanceMap
Get a mapping of flag effective name to flag instance.- Returns:
- the mapping of flag effective name to flag instance
-
getJsonKeyFlagInstance
Get the JSON key flag instance.- Returns:
- the flag instance or
nullif no JSON key is configured
-