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

This represents the entities TreeItem that contains all the entities of the analyze model.

Author:
pajumasu

Constructor Summary
EntitiesTreeItem(AnalyzeTreeModel model, TreeItem parent)
           Constructs the object.
 
Method Summary
 java.util.List getChildren()
          Returns the child items of this item.
 javax.swing.Icon getIcon()
          Returns Icon for this TreeItem.
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, getAnalyzeModel, getName, getParent, getPath, getTreeModel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntitiesTreeItem

public EntitiesTreeItem(AnalyzeTreeModel model,
                        TreeItem parent)

Constructs the object.

Parameters:
model - The TreeModel this item belongs to.
parent - The parent node.
Method Detail

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()
Description copied from class: TreeItem
Returns the child items of this item.

Overrides:
getChildren in class TreeItem
Returns:
The childs.

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.