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 classElementValidator.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 SchemagetSchema()ViewgetView()booleanvalidate(Element element)Validates the given object.booleanvalidateAggregation(Element element)booleanvalidateInput(Element element)booleanvalidateTransform(Element element)booleanvalidateWithSchema(Element element)uk.gov.gchq.koryphe.ValidationResultvalidateWithValidationResult(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:ValidatorValidates the given object.
-
validateWithValidationResult
public uk.gov.gchq.koryphe.ValidationResult validateWithValidationResult(Element element)
Description copied from interface:ValidatorValidates 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:
validateWithValidationResultin 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()
-
-