Class 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.
    • Constructor Detail

      • SupportedPropertiesValidator

        public SupportedPropertiesValidator()
    • 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
      • getSupportedProperties

        public Set<String> getSupportedProperties()
        Get a set of adapter properties that the dialect supports.
        Returns:
        set of supported properties
      • createUnsupportedElementMessage

        public static String createUnsupportedElementMessage​(String property)
        Create an error message for an unsupported property.
        Parameters:
        property - name of the property to report as being unsupported.
        Returns:
        error message as string