Interface FeatureSetValidation
-
- All Superinterfaces:
FeatureSet
,ValidationCapability
- All Known Subinterfaces:
Version
- All Known Implementing Classes:
DatabaseType
,FeaturesAllowed
,H2Version
,MariaDbVersion
,MySqlVersion
,OracleVersion
,PostgresqlVersion
,SqlServerVersion
,SQLVersion
public interface FeatureSetValidation extends ValidationCapability, FeatureSet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Set<Feature>
getFeatures()
ValidationException
getMessage(Feature feature)
default java.lang.String
getName()
default void
validate(ValidationContext context, java.util.function.Consumer<ValidationException> errorConsumer)
Validate and addValidationException
's to given consumer.-
Methods inherited from interface net.sf.jsqlparser.parser.feature.FeatureSet
contains, copy, getFeaturesClone, getNotContained, retainAll
-
Methods inherited from interface net.sf.jsqlparser.util.validation.ValidationCapability
toError, toError
-
-
-
-
Field Detail
-
DEFAULT_NAME
static final java.lang.String DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
default void validate(ValidationContext context, java.util.function.Consumer<ValidationException> errorConsumer)
Description copied from interface:ValidationCapability
Validate and addValidationException
's to given consumer.- Specified by:
validate
in interfaceValidationCapability
-
getFeatures
java.util.Set<Feature> getFeatures()
- Specified by:
getFeatures
in interfaceFeatureSet
- Returns:
- all supported
Feature
's
-
getMessage
ValidationException getMessage(Feature feature)
- Returns:
- the default message if not contained in the feature set
-
getName
default java.lang.String getName()
- Specified by:
getName
in interfaceValidationCapability
- Returns:
- a name of this
ValidationCapability
-
-