Class 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 looks whether a ResourceDescriptionsData is installed on the wrapped ResourceSet and delegates to that. If no such adapter is installed it uses the contents of the ResourceSet. Resource that are loaded after this class has been created are also considered.
    Since:
    2.3
    • Nested Class Summary

      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsURI​(java.lang.String containerHandle, org.eclipse.emf.common.util.URI candidateURI)  
      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)  
      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, equals, finalize, getClass, hashCode, 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()
      • getContainedURIs

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

        public boolean containsURI​(java.lang.String containerHandle,
                                   org.eclipse.emf.common.util.URI candidateURI)
        Specified by:
        containsURI in interface IAllContainersState
      • getResourceSet

        public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      • 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