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


public class RequestServices
extends java.lang.Object

Request services.


Constructor Summary
RequestServices(fr.obeo.acceleo.gen.template.scripts.SpecificScript script)
          Constructor.
 
Method Summary
 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 that returns the given value.
 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 that returns 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.SpecificScript script)
Constructor.

Parameters:
script - is the script
Method Detail

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.gen.template.eval.ENodeException,
                                                      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 that returns 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.gen.template.eval.ENodeException
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.gen.template.eval.ENodeException,
                                                      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 that returns 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.gen.template.eval.ENodeException
fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.gen.template.TemplateSyntaxException