Class AbstractConfigurationFeature<V>
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.configuration.AbstractConfigurationFeature<V>
-
- Type Parameters:
V
- the feature value type
- All Implemented Interfaces:
IConfigurationFeature<V>
- Direct Known Subclasses:
MetapathEvaluationFeature
public abstract class AbstractConfigurationFeature<V> extends Object implements IConfigurationFeature<V>
Provides a complete, abstract implementation of a generalized feature. Feature implementations can extend this class the implement configuration sets for a given purpose.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractConfigurationFeature(Class<V> valueClass, V defaultValue)
Construct a new feature with a default value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getDefault()
Get the default value of the configuration feature.Class<V>
getValueClass()
Get the class of the feature's value.
-
-
-
Constructor Detail
-
AbstractConfigurationFeature
protected AbstractConfigurationFeature(@NonNull Class<V> valueClass, @NonNull V defaultValue)
Construct a new feature with a default value.- Parameters:
valueClass
- the class of the feature's valuedefaultValue
- the value's default
-
-
Method Detail
-
getDefault
public V getDefault()
Description copied from interface:IConfigurationFeature
Get the default value of the configuration feature.- Specified by:
getDefault
in interfaceIConfigurationFeature<V>
- Returns:
- the default value
-
getValueClass
public Class<V> getValueClass()
Description copied from interface:IConfigurationFeature
Get the class of the feature's value.- Specified by:
getValueClass
in interfaceIConfigurationFeature<V>
- Returns:
- the value's class
-
-