org.eclipse.xtext.resource.containers
Class FlatResourceSetBasedAllContainersState

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.xtext.resource.containers.FlatResourceSetBasedAllContainersState
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, IAllContainersState

public class FlatResourceSetBasedAllContainersState
extends org.eclipse.emf.common.notify.impl.AdapterImpl
implements IAllContainersState

This implementation of IAllContainersState puts all resources from a ResourceSet into one single container. Resource that are loaded after this class has been created are also considered.

Since:
2.3
Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.containers.IAllContainersState
IAllContainersState.Provider
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
FlatResourceSetBasedAllContainersState(org.eclipse.emf.ecore.resource.ResourceSet rs)
           
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
 java.util.Collection<org.eclipse.emf.common.util.URI> getContainedURIs(java.lang.String containerHandle)
           
 java.lang.String getContainerHandle(org.eclipse.emf.common.util.URI uri)
           
static java.lang.String getHandle()
           
 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
 java.util.List<java.lang.String> getVisibleContainerHandles(java.lang.String handle)
           
 int hashCode()
           
 boolean isAdapterForType(java.lang.Object type)
           
 boolean isEmpty(java.lang.String containerHandle)
           
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatResourceSetBasedAllContainersState

public FlatResourceSetBasedAllContainersState(org.eclipse.emf.ecore.resource.ResourceSet rs)
Method Detail

getHandle

public static java.lang.String getHandle()

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

getContainedURIs

public java.util.Collection<org.eclipse.emf.common.util.URI> getContainedURIs(java.lang.String containerHandle)
Specified by:
getContainedURIs in interface IAllContainersState

getContainerHandle

public java.lang.String getContainerHandle(org.eclipse.emf.common.util.URI uri)
Specified by:
getContainerHandle in interface IAllContainersState

getResourceSet

public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()

getVisibleContainerHandles

public java.util.List<java.lang.String> getVisibleContainerHandles(java.lang.String handle)
Specified by:
getVisibleContainerHandles in interface IAllContainersState

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl

isEmpty

public boolean isEmpty(java.lang.String containerHandle)
Specified by:
isEmpty in interface IAllContainersState