Package modTransf.engine

Examples of modTransf.engine.EngineException


       if(fileName!=null && fileName.length()!=0)
       {
         this.fileName = CompiledScriptFactory.compileScript(fileName, exprLanguage);
       }
        else
         throw new EngineException("Property fileName is mandatory.");

       if(fileExt!=null && fileExt.length()!=0)
       {
         this.fileExt = CompiledScriptFactory.compileScript(fileExt, exprLanguage);
       }
     }
     catch(ScriptException ex)
     {
       throw new EngineException(ex);
     }

   }
View Full Code Here


   */
  protected void chekProperty(String property, String tagName, String name)
    throws EngineException
  {
    if( property == null )
      throw new EngineException( tagName + " Attribute '" + name + "' is mandatory." );
  }
View Full Code Here

    else if( "global".equalsIgnoreCase(scope) )
      return RuleContext.GLOBAL_SCOPE;
    else if( "request".equalsIgnoreCase(scope) )
      return RuleContext.REQUEST_SCOPE;
    else
      throw new EngineException( "Scope '" + scope +"' not defined." );
  }
View Full Code Here

   public void engineStart(RuleContext context)
    throws EngineException
  {
     rule = context.getTransformation().getRuleSet().getRule(ruleName);
     if( rule == null )
       throw new EngineException("No rule found under name '" + ruleName + "'." );

     // Check number of parameters
     checkParameterCount();

     // call life cycle on parameters if needed
View Full Code Here

    if( descr == null )
      return;

    int requiredParameterCount = descr.size();
    if( requiredParameterCount != parameters.size() )
      throw new EngineException( "RuleCall - Rule '" + ruleName + "' requires "
                                 + requiredParameterCount +" parameters. "
                                 + parameters.size() + " are provided." );
  }
View Full Code Here

          {
            setInitValueAction(new ScriptAction(initValueExpr, exprLanguage));
          }
          catch(ScriptException ex)
          {
            throw new EngineException(ex);
          }
         }

       super.engineStart(request);
     }
View Full Code Here

    */
   public void engineStart(RuleContext context)
    throws EngineException
  {
     if( ruleName == null )
       throw new EngineException( "Attribute 'rule' is mandatory in tag <call> " );

     super.engineStart(context);
   }
View Full Code Here

      {
      return (Transformation)digester.parse(input);
      }
     catch(Exception ex)
      {
      throw new EngineException( "Error while parsing file '" + filename + "'." , ex );
      }
  }
View Full Code Here

      {
      return (Transformation)digester.parse(input);
      }
     catch(Exception ex)
      {
      throw new EngineException( "Error while parsing input." , ex );
      }
  }
View Full Code Here

   */
  public void engineStart(RuleContext context)
    throws EngineException
  {
    if( rules.size() == 0 )
      throw new EngineException("CoreSelectRule - At least one rule must be registered.");

    cloneDescriptors( context );
  }
View Full Code Here

TOP

Related Classes of modTransf.engine.EngineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.