public class Utils extends Object
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
center(Window w,
int minXDiffFromMax,
int minYDiffFromMax)
设置窗口位于屏幕的中心位置
|
static String |
filterNull(String val) |
static List |
findPropertyFiles()
获得属性文件列表
|
static String |
generateUUID()
生成UUID
|
static Color |
getColor(String col)
Returns the color parsed from the given string.
|
static Set |
getEndDescriptions(ProcessEditor pe)
Returns the set of descriptions for End elements of given editor's graph.
|
static int |
getIndexofArray(String[] array,
String src) |
static Set |
getSplitOrJoinActivities(Set acts,
int sOrJ)
Returns the set of (XML) activities that have split or join.
|
static Set |
getStartDescriptions(ProcessEditor pe)
Returns the set of description for Start elements of given editor's
graph.
|
static String |
getUnqualifiedClassName(Class cls)
Returns the class name without package.
|
static boolean |
hasCircularTransitions(Set transitions) |
static boolean |
hasConnectedEndBubble(Activity act) |
static boolean |
isEndingActivity(Activity act) |
static boolean |
isExistedInArray(Object[] array,
Object src) |
static boolean |
isExistedInArray(String[] array,
String src) |
static boolean |
isExtendedAttributeExisted(Node parent,
String name)
判断指定名称得扩展属性是否存在
|
static boolean |
isInt(String sValue)
验证输入字符串是否为int
|
static boolean |
isNumber(String sValue)
验证输入字符串是否为数字
|
static boolean |
isRoutingTransition(Map attributes)
判断是否是自适应路由
|
static boolean |
isStartingActivity(Activity act) |
static void |
printStrings(String[] s)
Used for debug only
|
static void |
toChildXML(Node parent,
String key,
String typeName,
String value) |
static String[] |
tokenize(String input,
String boundary)
Take the given string and chop it up into a series of strings on given
boundries.
|
public static String[] tokenize(String input, String boundary)
public static String getUnqualifiedClassName(Class cls)
public static Set getStartDescriptions(ProcessEditor pe)
pe - The editor.public static Set getEndDescriptions(ProcessEditor pe)
pe - The editor.public static boolean hasConnectedEndBubble(Activity act)
public static boolean hasCircularTransitions(Set transitions)
public static boolean isStartingActivity(Activity act)
public static boolean isEndingActivity(Activity act)
public static Color getColor(String col)
col - The string representation of wanted color.public static Set getSplitOrJoinActivities(Set acts, int sOrJ)
acts - The activities graph objects that are checked if their XML
object have split or join, depending on the second parameter.sOrJ - if 0, activity is checked for split, otherwise it is checked
for joinpublic static void printStrings(String[] s)
public static boolean isRoutingTransition(Map attributes)
attributes - public static void center(Window w, int minXDiffFromMax, int minYDiffFromMax)
w - minXDiffFromMax - minYDiffFromMax - public static List findPropertyFiles()
public static String generateUUID()
public static boolean isNumber(String sValue)
sValue - public static boolean isInt(String sValue)
sValue - public static boolean isExtendedAttributeExisted(Node parent, String name)
parent - 扩展属性节点name - 指定扩展属性的名称Copyright © 2023 onecode. All rights reserved.