com.bell.mf.repository.ParameterName Maven / Gradle / Ivy
package com.bell.mf.repository;
import java.util.ArrayList;
import java.util.List;
/**
* 支持的参数名
* @author bell.zhouxiaobing
* @since 1.2
*/
public enum ParameterName {
DEVICE_ID("deviceId"), MESSAGE_FRAME("messageFrame"), MESSAGE("message"), SYS_DATE("sysDate");
String name;
private ParameterName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public static List getAllName() {
List result = new ArrayList();
ParameterName[] values = ParameterName.values();
for (int i = 0; i < values.length; i++) {
result.add(values[i].getName());
}
return result;
}
}