de.uni_paderborn.fujaba.usecase
Class Utility

java.lang.Object
  extended byde.uni_paderborn.fujaba.usecase.Utility

public class Utility
extends java.lang.Object

Some useful functions.

Version:
$Revision: 1.15 $
Author:
$Author: schneider $

Constructor Summary
Utility()
           
 
Method Summary
static UMLDiagram getDiagramOfDiagramItem(UMLDiagramItem item)
          Get the diagramOfDiagramItem attribute of the Utility class
static FSAObject getFSAObject(ASGElement item, java.lang.String propertyName)
          Get item's FSAObject with given propertyName.
static FSAContainer getMainFSAContainer(ASGElement item)
          Get the item's main FSAContainer.
static UMLDiagramItem getSingleSelectedDiagramItem()
          Get the singleSelectedDiagramItem attribute of the Utility class
static Usecase getSingleSelectedUsecase()
          Get the singleSelectedUsecase attribute of the Utility class
static UsecaseDiagram getUsecaseDiagramByName(java.lang.String name)
          Get the usecaseDiagramByName attribute of the Utility class
static UsecaseDiagram getUsecaseDiagramOfUsecase(Usecase usecase)
          Get the usecaseDiagramOfUsecase attribute of the Utility class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

getMainFSAContainer

public static FSAContainer getMainFSAContainer(ASGElement item)
Get the item's main FSAContainer. The container is identified by the propertyName defined int the UnparseModule (default: entry).

Parameters:
item - This UMLDiagramItem's main FSAContainer is returned.
Returns:
The item's main FSAContainer.
See Also:
UMLDiagramItem, FSAContainer, FSAObject.getPropertyName()

getFSAObject

public static FSAObject getFSAObject(ASGElement item,
                                     java.lang.String propertyName)
Get item's FSAObject with given propertyName.

Parameters:
item - The UMLDiagramItem's FSAObjects are searched.
propertyName - identifies item's FSAObject.
Returns:
The item's FSAObject with given propertyName.
See Also:
UMLDiagramItem, FSAObject, FSAObject.getPropertyName()

getUsecaseDiagramOfUsecase

public static UsecaseDiagram getUsecaseDiagramOfUsecase(Usecase usecase)
Get the usecaseDiagramOfUsecase attribute of the Utility class

Parameters:
usecase - No description provided
Returns:
The usecaseDiagramOfUsecase value

getDiagramOfDiagramItem

public static UMLDiagram getDiagramOfDiagramItem(UMLDiagramItem item)
Get the diagramOfDiagramItem attribute of the Utility class

Parameters:
item - No description provided
Returns:
The diagramOfDiagramItem value

getSingleSelectedUsecase

public static Usecase getSingleSelectedUsecase()
                                        throws java.lang.Exception
Get the singleSelectedUsecase attribute of the Utility class

Returns:
The singleSelectedUsecase value
Throws:
java.lang.Exception - Exception description not provided

getSingleSelectedDiagramItem

public static UMLDiagramItem getSingleSelectedDiagramItem()
                                                   throws java.lang.Exception
Get the singleSelectedDiagramItem attribute of the Utility class

Returns:
The singleSelectedDiagramItem value
Throws:
java.lang.Exception - Exception description not provided

getUsecaseDiagramByName

public static UsecaseDiagram getUsecaseDiagramByName(java.lang.String name)
Get the usecaseDiagramByName attribute of the Utility class

Parameters:
name - No description provided
Returns:
The usecaseDiagramByName value