|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.DeleteDependencyCalculator
public class DeleteDependencyCalculator
Class for going through the whole repository and getting the list of entities to be deleted.
Nested Class Summary | |
---|---|
protected class |
DeleteDependencyCalculator.DeletingNode
Class for keeping info about the structure of the repository. |
Field Summary | |
---|---|
protected NodeConfiguration |
nodeConfiguration
|
protected java.util.HashMap<org.eclipse.emf.common.util.URI,DeleteDependencyCalculator.DeletingNode> |
nodesCache
|
protected RepositoryQuery |
repositoryQuery
|
protected DeleteDependencyCalculator.DeletingNode |
root
|
Constructor Summary | |
---|---|
DeleteDependencyCalculator(NodeConfiguration nodeConfiguration)
Constructor. |
Method Summary | |
---|---|
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Architecture entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Aspect entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(AssemblyDescriptor entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(CodeBundle entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(DeploymentPlan entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Frame entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(InstanceAssemblyDescription entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Interface entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(InterfaceType entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(MicroComponent entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(SubcomponentInstance entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
java.util.List<VersionedEntity> |
getAllDependencies()
Just for debugging purposes... |
java.util.List<VersionedEntity> |
getDeletingDependencies(org.eclipse.emf.common.util.URI uri)
Gets all dependencies which should be deleted with a VersionedEntity for keeping the repository consistent. |
java.util.List<VersionedEntity> |
getDeletingDependencies(VersionedEntity entity)
Gets all dependencies which should be deleted with a VersionedEntity for keeping the repository consistent. |
protected void |
indent(int indent)
|
void |
printResult()
|
protected org.eclipse.emf.ecore.EObject |
resolve(org.eclipse.emf.ecore.EObject e)
Just until I find out why EcoreUtil.resolveAll works only for some entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<org.eclipse.emf.common.util.URI,DeleteDependencyCalculator.DeletingNode> nodesCache
protected DeleteDependencyCalculator.DeletingNode root
protected NodeConfiguration nodeConfiguration
protected RepositoryQuery repositoryQuery
Constructor Detail |
---|
public DeleteDependencyCalculator(NodeConfiguration nodeConfiguration)
nodeConfiguration
- the configuration of the repository.Method Detail |
---|
protected org.eclipse.emf.ecore.EObject resolve(org.eclipse.emf.ecore.EObject e)
e
-
public java.util.List<VersionedEntity> getDeletingDependencies(VersionedEntity entity)
entity
- the entity to be deleted and which's dependencies to find.
public java.util.List<VersionedEntity> getDeletingDependencies(org.eclipse.emf.common.util.URI uri)
entity
- the entity to be deleted and which's dependencies to find.
public java.util.List<VersionedEntity> getAllDependencies()
entity
-
protected void indent(int indent)
public void printResult()
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Architecture entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Aspect entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(AssemblyDescriptor entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(CodeBundle entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(DeploymentPlan entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Frame entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(InterfaceType entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(MicroComponent entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(InstanceAssemblyDescription entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Interface entity)
entity
-
protected DeleteDependencyCalculator.DeletingNode cacheEntity(SubcomponentInstance entity)
entity
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |