Class ViewValidator

  • Direct Known Subclasses:
    FederatedViewValidator

    public class ViewValidator
    extends Object
    An ViewValidator validates a view against a Schema ViewElementDefinition. Checks all function input and output types are compatible with the properties and identifiers in the Schema and the transient properties in the View.
    • Constructor Detail

      • ViewValidator

        public ViewValidator()
    • Method Detail

      • validate

        public uk.gov.gchq.koryphe.ValidationResult validate​(View view,
                                                             Schema schema,
                                                             Set<StoreTrait> storeTraits)
        Checks all Predicates and Functions defined are compatible with the identifiers and properties in the Schema and transient properties in the View.
        Parameters:
        view - the View to validate
        schema - the Schema to validate the view against
        storeTraits - the store traits
        Returns:
        true if the element definition is valid, otherwise false and an error is logged