org.eclipse.viatra.addon.validation.core

## Class ValidationEngineBuilder

- java.lang.Object
- - org.eclipse.viatra.addon.validation.core.ValidationEngineBuilder

-     public class ValidationEngineBuilder
      extends java.lang.Object

  Builder for `ValidationEngine` objects.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `ValidationEngineBuilder()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `IValidationEngine` | `build()` Prepares a new `ValidationEngine` using the configured parameters.
    `static ValidationEngineBuilder` | `create()`
    `ValidationEngineBuilder` | `setEngine(ViatraQueryEngine engine)`
    `ValidationEngineBuilder` | `setLogger(org.apache.log4j.Logger logger)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ValidationEngineBuilder

          protected ValidationEngineBuilder()

  - ### Method Detail

    - #### create

          public static ValidationEngineBuilder create()

      Returns:
        a new builder to setup validation engines

    - #### build

          public IValidationEngine build()

      Prepares a new `ValidationEngine` using the configured parameters.
      Returns:
        an uninitialized validation engine
      Throws:
        `java.lang.IllegalStateException` - if the `ViatraQueryEngine` for the new validation engine cannot be determined

    - #### setEngine

          public ValidationEngineBuilder setEngine(ViatraQueryEngine engine)

    - #### setLogger

          public ValidationEngineBuilder setLogger(org.apache.log4j.Logger logger)