Interface ModelValidator

    • Method Detail

      • validate

        void validate​(byte[] modelContent,
                      ValidationContext validationContext)
        Validate the given model.
        Parameters:
        modelContent - content of the model to validate
        validationContext - the validation context
      • validate

        default void validate​(Model model,
                              byte[] modelContent,
                              ValidationContext validationContext,
                              boolean validateUsage)
        Validate the given model and its usage
        Parameters:
        model - the model to validate
        modelContent - content of the model to validate
        validationContext - the validation context
        validateUsage - validate the usage of a model
      • getHandledModelType

        ModelType getHandledModelType()
        Get handled model type by this validator.
        Returns:
        handled model type
      • getHandledContentType

        String getHandledContentType()
        Get handled content type by this validator.
        Returns:
        handled content type