/** * Get ConstraintOp for given operation code. * @param operationCode operation as string * @return ConstraintOp if operation code is valid else null */ public static ConstraintOp getConstraintOp(String operationCode) { if (operationCode == null) { return null; } String opCode = operationCode.trim().toUpperCase(); for (ConstraintOp op : values) { if (op.getName().equalsIgnoreCase(opCode)) { return op; } } return null; }
/** * Get ConstraintOp for given operation code. * @param operationCode operation as string * @return ConstraintOp if operation code is valid else null */ public static ConstraintOp getConstraintOp(String operationCode) { if (operationCode == null) { return null; } String opCode = operationCode.trim().toUpperCase(); for (ConstraintOp op : values) { if (op.getName().equalsIgnoreCase(opCode)) { return op; } } return null; }