Class LightResourceDescriptionsData

  • All Implemented Interfaces:
    org.eclipse.xtext.resource.IResourceDescriptions, org.eclipse.xtext.resource.ISelectable

    public class LightResourceDescriptionsData
    extends org.eclipse.xtext.resource.impl.ResourceDescriptionsData
    Lightweight implementation of the ResourceDescriptionsData class.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.resource.impl.ResourceDescriptionsData

        org.eclipse.xtext.resource.impl.ResourceDescriptionsData.ResourceSetAdapter
      • Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceDescriptions

        org.eclipse.xtext.resource.IResourceDescriptions.IContextAware, org.eclipse.xtext.resource.IResourceDescriptions.IResourceSetAware, org.eclipse.xtext.resource.IResourceDescriptions.NullImpl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map<org.eclipse.xtext.naming.QualifiedName,​Object> lookupMap
      The lookup map contains either a single IResourceDescription or a Set<IResourceDescription> as values.
      protected Map<org.eclipse.emf.common.util.URI,​org.eclipse.xtext.resource.IResourceDescription> resourceDescriptionMap  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        LightResourceDescriptionsData​(Iterable<org.eclipse.xtext.resource.IResourceDescription> descriptions)  
      protected LightResourceDescriptionsData​(Map<org.eclipse.emf.common.util.URI,​org.eclipse.xtext.resource.IResourceDescription> resourceDescriptionMap, Map<org.eclipse.xtext.naming.QualifiedName,​Object> lookupMap)  
    • Field Detail

      • resourceDescriptionMap

        protected final Map<org.eclipse.emf.common.util.URI,​org.eclipse.xtext.resource.IResourceDescription> resourceDescriptionMap
    • Constructor Detail

      • LightResourceDescriptionsData

        public LightResourceDescriptionsData​(Iterable<org.eclipse.xtext.resource.IResourceDescription> descriptions)
      • LightResourceDescriptionsData

        protected LightResourceDescriptionsData​(Map<org.eclipse.emf.common.util.URI,​org.eclipse.xtext.resource.IResourceDescription> resourceDescriptionMap,
                                                Map<org.eclipse.xtext.naming.QualifiedName,​Object> lookupMap)
    • Method Detail

      • copy

        public org.eclipse.xtext.resource.impl.ResourceDescriptionsData copy()
        Overrides:
        copy in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getAllResourceDescriptions

        public Iterable<org.eclipse.xtext.resource.IResourceDescription> getAllResourceDescriptions()
        Specified by:
        getAllResourceDescriptions in interface org.eclipse.xtext.resource.IResourceDescriptions
        Overrides:
        getAllResourceDescriptions in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getResourceDescription

        public org.eclipse.xtext.resource.IResourceDescription getResourceDescription​(org.eclipse.emf.common.util.URI uri)
        Specified by:
        getResourceDescription in interface org.eclipse.xtext.resource.IResourceDescriptions
        Overrides:
        getResourceDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • removeDescription

        public void removeDescription​(org.eclipse.emf.common.util.URI uri)
        Overrides:
        removeDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getExportedObjects

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjects​(org.eclipse.emf.ecore.EClass type,
                                                                                           org.eclipse.xtext.naming.QualifiedName qualifiedName,
                                                                                           boolean ignoreCase)
        Specified by:
        getExportedObjects in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjects in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getExportedObjectsByObject

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByObject​(org.eclipse.emf.ecore.EObject object)
        Specified by:
        getExportedObjectsByObject in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjectsByObject in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getAllURIs

        public Set<org.eclipse.emf.common.util.URI> getAllURIs()
        Overrides:
        getAllURIs in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • addDescription

        public void addDescription​(org.eclipse.emf.common.util.URI uri,
                                   org.eclipse.xtext.resource.IResourceDescription newDescription)
        Overrides:
        addDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getExportedObjectsByType

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByType​(org.eclipse.emf.ecore.EClass type)
        Specified by:
        getExportedObjectsByType in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjectsByType in class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
      • registerDescription

        protected void registerDescription​(org.eclipse.xtext.resource.IResourceDescription description,
                                           Map<org.eclipse.xtext.naming.QualifiedName,​Object> target)
        Overrides:
        registerDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • copyLookupMap

        protected Map<org.eclipse.xtext.naming.QualifiedName,​Object> copyLookupMap()
        Overrides:
        copyLookupMap in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData
      • getSelectables

        protected Iterable<org.eclipse.xtext.resource.IResourceDescription> getSelectables()
        Overrides:
        getSelectables in class org.eclipse.xtext.resource.impl.ResourceDescriptionsData