package com.vci.ubcs.omd.util;
|
|
import java.util.ArrayList;
|
|
public class Tool {
|
|
public static final String ALLOWNULL = "allowNull";
|
public static final String BTM = "btm";
|
public static final String ISFIXLEN = "isFixLen";
|
public static final String LENGTH = "length";
|
public static final String ENUMNAME = "enumName";
|
public static final String ACCURACY = "accuracy";
|
public static final String LINKTYPENAME = "linkTypeName";
|
public static final String VERSION = "version";
|
|
|
public static ArrayList<String> convertArrayToList(String[] array) {
|
ArrayList<String> list = new ArrayList();
|
|
for(int i = 0; i < array.length; ++i) {
|
list.add(array[i]);
|
}
|
|
return list;
|
}
|
|
public static String getOtherValueByType(String other, String type) {
|
String[] otherArray = other.split(";");
|
|
for(int i = 0; i < otherArray.length; ++i) {
|
String otherValue = otherArray[i];
|
if (otherValue.contains(type)) {
|
return otherValue.substring(otherValue.indexOf("=") + 2, otherValue.length());
|
}
|
}
|
|
return null;
|
}
|
}
|