Class ResourceIterable

java.lang.Object
org.eclipse.m2m.atl.emftvm.util.ResourceIterable
All Implemented Interfaces:
Iterable<org.eclipse.emf.ecore.EObject>

public class ResourceIterable extends Object implements Iterable<org.eclipse.emf.ecore.EObject>
Makes the contents of a Resource available as an Iterable.
  • Constructor Details

    • ResourceIterable

      public ResourceIterable(org.eclipse.emf.ecore.resource.Resource res)
      Creates a new ResourceIterable around res.
      Parameters:
      res - the resource
  • Method Details

    • iterator

      public Iterator<org.eclipse.emf.ecore.EObject> iterator()
      Specified by:
      iterator in interface Iterable<org.eclipse.emf.ecore.EObject>