Package uk.gov.gchq.gaffer.store
Class ElementValidator
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.ElementValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElementValidator.FilterType
-
Constructor Summary
Constructors Constructor Description ElementValidator(View view)
ElementValidator(Schema schema)
ElementValidator(Schema schema, boolean includeIsA)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
getSchema()
View
getView()
boolean
validate(Element element)
Validates the given object.boolean
validateAggregation(Element element)
boolean
validateInput(Element element)
boolean
validateTransform(Element element)
boolean
validateWithSchema(Element element)
uk.gov.gchq.koryphe.ValidationResult
validateWithValidationResult(Element element)
Validates the given object and results a ValidationResult that can contain information as to why validation fails.
-
-
-
Method Detail
-
validate
public boolean validate(Element element)
Description copied from interface:Validator
Validates the given object.
-
validateWithValidationResult
public uk.gov.gchq.koryphe.ValidationResult validateWithValidationResult(Element element)
Description copied from interface:Validator
Validates the given object and results a ValidationResult that can contain information as to why validation fails.
It is less efficient than just calling validate as complex validation strings may be built to detail why objects are invalid.
- Specified by:
validateWithValidationResult
in interfaceValidator<Element>
- Parameters:
element
- an object of type T to validate.- Returns:
- the ValidationResult.
-
validateInput
public boolean validateInput(Element element)
-
validateAggregation
public boolean validateAggregation(Element element)
-
validateTransform
public boolean validateTransform(Element element)
-
validateWithSchema
public boolean validateWithSchema(Element element)
-
getSchema
public Schema getSchema()
-
getView
public View getView()
-
-