org.eclipse.emf.ecp.view.edapt
Class PackageDependencyGraph

java.lang.Object
  extended by org.eclipse.emf.ecp.view.edapt.PackageDependencyGraph

public class PackageDependencyGraph
extends Object

Tree like datastructure representing EPackages and their depdendencies to each other. Offers an Iterator to navigate over the dependencies.

Author:
jfaltermeier

Constructor Summary
PackageDependencyGraph()
          Constructs a new empty PackageDependencyGraph.
 
Method Summary
 void addPackage(String nsURI)
          Adds a new EPackage with the given namespace URI to the tree.
 Iterator<Set<String>> getIerator()
          Returns an iterator for the tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageDependencyGraph

public PackageDependencyGraph()
Constructs a new empty PackageDependencyGraph.

Method Detail

addPackage

public void addPackage(String nsURI)
Adds a new EPackage with the given namespace URI to the tree. All required dependencies of the EPackage will be registered as well.

Parameters:
nsURI - the namespace uri of the package to add

getIerator

public Iterator<Set<String>> getIerator()
Returns an iterator for the tree. It will return sets of namespace uris. The set that is returned by next will always have no unvisited parents, meaning that all parents have been returned by next before.

Returns:
the iterator


Copyright © 2015. All Rights Reserved.