use of io.atlasmap.validators.NonNullValidator in project atlasmap by atlasmap.
the class JsonValidationService method init.
/**
* Initializes.
*/
public void init() {
NonNullValidator javaFilePathNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "The path element must not be null nor empty");
NonNullValidator inputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Field type should not be null nor empty");
NonNullValidator outputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Field type should not be null nor empty");
NonNullValidator fieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Filed type should not be null nor empty");
validatorMap.put("json.field.type.not.null", fieldTypeNonNullValidator);
validatorMap.put("json.field.path.not.null", javaFilePathNonNullValidator);
validatorMap.put("input.field.type.not.null", inputFieldTypeNonNullValidator);
validatorMap.put("output.field.type.not.null", outputFieldTypeNonNullValidator);
}
use of io.atlasmap.validators.NonNullValidator in project atlasmap by atlasmap.
the class JavaValidationService method init.
/**
* Initializes.
*/
public void init() {
setMappingFieldPairValidator(new JavaMappingFieldPairValidator(this, getConversionService()));
NonNullValidator javaFilePathNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Field path must not be null nor empty");
NonNullValidator inputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "FieldType should not be null nor empty");
NonNullValidator outputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "FieldType should not be null nor empty");
NonNullValidator fieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Filed type should not be null nor empty");
validatorMap.put("java.field.type.not.null", fieldTypeNonNullValidator);
validatorMap.put("java.field.path.not.null", javaFilePathNonNullValidator);
validatorMap.put("input.field.type.not.null", inputFieldTypeNonNullValidator);
validatorMap.put("output.field.type.not.null", outputFieldTypeNonNullValidator);
}
use of io.atlasmap.validators.NonNullValidator in project atlasmap by atlasmap.
the class XmlValidationService method init.
/**
* Initializes.
*/
public void init() {
NonNullValidator javaFileNameNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "The name element must not be null nor empty");
NonNullValidator javaFilePathNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "The path element must not be null nor empty");
NonNullValidator inputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Field type should not be null nor empty");
NonNullValidator outputFieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Field type should not be null nor empty");
NonNullValidator fieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Filed type should not be null nor empty");
validatorMap.put("xml.field.type.not.null", fieldTypeNonNullValidator);
validatorMap.put("xml.field.name.not.null", javaFileNameNonNullValidator);
validatorMap.put("xml.field.path.not.null", javaFilePathNonNullValidator);
validatorMap.put("input.field.type.not.null", inputFieldTypeNonNullValidator);
validatorMap.put("output.field.type.not.null", outputFieldTypeNonNullValidator);
}
use of io.atlasmap.validators.NonNullValidator in project atlasmap by atlasmap.
the class KafkaConnectValidationService method init.
/**
* Initializes.
*/
public void init() {
NonNullValidator pathNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "The path element must not be null nor empty");
NonNullValidator fieldTypeNonNullValidator = new NonNullValidator(ValidationScope.MAPPING, "Filed type should not be null nor empty");
validatorMap.put("kafkaconnect.field.type.not.null", fieldTypeNonNullValidator);
validatorMap.put("kafkaconnect.field.path.not.null", pathNonNullValidator);
validatorMap.put("input.field.type.not.null", fieldTypeNonNullValidator);
validatorMap.put("output.field.type.not.null", fieldTypeNonNullValidator);
}
Aggregations