Package modTransf.engine

Examples of modTransf.engine.TransformationException


     Writer writer;
     if( writerName != null )
     {
       writer = (Writer)context.getAttribute(writerName);
       if( writer == null )
         throw new TransformationException("Can't find a writer under name '" + writerName + "'.");
     }
     else if(writerDesc !=null )
     {
       writer = writerDesc.create(context);
     }
     else
     {
       writer = getCurrentWriter(context);
       if( writer == null )
         throw new TransformationException("Can't find a writer. (no current and no writerName)");
     }

    return writer;
   }
View Full Code Here


    {
      return getReaderWriterFactory(context).createReader(template);
    }
    catch(IOException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

      {
        Velocity.evaluate(velContext, writer, "template", inlineTemplate);
      } // end if
      else
      {
        throw new TransformationException("Can't generate code: no template or inline template specified.");
      }
    }
    catch(TransformationException ex)
    {
      throw ex;
    }
    catch(Exception ex)
    {
      throw new TransformationException(ex);
    }
    finally
    {
      // pop the oldWriter
      if( oldWriter != null  && oldWriter != writer )
View Full Code Here

      {
        writer.close();
      }
      catch(IOException ex)
      {
        throw new TransformationException(ex);
      }
    }
  }
View Full Code Here

       Writer writer = getReaderWriterFactory(request).createWriter(realPath, realFileName, realExt);
       return writer;
     }
     catch(IOException ex)
     {
       throw new TransformationException(ex);
     }
   }
View Full Code Here

     {
       return script.eval(context).toString();
     }
     catch(ScriptException ex)
     {
       throw new TransformationException(ex);
     }
   }
View Full Code Here

      {
        engineStart(context);
      }
      catch(EngineException ex)
      {
        throw new TransformationException(ex);
      }
    }

    boolean isCalled = false;
View Full Code Here

   */
  protected void storeOutArg( Arguments args, RuleContext context )
    throws TransformationException
  {
    if( args.size() != parameters.size() )
      throw new TransformationException("Returned args count should match parameter descriptor count. Expected "
                                        + parameters.size() + ", found " + args.size() + ".");

      // Iterate on call parameters expressions
    Iterator paramIter = parameters.iterator();
      // Iterate on rule domains to find the direction
View Full Code Here

      return request.getTransformation().getModels().getProperty(request.getAttribute("this",
        request.LOCAL_SCOPE), propertyName);
    }
    catch(ModelException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

    {
      request.getTransformation().getModels().setProperty(request.getAttribute("this", request.LOCAL_SCOPE), propertyName, value);
    }
    catch(ModelException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

TOP

Related Classes of modTransf.engine.TransformationException

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.