Class LightResourceDescriptionsData
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
-
- org.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
- com._1c.g5.modeling.xtext.resource.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 theResourceDescriptionsData
class.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<org.eclipse.xtext.naming.QualifiedName,Object>
lookupMap
The lookup map contains either a singleIResourceDescription
or aSet<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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDescription(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.resource.IResourceDescription newDescription)
org.eclipse.xtext.resource.impl.ResourceDescriptionsData
copy()
protected Map<org.eclipse.xtext.naming.QualifiedName,Object>
copyLookupMap()
Iterable<org.eclipse.xtext.resource.IResourceDescription>
getAllResourceDescriptions()
Set<org.eclipse.emf.common.util.URI>
getAllURIs()
Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getExportedObjects(org.eclipse.emf.ecore.EClass type, org.eclipse.xtext.naming.QualifiedName qualifiedName, boolean ignoreCase)
Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
org.eclipse.xtext.resource.IResourceDescription
getResourceDescription(org.eclipse.emf.common.util.URI uri)
protected Iterable<org.eclipse.xtext.resource.IResourceDescription>
getSelectables()
protected void
registerDescription(org.eclipse.xtext.resource.IResourceDescription description, Map<org.eclipse.xtext.naming.QualifiedName,Object> target)
void
removeDescription(org.eclipse.emf.common.util.URI uri)
-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
getExportedObjects, isEmpty
-
-
-
-
Field Detail
-
resourceDescriptionMap
protected final Map<org.eclipse.emf.common.util.URI,org.eclipse.xtext.resource.IResourceDescription> resourceDescriptionMap
-
lookupMap
protected final Map<org.eclipse.xtext.naming.QualifiedName,Object> lookupMap
The lookup map contains either a singleIResourceDescription
or aSet<IResourceDescription>
as values. It is maintained byremoveDescription(URI)
andaddDescription(URI, IResourceDescription)
which take care of creating theSets
and discarding them if the number of elements becomes small enough.
-
-
Constructor Detail
-
LightResourceDescriptionsData
public LightResourceDescriptionsData(Iterable<org.eclipse.xtext.resource.IResourceDescription> descriptions)
-
-
Method Detail
-
copy
public org.eclipse.xtext.resource.impl.ResourceDescriptionsData copy()
- Overrides:
copy
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getAllResourceDescriptions
public Iterable<org.eclipse.xtext.resource.IResourceDescription> getAllResourceDescriptions()
- Specified by:
getAllResourceDescriptions
in interfaceorg.eclipse.xtext.resource.IResourceDescriptions
- Overrides:
getAllResourceDescriptions
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getResourceDescription
public org.eclipse.xtext.resource.IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
- Specified by:
getResourceDescription
in interfaceorg.eclipse.xtext.resource.IResourceDescriptions
- Overrides:
getResourceDescription
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
removeDescription
public void removeDescription(org.eclipse.emf.common.util.URI uri)
- Overrides:
removeDescription
in classorg.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 interfaceorg.eclipse.xtext.resource.ISelectable
- Overrides:
getExportedObjects
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getExportedObjectsByObject
public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
- Specified by:
getExportedObjectsByObject
in interfaceorg.eclipse.xtext.resource.ISelectable
- Overrides:
getExportedObjectsByObject
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getAllURIs
public Set<org.eclipse.emf.common.util.URI> getAllURIs()
- Overrides:
getAllURIs
in classorg.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 classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getExportedObjectsByType
public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
- Specified by:
getExportedObjectsByType
in interfaceorg.eclipse.xtext.resource.ISelectable
- Overrides:
getExportedObjectsByType
in classorg.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 classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
copyLookupMap
protected Map<org.eclipse.xtext.naming.QualifiedName,Object> copyLookupMap()
- Overrides:
copyLookupMap
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
getSelectables
protected Iterable<org.eclipse.xtext.resource.IResourceDescription> getSelectables()
- Overrides:
getSelectables
in classorg.eclipse.xtext.resource.impl.ResourceDescriptionsData
-
-