package foundation.icall; import foundation.util.Util; public enum ICallDirection { InBound, RemoteServer, RemoteDB, Unknown; public static ICallDirection parse(String value) { if (Util.isEmpty(value)) { return Unknown; } value = value.toLowerCase(); if ("input".equals(value)) { return InBound; } else if ("remoteserver".equals(value)) { return RemoteServer; } else if ("remotedb".equals(value)) { return RemoteDB; } return Unknown; } }