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


public class XpathServices
extends java.lang.Object

Xpath axes.


Constructor Summary
XpathServices()
           
 
Method Summary
 java.util.List ancestor(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "ancestor" axe in Xpath : selects all ancestors (parent, grandparent, etc.) of the current node
 java.util.List child(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "child" axe in Xpath : selects all children of the current node
 java.util.List descendant(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "descendant" axe in Xpath: Gets all the descendants (children, grandchildren, etc.) of the current node.
 java.util.List following(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "following" axe in Xpath: selects everything in the model after the current node
 java.util.List followingSibling(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "following-sibling" axe in Xpath: selects all siblings after the current node
 org.eclipse.emf.ecore.EObject parent(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "parent" axe in Xpath : selects the parent of the current node
 java.util.List preceding(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "preceding" axe in Xpath: selects everything in the model that is before the current node
 java.util.List precedingSibling(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "preceding-sibling" axe in Xpath: selects all siblings before the current node.
 java.util.List selectNodes(org.eclipse.emf.ecore.EObject current, java.lang.String path)
          To use XPath with an EMF model.
 org.eclipse.emf.ecore.EObject self(org.eclipse.emf.ecore.EObject object)
          Same meaning as the "self" axe in Xpath : selects the current node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XpathServices

public XpathServices()
Method Detail

ancestor

public java.util.List ancestor(org.eclipse.emf.ecore.EObject object)
Same meaning as the "ancestor" axe in Xpath : selects all ancestors (parent, grandparent, etc.) of the current node

Parameters:
current - is the current node of generation
Returns:
all ancestors (parent, grandparent, etc.) of the current node

child

public java.util.List child(org.eclipse.emf.ecore.EObject object)
Same meaning as the "child" axe in Xpath : selects all children of the current node

Parameters:
current - is the current node of generation
Returns:
all children of the current node

descendant

public java.util.List descendant(org.eclipse.emf.ecore.EObject object)
Same meaning as the "descendant" axe in Xpath: Gets all the descendants (children, grandchildren, etc.) of the current node.

Parameters:
object - is the current node
Returns:
the descendants of the current node

following

public java.util.List following(org.eclipse.emf.ecore.EObject object)
Same meaning as the "following" axe in Xpath: selects everything in the model after the current node

Parameters:
object - is the current node
Returns:
everything after the current node

followingSibling

public java.util.List followingSibling(org.eclipse.emf.ecore.EObject object)
Same meaning as the "following-sibling" axe in Xpath: selects all siblings after the current node

Parameters:
object - is the current node
Returns:
all siblings after the current node

parent

public org.eclipse.emf.ecore.EObject parent(org.eclipse.emf.ecore.EObject object)
Same meaning as the "parent" axe in Xpath : selects the parent of the current node

Parameters:
current - is the current node of generation
Returns:
the parent of the current node

preceding

public java.util.List preceding(org.eclipse.emf.ecore.EObject object)
Same meaning as the "preceding" axe in Xpath: selects everything in the model that is before the current node

Parameters:
object - is the current node
Returns:
everything in the model that is before the current node

precedingSibling

public java.util.List precedingSibling(org.eclipse.emf.ecore.EObject object)
Same meaning as the "preceding-sibling" axe in Xpath: selects all siblings before the current node.

Parameters:
object - is the current node
Returns:
all siblings before the current node

selectNodes

public java.util.List selectNodes(org.eclipse.emf.ecore.EObject current,
                                  java.lang.String path)
                           throws org.jaxen.JaxenException
To use XPath with an EMF model.

Parameters:
current - is the current node of generation
path - is the XPath expression
Returns:
the selected nodes
Throws:
org.jaxen.JaxenException

self

public org.eclipse.emf.ecore.EObject self(org.eclipse.emf.ecore.EObject object)
Same meaning as the "self" axe in Xpath : selects the current node

Parameters:
current - is the current node of generation
Returns:
the current node