Module dev.metaschema.core
Interface IConfiguration<T extends IConfigurationFeature<?>>
- Type Parameters:
T- the type of the feature set
- All Known Subinterfaces:
IBindingModuleLoader,IBoundLoader,IDeserializer<CLASS>,IMutableConfiguration<T>,ISerializer<CLASS>
- All Known Implementing Classes:
AbstractDeserializer,AbstractSerializer,BindingModuleLoader,DefaultBoundLoader,DefaultConfiguration,DefaultConstraintValidator,DefaultJsonDeserializer,DefaultJsonSerializer,DefaultXmlDeserializer,DefaultXmlSerializer,DefaultYamlDeserializer,DefaultYamlSerializer
public interface IConfiguration<T extends IConfigurationFeature<?>>
The base interface for getting the configuration of processors and parsers in
this library. This provides an immutable view of the current configuration.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> VGet the configuration value of the providedfeature.Get the mapping of each feature mapped to its value.booleanisFeatureEnabled(T feature) Determines if a specific feature is enabled.
-
Method Details
-
isFeatureEnabled
Determines if a specific feature is enabled.- Parameters:
feature- the feature to check for- Returns:
trueif the feature is enabled, orfalseotherwise- Throws:
UnsupportedOperationException- if the feature is not a boolean valued feature- See Also:
-
get
Get the configuration value of the providedfeature.- Type Parameters:
V- the value type- Parameters:
feature- the requested feature- Returns:
- the value of the feature
-
getFeatureValues
Get the mapping of each feature mapped to its value.- Returns:
- the mapping
-