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

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

public class ContextServices
extends java.lang.Object

System services for ENode elements.

Author:
www.obeo.fr

Constructor Summary
ContextServices()
          Constructor.
 
Method Summary
 fr.obeo.acceleo.gen.template.eval.ENode get(fr.obeo.acceleo.gen.template.eval.ENode node, java.lang.String key)
          Gets the node for the given key in the context.
 fr.obeo.acceleo.gen.template.eval.ENode nGet(fr.obeo.acceleo.gen.template.eval.ENode node, fr.obeo.acceleo.gen.template.eval.ENode key)
          Deprecated.  
 fr.obeo.acceleo.gen.template.eval.ENode nPeek(fr.obeo.acceleo.gen.template.eval.ENode node)
          Deprecated.  
 void nPop(fr.obeo.acceleo.gen.template.eval.ENode node)
          Deprecated.  
 void nPush(fr.obeo.acceleo.gen.template.eval.ENode node)
          Deprecated.  
 void nPut(fr.obeo.acceleo.gen.template.eval.ENode node, java.lang.String key)
          Deprecated.  
 fr.obeo.acceleo.gen.template.eval.ENode peek(fr.obeo.acceleo.gen.template.eval.ENode node)
          Return the last node pushed into the context, and returns an empty string.
 void pop(fr.obeo.acceleo.gen.template.eval.ENode node)
          Pops the context, and returns an empty string.
 void push(fr.obeo.acceleo.gen.template.eval.ENode node)
          Pushes the current node into the context, and returns an empty string.
 void put(fr.obeo.acceleo.gen.template.eval.ENode node, java.lang.String key)
          Puts the current node in the context for the given key, and return an empty string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextServices

public ContextServices()
Constructor.

Method Detail

nPut

public void nPut(fr.obeo.acceleo.gen.template.eval.ENode node,
                 java.lang.String key)
Deprecated. 

Puts the current node in the context for the given key, and return an empty string.

Parameters:
node - is the current node
key - is the key in the context

put

public void put(fr.obeo.acceleo.gen.template.eval.ENode node,
                java.lang.String key)
Puts the current node in the context for the given key, and return an empty string.

Parameters:
node - is the current node
key - is the key in the context

nGet

public fr.obeo.acceleo.gen.template.eval.ENode nGet(fr.obeo.acceleo.gen.template.eval.ENode node,
                                                    fr.obeo.acceleo.gen.template.eval.ENode key)
                                             throws fr.obeo.acceleo.gen.template.eval.ENodeCastException,
                                                    fr.obeo.acceleo.ecore.factories.FactoryException
Deprecated. 

Gets the node for the given key in the context.

Parameters:
node - is the current node
key - is the key in the context
Returns:
the node of the context
Throws:
fr.obeo.acceleo.gen.template.eval.ENodeCastException
fr.obeo.acceleo.ecore.factories.FactoryException

get

public fr.obeo.acceleo.gen.template.eval.ENode get(fr.obeo.acceleo.gen.template.eval.ENode node,
                                                   java.lang.String key)
Gets the node for the given key in the context.

Parameters:
node - is the current node
key - is the key in the context
Returns:
the node of the context

nPush

public void nPush(fr.obeo.acceleo.gen.template.eval.ENode node)
Deprecated. 

Pushes the current node into the context, and returns an empty string.

Parameters:
node - is the current node

push

public void push(fr.obeo.acceleo.gen.template.eval.ENode node)
Pushes the current node into the context, and returns an empty string.

Parameters:
node - is the current node

nPop

public void nPop(fr.obeo.acceleo.gen.template.eval.ENode node)
Deprecated. 

Pops the context, and returns an empty string.

Parameters:
node - is the current node

pop

public void pop(fr.obeo.acceleo.gen.template.eval.ENode node)
Pops the context, and returns an empty string.

Parameters:
node - is the current node

nPeek

public fr.obeo.acceleo.gen.template.eval.ENode nPeek(fr.obeo.acceleo.gen.template.eval.ENode node)
Deprecated. 

Return the last node pushed into the context, and returns an empty string.

Parameters:
node - is the current node
Returns:
an empty string

peek

public fr.obeo.acceleo.gen.template.eval.ENode peek(fr.obeo.acceleo.gen.template.eval.ENode node)
Return the last node pushed into the context, and returns an empty string.

Parameters:
node - is the current node
Returns:
an empty string