ucot.ui.gui.tree.analyzemodeltree
Class EntitiesTreeItem

java.lang.Object
  extended by ucot.ui.gui.tree.analyzemodeltree.TreeItem
      extended by ucot.ui.gui.tree.analyzemodeltree.EntitiesTreeItem
All Implemented Interfaces:
java.lang.Comparable

public class EntitiesTreeItem
extends TreeItem


Field Summary
 
Fields inherited from class ucot.ui.gui.tree.analyzemodeltree.TreeItem
data, model, name, parent
 
Constructor Summary
EntitiesTreeItem(AnalyzeTreeModel model, TreeItem parent)
           
 
Method Summary
 java.util.List getChildren()
           
 java.lang.String getData()
           
 javax.swing.Icon getIcon()
          Returns Icon for this TreeItem.
 java.lang.String getName()
           
private  boolean isEntityInfluencingEntity(java.lang.String sourceEntity, java.lang.String targetEntity)
          Retuns true is targetEntity is referenced by sourceEntity.
 
Methods inherited from class ucot.ui.gui.tree.analyzemodeltree.TreeItem
compareTo, equals, getAnalyzeModel, getParent, getPath, getTreeModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntitiesTreeItem

public EntitiesTreeItem(AnalyzeTreeModel model,
                        TreeItem parent)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class TreeItem

getData

public java.lang.String getData()

getIcon

public javax.swing.Icon getIcon()
Description copied from class: TreeItem
Returns Icon for this TreeItem.

Specified by:
getIcon in class TreeItem
Returns:
Icon for this TreeItem.

getChildren

public java.util.List getChildren()
Overrides:
getChildren in class TreeItem

isEntityInfluencingEntity

private boolean isEntityInfluencingEntity(java.lang.String sourceEntity,
                                          java.lang.String targetEntity)
Retuns true is targetEntity is referenced by sourceEntity. TargetEntity os referenced if it is sourceEntitys attribute, child or is target of sourceEntitys methods.

Parameters:
sourceEntity - name of the entity that is influencing.
targetEntity - name of the entity that is influenced.
Returns:
true if sourceEntity is influencing targetEntity.