org.eclipse.xtext.builder.builderState
Class ResourceDescriptionsData

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
      extended by org.eclipse.xtext.builder.builderState.ResourceDescriptionsData
All Implemented Interfaces:
ISelectable

public class ResourceDescriptionsData
extends AbstractCompoundSelectable

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
  ResourceDescriptionsData(java.lang.Iterable<IResourceDescription> descriptions)
           
protected ResourceDescriptionsData(java.util.Map<org.eclipse.emf.common.util.URI,IResourceDescription> resourceDescriptionMap, com.google.common.collect.Multimap<QualifiedName,IResourceDescription> lookupMap)
           
 
Method Summary
 void addDescription(org.eclipse.emf.common.util.URI uri, IResourceDescription newDescription)
           
 ResourceDescriptionsData copy()
           
 java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
           
 java.util.Set<org.eclipse.emf.common.util.URI> getAllURIs()
           
 java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)
           
 java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
           
 IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
           
protected  java.lang.Iterable<IResourceDescription> getSelectables()
           
 void removeDescription(org.eclipse.emf.common.util.URI uri)
           
 
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
getExportedObjects, getExportedObjectsByType, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDescriptionsData

public ResourceDescriptionsData(java.lang.Iterable<IResourceDescription> descriptions)

ResourceDescriptionsData

protected ResourceDescriptionsData(java.util.Map<org.eclipse.emf.common.util.URI,IResourceDescription> resourceDescriptionMap,
                                   com.google.common.collect.Multimap<QualifiedName,IResourceDescription> lookupMap)
Method Detail

copy

public ResourceDescriptionsData copy()

getAllResourceDescriptions

public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()

getResourceDescription

public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)

removeDescription

public void removeDescription(org.eclipse.emf.common.util.URI uri)

getExportedObjects

public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type,
                                                                  QualifiedName qualifiedName,
                                                                  boolean ignoreCase)
Specified by:
getExportedObjects in interface ISelectable
Overrides:
getExportedObjects in class AbstractCompoundSelectable
Returns:
all elements which match the given qualified name and type. May not be null.

getExportedObjectsByObject

public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
Specified by:
getExportedObjectsByObject in interface ISelectable
Overrides:
getExportedObjectsByObject in class AbstractCompoundSelectable
Returns:
all elements which match the given instance. May not be null.

getSelectables

protected java.lang.Iterable<IResourceDescription> getSelectables()
Specified by:
getSelectables in class AbstractCompoundSelectable

getAllURIs

public java.util.Set<org.eclipse.emf.common.util.URI> getAllURIs()

addDescription

public void addDescription(org.eclipse.emf.common.util.URI uri,
                           IResourceDescription newDescription)