Modelers

org.topcased.modeler.di.model.util
Class DIUtils

java.lang.Object
  extended by org.topcased.modeler.di.model.util.DIUtils

public class DIUtils
extends java.lang.Object

Helper class to manage the DI model.
Creation : 3 oct. 2005


Constructor Summary
DIUtils()
           
 
Method Summary
static Property getProperty(DiagramElement elt, java.lang.String key)
          Returns the Property (object model of the DI) associated with the passed key.
static java.lang.String getPropertyValue(DiagramElement elt, java.lang.String key)
          Returns the String value of a Property
static void setProperty(DiagramElement elt, java.lang.String key, java.lang.String value)
          Change the value of a Property key of the selected GraphElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DIUtils

public DIUtils()
Method Detail

getProperty

public static Property getProperty(DiagramElement elt,
                                   java.lang.String key)
Returns the Property (object model of the DI) associated with the passed key.

Parameters:
elt - the DiagramElement
key - the key of the Property
Returns:
the Property (null if not found)

getPropertyValue

public static java.lang.String getPropertyValue(DiagramElement elt,
                                                java.lang.String key)
Returns the String value of a Property

Parameters:
elt - the DiagramElement
key - the key of the Property
Returns:
String ("" if no Property associated)

setProperty

public static void setProperty(DiagramElement elt,
                               java.lang.String key,
                               java.lang.String value)
Change the value of a Property key of the selected GraphElement

Parameters:
elt - the DiagramElement
key - the identifier of the property to set
value - the new value of the property

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.