Interface IExpressionObjectService


public interface IExpressionObjectService
Returns objects implementing IExpressionObject which can be used as items in the workbench for evaluating expressions in tables. Usually the IExpressionObject is added to the object used for the table data as member data.
  • Method Details

    • validate

      String validate(IVariableManager manager, String variableName) throws Exception
      Validate the expression name and return a cleaned up one if you can.
      Parameters:
      manager -
      variableName -
      Returns:
      Throws:
      Exception - if name not ok with message about why it is not ok
    • createExpressionObject

      IExpressionObject createExpressionObject(IVariableManager manager, String expressionName, String expression)
      Create an IExpressionObject
      Parameters:
      manager -
      expressionName - , may be null.
      expression - , may be null.
      Returns:
    • getSafeName

      String getSafeName(String name)
      Creates a safe variable name from the suggested name, may return the same name back again, if it is legal or may return empty string if all characters are illegal for variable names. Replaces space with _
      Parameters:
      name -
      Returns:
    • getActiveExpressions

      List<IExpressionObject> getActiveExpressions(String sourcePath) throws Exception
      Returns the active expressions for a given file path.
      Parameters:
      sourcePath -
      Returns:
      Throws:
      Exception