org.apache.ode.bpel.compiler.api

## Interface ExpressionValidator

-     public interface ExpressionValidator

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `bpelCompilationCompleted(Process source)` Notifies process compilation completed.
    `void` | `bpelImportsLoaded(Process source, CompilerContext compilerContext)` Notifies process compilation began
    `java.lang.Object` | `validate(Expression source, OVarType rootNodeType, java.lang.Object requestedResultType)` Validate given expression.

- - ### Method Detail

    - #### bpelImportsLoaded

          void bpelImportsLoaded(Process source,
                               CompilerContext compilerContext)
                                 throws CompilationException

      Notifies process compilation began
      Parameters:
        `compilerContext` -
      Throws:
        `CompilationException`

    - #### bpelCompilationCompleted

          void bpelCompilationCompleted(Process source)
                                        throws CompilationException

      Notifies process compilation completed. Mainly for cleaning up resources.
      Parameters:
        `compilerContext` -
      Throws:
        `CompilationException`

    - #### validate

          java.lang.Object validate(Expression source,
                                  OVarType rootNodeType,
                                  java.lang.Object requestedResultType)
                                    throws CompilationException

      Validate given expression.
      Parameters:
        `source` - It's a Query or Expression
        `requestedResultType` - It's OVarType or underlying Expression Validator's type. It may be null if there are no constrains for result type
      Returns:
        Evaluated expression's type
      Throws:
        `CompilationException`