org.eclipse.xtext.xtend2.lib
Class ResourceExtensions

java.lang.Object
  extended by org.eclipse.xtext.xtend2.lib.ResourceExtensions

public class ResourceExtensions
extends java.lang.Object

This is an extension library for EMF resources.

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
ResourceExtensions()
           
 
Method Summary
static java.lang.Iterable<org.eclipse.emf.ecore.EObject> allContentsIterable(org.eclipse.emf.ecore.resource.Resource resource)
          Returns all the contents of the resource as an Iterable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceExtensions

public ResourceExtensions()
Method Detail

allContentsIterable

public static java.lang.Iterable<org.eclipse.emf.ecore.EObject> allContentsIterable(org.eclipse.emf.ecore.resource.Resource resource)
Returns all the contents of the resource as an Iterable.

Parameters:
resource - the resource whose contents should be traversed. May not be null.
Returns:
an iterable that yields all the contents of the resource. Never null.