public class EMFIndexRetrieval
extends java.lang.Object
Constructor and Description |
---|
EMFIndexRetrieval() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllClassifiersInWorkspace()
get all classifiers in all packages by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllClassifiersInWorkspace(org.eclipse.emf.ecore.EObject context)
get all classifiers in all packages by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllClassifiersOfTypeInWorkspace(org.eclipse.emf.ecore.EClass classifiertype)
get all classifiers in all packages by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllClassifiersOfTypeInWorkspace(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EClass classifierType)
get all Classifiers by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<ComponentImplementation> |
getAllComponentImpl()
Get all component implementations; in all
packages (public and private parts)
|
static java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getAllEObjectsOfTypeInWorkspace(org.eclipse.emf.ecore.EClass eObjectType)
get all EObjects in by looking them up in EMF index
|
static java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getAllEObjectsOfTypeInWorkspace(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EClass eObjectType)
get all EObjects in by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllImportedPackages(AadlPackage pack)
get all packages in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllModelUnitsInWorkspace()
get all packages and property sets in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllModelUnitsInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs)
get all packages and property sets in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllPackagesInWorkspace()
get all packages in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllPackagesInWorkspace(org.eclipse.emf.ecore.EObject context)
get all packages in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllPropertySetsInWorkspace()
get all property sets in workspace by looking them up in EMF index
|
static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> |
getAllPropertySetsInWorkspace(org.eclipse.emf.ecore.EObject context)
get all property sets in workspace by looking them up in EMF index
|
static Classifier |
getClassifierInWorkspace(Element context,
java.lang.String cname)
get the Classifier by looking it up in EMF index
|
static Classifier |
getClassifierInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs,
java.lang.String cname)
get the Property Definition by looking it up in EMF index
|
static Classifier |
getClassifierInWorkspace(java.lang.String cname)
get the Classifier by looking it up in EMF index
|
static org.eclipse.emf.ecore.EObject |
getEObject(org.eclipse.emf.ecore.EObject context,
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> edl,
java.lang.String name)
find EObject by name in EObjectDescription list
|
static org.eclipse.emf.ecore.EObject |
getEObject(java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> edl,
java.lang.String name)
find EObject by name in EObjectDescription list
|
static org.eclipse.emf.ecore.EObject |
getEObjectOfType(org.eclipse.emf.ecore.EClass eObjectType,
java.lang.String name)
find EObject by name in EObjectDescription list
|
static org.eclipse.emf.ecore.EObject |
getEObjectOfType(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EClass eObjectType,
java.lang.String name)
find EObject by name in EObjectDescription list
|
static AadlPackage |
getPackageInWorkspace(org.eclipse.emf.ecore.EObject context,
java.lang.String pname)
get package in workspace by looking it up in EMF index
|
static AadlPackage |
getPackageInWorkspace(java.lang.String pname)
get package in workspace by looking it up in EMF index
|
static PropertyConstant |
getPropertyConstantInWorkspace(org.eclipse.emf.ecore.EObject context,
java.lang.String pcname)
get the Property Constant by looking it up in EMF index
|
static PropertyConstant |
getPropertyConstantInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs,
java.lang.String pcname)
get the Property Constant by looking it up in EMF index
|
static PropertyConstant |
getPropertyConstantInWorkspace(java.lang.String pcname)
get the Property Constant by looking it up in EMF index
|
static Property |
getPropertyDefinitionInWorkspace(org.eclipse.emf.ecore.EObject context,
java.lang.String pdname)
get the Property Definition by looking it up in EMF index
|
static Property |
getPropertyDefinitionInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs,
java.lang.String pdname)
get the Property Definition by looking it up in EMF index
|
static Property |
getPropertyDefinitionInWorkspace(java.lang.String pdname)
get the Property Definition by looking it up in EMF index
|
static PropertySet |
getPropertySetInWorkspace(org.eclipse.emf.ecore.EObject context,
java.lang.String pname)
get PropertySet in workspace by looking it up in EMF index
|
static PropertySet |
getPropertySetInWorkspace(java.lang.String pname)
get PropertySet in workspace by looking it up in EMF index
|
static PropertyType |
getPropertyTypeInWorkspace(org.eclipse.emf.ecore.EObject context,
java.lang.String ptname)
get the Property Type by looking it up in EMF index
|
static PropertyType |
getPropertyTypeInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs,
java.lang.String ptname)
get the Property Type by looking it up in EMF index
|
static PropertyType |
getPropertyTypeInWorkspace(java.lang.String ptname)
get the Property Type by looking it up in EMF index
|
static void |
printEMFIndexEMV2(org.eclipse.emf.ecore.EObject context) |
static void |
registerResourceProviders(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider frdp,
org.eclipse.xtext.resource.IResourceServiceProvider.Registry frspr) |
public static void registerResourceProviders(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider frdp, org.eclipse.xtext.resource.IResourceServiceProvider.Registry frspr)
public static void printEMFIndexEMV2(org.eclipse.emf.ecore.EObject context)
public static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllPackagesInWorkspace()
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllPackagesInWorkspace(org.eclipse.emf.ecore.EObject context)
res
- resourcepublic static AadlPackage getPackageInWorkspace(java.lang.String pname)
pname
- String package namepublic static AadlPackage getPackageInWorkspace(org.eclipse.emf.ecore.EObject context, java.lang.String pname)
pname
- String package namepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllPropertySetsInWorkspace()
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllPropertySetsInWorkspace(org.eclipse.emf.ecore.EObject context)
res
- resourcepublic static PropertySet getPropertySetInWorkspace(org.eclipse.emf.ecore.EObject context, java.lang.String pname)
context
- EObject to retrieve the ResoruceSet for the EMF Indexpname
- String PropertySet namepublic static PropertySet getPropertySetInWorkspace(java.lang.String pname)
pname
- String PropertySet namepublic static Property getPropertyDefinitionInWorkspace(java.lang.String pdname)
pdname
- String name of property Definition (predeclared properties do not have to be qualified)public static Property getPropertyDefinitionInWorkspace(org.eclipse.emf.ecore.EObject context, java.lang.String pdname)
context
- an object in the same resource setpdname
- String name of property Definition (predeclared properties do not have to be qualified)public static Property getPropertyDefinitionInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs, java.lang.String pdname)
pdname
- String name of property Definition (predeclared properties do not have to be qualified)public static PropertyType getPropertyTypeInWorkspace(java.lang.String ptname)
ptname
- String name of property type (predeclared properties do not have to be qualified)public static PropertyType getPropertyTypeInWorkspace(org.eclipse.emf.ecore.EObject context, java.lang.String ptname)
context
- an object in the same resoruce setptname
- String name of property type (predeclared properties do not have to be qualified)public static PropertyType getPropertyTypeInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs, java.lang.String ptname)
ptname
- String name of property type (predeclared properties do not have to be qualified)public static PropertyConstant getPropertyConstantInWorkspace(java.lang.String pcname)
pcname
- String name of property Constant (predeclared properties do not have to be qualified)public static PropertyConstant getPropertyConstantInWorkspace(org.eclipse.emf.ecore.EObject context, java.lang.String pcname)
context
- an object in the same resource setpcname
- String name of property Constant (predeclared properties do not have to be qualified)public static PropertyConstant getPropertyConstantInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs, java.lang.String pcname)
pcname
- String name of property Constant (predeclared properties do not have to be qualified)public static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllModelUnitsInWorkspace()
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllModelUnitsInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs)
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllImportedPackages(AadlPackage pack)
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllClassifiersInWorkspace()
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllClassifiersInWorkspace(org.eclipse.emf.ecore.EObject context)
res
- resourcepublic static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllClassifiersOfTypeInWorkspace(org.eclipse.emf.ecore.EClass classifiertype)
res
- resourceclassifiertype
- desired type of classifier (you can supply it via Aadl2Package.eINSTANCE.getProcessorType, etc)public static org.eclipse.emf.common.util.EList<org.eclipse.xtext.resource.IEObjectDescription> getAllClassifiersOfTypeInWorkspace(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EClass classifierType)
context
- EObject in the same resourceset as the EObjects we are looking forclassifierType
- EClass of desired Classifierspublic static java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllEObjectsOfTypeInWorkspace(org.eclipse.emf.ecore.EClass eObjectType)
context
- EObject in the same resourceset as the EObjects we are looking foreObjectType
- EClass of desired EObjectspublic static java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllEObjectsOfTypeInWorkspace(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EClass eObjectType)
context
- EObject in the same resourceset as the EObjects we are looking foreObjectType
- EClass of desired EObjectspublic static org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.EObject context, java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> edl, java.lang.String name)
context
- to identify the resourcesetedl
- EObjectDescription listname
- String qualified name of EObject to be foundpublic static org.eclipse.emf.ecore.EObject getEObject(java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> edl, java.lang.String name)
edl
- EObjectDescription listname
- String qualified name of EObject to be foundpublic static org.eclipse.emf.ecore.EObject getEObjectOfType(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EClass eObjectType, java.lang.String name)
context
- to identify the resourcesetedl
- EObjectDescription listname
- String qualified name of EObject to be foundpublic static org.eclipse.emf.ecore.EObject getEObjectOfType(org.eclipse.emf.ecore.EClass eObjectType, java.lang.String name)
edl
- EObjectDescription listname
- String qualified name of EObject to be foundpublic static Classifier getClassifierInWorkspace(java.lang.String cname)
cname
- String name of classifier, which must be qualified with a package namepublic static Classifier getClassifierInWorkspace(Element context, java.lang.String cname)
context
- an object in the same resource setcname
- String name of classifier, which must be qualified with a package namepublic static Classifier getClassifierInWorkspace(org.eclipse.emf.ecore.resource.ResourceSet rs, java.lang.String cname)
pdname
- String name of property Definition (predeclared properties do not have to be qualified)public static org.eclipse.emf.common.util.EList<ComponentImplementation> getAllComponentImpl()