Class SupportedPropertiesValidator
- java.lang.Object
-
- com.exasol.adapter.dialects.validators.SupportedPropertiesValidator
-
- All Implemented Interfaces:
PropertyValidator
public class SupportedPropertiesValidator extends Object implements PropertyValidator
This class validates the list of supported properties and throws a validation error for unsupported properties.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.exasol.adapter.properties.PropertyValidator
PropertyValidator.PropertyValueValidator
-
-
Constructor Summary
Constructors Constructor Description SupportedPropertiesValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedPropertiesValidatoradd(Collection<String> additionalProperties)Add additional properties to the list of supported properties.static StringcreateUnsupportedElementMessage(String property)Create an error message for an unsupported property.Set<String>getSupportedProperties()Get a set of adapter properties that the dialect supports.voidvalidate(com.exasol.adapter.AdapterProperties properties)Validate the property
-
-
-
Method Detail
-
add
public SupportedPropertiesValidator add(Collection<String> additionalProperties)
Add additional properties to the list of supported properties.- Parameters:
additionalProperties- properties to add- Returns:
- this for fluent programming
-
validate
public void validate(com.exasol.adapter.AdapterProperties properties) throws PropertyValidationExceptionDescription copied from interface:PropertyValidatorValidate the property- Specified by:
validatein interfacePropertyValidator- Parameters:
properties- adapter properties to validate- Throws:
PropertyValidationException- in case validation fails
-
getSupportedProperties
public Set<String> getSupportedProperties()
Get a set of adapter properties that the dialect supports.- Returns:
- set of supported properties
-
-