Class SchemaNamesValidator
- java.lang.Object
-
- org.spf4j.maven.plugin.avro.avscp.validation.impl.SchemaNamesValidator
-
public final class SchemaNamesValidator extends Object implements Validator<Schema>
Validates schema names to be compliant with: no underscores in names (camel case should bd used instead) names must have a minimum size.this validator ("namesValidator") has the following configurations:
- minNameSize - minimum number of characters that a name must have
- camelCase - validate the use of camel case, will complain if names contain '_'
- validTypeNames - a comma separated list of allowed type names, defaults to ""
- invalidTypeNames - a comma separated list of type names that are not allowed, default to ""
- validFieldNames - a comma separated list of allowed field names, defaults to ""
- invalidFieldNames - a comma separated list of field names that are not allowed, default to ""
- Author:
- Zoltan Farkas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spf4j.maven.plugin.avro.avscp.validation.Validator
Validator.Result
-
-
Constructor Summary
Constructors Constructor Description SchemaNamesValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Class<Schema>getValidationInput()Validator.Resultvalidate(Schema schema, ValidatorMojo mojo)
-
-
-
Method Detail
-
validate
@Nonnull public Validator.Result validate(Schema schema, ValidatorMojo mojo) throws org.apache.maven.plugin.MojoExecutionException, IOException
- Specified by:
validatein interfaceValidator<Schema>- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOException
-
getValidationInput
public Class<Schema> getValidationInput()
- Specified by:
getValidationInputin interfaceValidator<Schema>
-
-