package foundation.io.object;
|
|
public enum IOActionType {
|
|
DataName, Code, State, Dictionary;
|
|
public static IOActionType parse(String typeCode) {
|
typeCode = typeCode.toLowerCase();
|
|
if (typeCode.startsWith("dictionary.")) {
|
return Dictionary;
|
}
|
if (typeCode.startsWith("state.")) {
|
return State;
|
}
|
if (typeCode.startsWith("code.")) {
|
return Code;
|
}
|
|
return DataName;
|
}
|
}
|