|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.DeleteDependencyCalculator.DeletingNode
protected class DeleteDependencyCalculator.DeletingNode
Class for keeping info about the structure of the repository.
Field Summary | |
---|---|
protected java.util.List<DeleteDependencyCalculator.DeletingNode> |
containedBy
List of entities which contain this entity. |
protected java.util.List<DeleteDependencyCalculator.DeletingNode> |
contains
Everything that is contained by this node. |
protected VersionedEntity |
entity
The data which has the possibility of being deleted. |
protected java.util.List<DeleteDependencyCalculator.DeletingNode> |
children
Children of the node mean everything that implements this node. |
protected java.lang.String |
info
For debug purposes only... |
protected java.util.List<DeleteDependencyCalculator.DeletingNode> |
parents
The parents of the node. |
Constructor Summary | |
---|---|
DeleteDependencyCalculator.DeletingNode(org.eclipse.emf.ecore.EObject entity,
java.lang.String info)
The only constructor of the DeletingNode class. |
Method Summary | |
---|---|
protected void |
_addEntityDelParentsToList(java.util.List<DeleteDependencyCalculator.DeletingNode> list)
Helps with the recursion. |
protected void |
_addEntityDependenciesToList(java.util.List<DeleteDependencyCalculator.DeletingNode> list)
Helps with the recursion. |
void |
addEntityDelParentsToSet(java.util.Set<VersionedEntity> list)
Main function for getting the deletion parents. |
void |
addEntityDependenciesToSet(java.util.Set<VersionedEntity> list)
Main function for getting the dependencies. |
void |
addToContainedBy(DeleteDependencyCalculator.DeletingNode newContainedBy)
Adds newContainedBy to the list of children. |
void |
addToContains(DeleteDependencyCalculator.DeletingNode newContains)
Adds newContains to the list of children. |
void |
addToChildren(DeleteDependencyCalculator.DeletingNode newChild)
Adds newChild to the list of children. |
void |
addToParents(DeleteDependencyCalculator.DeletingNode parent)
|
protected void |
print(DeleteDependencyCalculator.DeletingNode node,
int indent)
Prints the given node to the console at the given indentation. |
void |
print(int indent)
Prints the node to the console at the given indentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<DeleteDependencyCalculator.DeletingNode> parents
protected java.util.List<DeleteDependencyCalculator.DeletingNode> children
protected java.util.List<DeleteDependencyCalculator.DeletingNode> contains
protected java.util.List<DeleteDependencyCalculator.DeletingNode> containedBy
protected VersionedEntity entity
protected java.lang.String info
Constructor Detail |
---|
public DeleteDependencyCalculator.DeletingNode(org.eclipse.emf.ecore.EObject entity, java.lang.String info)
entity
- The entity to be stored and represented by the node.info
- Text info about the entity and node, just for user purposes.Method Detail |
---|
public void addToParents(DeleteDependencyCalculator.DeletingNode parent)
public void addToChildren(DeleteDependencyCalculator.DeletingNode newChild)
newChild
- public void addToContains(DeleteDependencyCalculator.DeletingNode newContains)
newContains
- public void addToContainedBy(DeleteDependencyCalculator.DeletingNode newContainedBy)
newContainedBy
- protected void _addEntityDependenciesToList(java.util.List<DeleteDependencyCalculator.DeletingNode> list)
list
- public void addEntityDependenciesToSet(java.util.Set<VersionedEntity> list)
list
- protected void _addEntityDelParentsToList(java.util.List<DeleteDependencyCalculator.DeletingNode> list)
list
- public void addEntityDelParentsToSet(java.util.Set<VersionedEntity> list)
list
- protected void print(DeleteDependencyCalculator.DeletingNode node, int indent)
public void print(int indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |