|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.export.util.XtendUtil
public final class XtendUtil
A utility class that provides functionality that can be accessed by xtend transformations.
Method Summary | |
---|---|
static void |
callMethod(Object instance,
String methodName,
Object... params)
This is a workaround method for xtend to solve the issue of missing methods, which are not really missing, but unknown to xtend. |
static void |
callStringMethod(Object instance,
String methodName,
String param)
See callMethod . |
static String |
generateName(String generatorName,
String namePrefix)
Generates a name for the given generator name using the prefix. |
static KEdgeLayout |
getEdgeLayout(KEdge edge)
Returns the edge layout for the given edge. |
static KShapeLayout |
getShapeLayout(KNode node)
Returns the shape layout for the given node. |
static void |
ogmlSetShapeBounds(ShapeType1 shape,
KShapeLayout shapeLayout)
Applies the bounds defined by a shape layout to an ogml shape. |
static void |
resetGenerator(String generatorName)
Resets the generator specified by the given name. |
static void |
resetGenerators()
Resets all name generators. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String generateName(String generatorName, String namePrefix)
generatorName
- the name of the generatornamePrefix
- a prefix for the generated name
public static void resetGenerator(String generatorName)
generatorName
- the generator namepublic static void resetGenerators()
public static void callMethod(Object instance, String methodName, Object... params)
instance
- the class instancemethodName
- the method nameparams
- the parameterspublic static void callStringMethod(Object instance, String methodName, String param)
callMethod
. This method is restricted on methods with a single string parameter.
instance
- the class instancemethodName
- the method nameparam
- the string parameterpublic static KShapeLayout getShapeLayout(KNode node)
node
- the node
public static KEdgeLayout getEdgeLayout(KEdge edge)
edge
- the edge
public static void ogmlSetShapeBounds(ShapeType1 shape, KShapeLayout shapeLayout)
shape
- the shapeshapeLayout
- the shape layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |