Module dev.metaschema.core
Class AbstractConfigurationFeature<V>
java.lang.Object
dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
- Type Parameters:
V- the feature value Java type
- All Implemented Interfaces:
IConfigurationFeature<V>
- Direct Known Subclasses:
DeserializationFeature,MetapathEvaluationFeature,SchemaGenerationFeature,SerializationFeature,ValidationFeature
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
ConstructorsModifierConstructorDescriptionprotectedAbstractConfigurationFeature(String name, Class<V> valueClass, V defaultValue) Construct a new feature with a default value. -
Method Summary
-
Constructor Details
-
AbstractConfigurationFeature
protected AbstractConfigurationFeature(@NonNull String name, @NonNull Class<V> valueClass, @NonNull V defaultValue) Construct a new feature with a default value.- Parameters:
name- the name of the featurevalueClass- the class of the feature's valuedefaultValue- the value's default
-
-
Method Details
-
getName
Description copied from interface:IConfigurationFeatureGet the name of the configuration feature.- Specified by:
getNamein interfaceIConfigurationFeature<V>- Returns:
- the name
-
getDefault
Description copied from interface:IConfigurationFeatureGet the default value of the configuration feature.- Specified by:
getDefaultin interfaceIConfigurationFeature<V>- Returns:
- the default value
-
getValueClass
Description copied from interface:IConfigurationFeatureGet the class of the feature's value.- Specified by:
getValueClassin interfaceIConfigurationFeature<V>- Returns:
- the value's class
-
toString
-