fr.obeo.acceleo.gen.template.scripts.imports.services
Class RequestServices

java.lang.Object
  extended by fr.obeo.acceleo.gen.template.scripts.imports.services.RequestServices

public class RequestServices
extends java.lang.Object

Request services.

Author:
www.obeo.fr

Constructor Summary
RequestServices(fr.obeo.acceleo.gen.template.scripts.IScript script)
          Constructor.
 
Method Summary
 fr.obeo.acceleo.gen.template.eval.ENode delete(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String call)
          Evaluates the given expression on all the elements of the current node and delete the elements validating the condition.
 fr.obeo.acceleo.gen.template.eval.ENode delete(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String call, java.lang.String value)
          Evaluates the given expression on all the elements of the current node and delete the elements validating the given value.
 fr.obeo.acceleo.gen.template.eval.ENode evaluate(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String call)
          Evaluates the given text as an acceleo expression.
 fr.obeo.acceleo.gen.template.eval.ENode select(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String call)
          Evaluates the given expression on all the elements of the current node and keep the elements validating the condition.
 fr.obeo.acceleo.gen.template.eval.ENode select(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String call, java.lang.String value)
          Evaluates the given expression on all the elements of the current node and keep the elements validating the given value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestServices

public RequestServices(fr.obeo.acceleo.gen.template.scripts.IScript script)
Constructor.

Parameters:
script - is the script
Method Detail

select

public fr.obeo.acceleo.gen.template.eval.ENode select(fr.obeo.acceleo.gen.template.eval.ENode current,
                                                      java.lang.String call)
                                               throws fr.obeo.acceleo.ecore.factories.FactoryException,
                                                      fr.obeo.acceleo.gen.template.eval.ENodeCastException,
                                                      fr.obeo.acceleo.gen.template.TemplateSyntaxException
Evaluates the given expression on all the elements of the current node and keep the elements validating the condition.

Parameters:
current - is the current node of generation
call - is the condition
Returns:
valid elements
Throws:
fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.gen.template.TemplateSyntaxException

select

public fr.obeo.acceleo.gen.template.eval.ENode select(fr.obeo.acceleo.gen.template.eval.ENode current,
                                                      java.lang.String call,
                                                      java.lang.String value)
                                               throws fr.obeo.acceleo.ecore.factories.FactoryException,
                                                      fr.obeo.acceleo.gen.template.eval.ENodeCastException,
                                                      fr.obeo.acceleo.gen.template.TemplateSyntaxException
Evaluates the given expression on all the elements of the current node and keep the elements validating the given value.

Parameters:
current - is the current node of generation
call - is the expression to apply
value - is the value of the elements to keep
Returns:
valid elements
Throws:
fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.gen.template.TemplateSyntaxException

delete

public fr.obeo.acceleo.gen.template.eval.ENode delete(fr.obeo.acceleo.gen.template.eval.ENode current,
                                                      java.lang.String call)
                                               throws fr.obeo.acceleo.ecore.factories.FactoryException,
                                                      fr.obeo.acceleo.gen.template.eval.ENodeCastException,
                                                      fr.obeo.acceleo.gen.template.TemplateSyntaxException
Evaluates the given expression on all the elements of the current node and delete the elements validating the condition.

Parameters:
current - is the current node of generation
call - is the expression to apply
Returns:
valid elements
Throws:
fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.gen.template.TemplateSyntaxException

delete

public fr.obeo.acceleo.gen.template.eval.ENode delete(fr.obeo.acceleo.gen.template.eval.ENode current,
                                                      java.lang.String call,
                                                      java.lang.String value)
                                               throws fr.obeo.acceleo.ecore.factories.FactoryException,
                                                      fr.obeo.acceleo.gen.template.eval.ENodeCastException,
                                                      fr.obeo.acceleo.gen.template.TemplateSyntaxException
Evaluates the given expression on all the elements of the current node and delete the elements validating the given value.

Parameters:
current - is the current node of generation
call - is the expression to apply
value - is the value of the elements to delete
Returns:
valid elements
Throws:
fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.gen.template.TemplateSyntaxException

evaluate

public fr.obeo.acceleo.gen.template.eval.ENode evaluate(fr.obeo.acceleo.gen.template.eval.ENode current,
                                                        java.lang.String call)
                                                 throws fr.obeo.acceleo.gen.template.TemplateSyntaxException,
                                                        fr.obeo.acceleo.ecore.factories.FactoryException
Evaluates the given text as an acceleo expression.

Parameters:
current - is the current node of generation
call - is the expression to evaluate
Returns:
evaluation
Throws:
fr.obeo.acceleo.gen.template.TemplateSyntaxException
fr.obeo.acceleo.ecore.factories.FactoryException