public static String JudgeSubject(String input, ArrayList<String> dic) { if (Cause.isCause(input, dic) != null) { return Cause.isCause(input, dic); } else if (Complication.isComplication(input) != null) { return Complication.isComplication(input); } else if (Contraindication.isContraindication(input) != null) { return Contraindication.isContraindication(input); } else if (Examination.isExamination(input, dic) != null) { return Examination.isExamination(input, dic); } else if (Indication.isIndication(input, dic) != null) { return Indication.isIndication(input, dic); } else if (Prevention.isPrevention(input, dic) != null) { return Prevention.isPrevention(input, dic); } else { return null; } }
public static QuestionType judgeType(String input, ArrayList<String> dic) { if (Cause.isCause(input, dic) != null) { return QuestionType.isCause; } else if (Complication.isComplication(input) != null) { return QuestionType.isComplication; } else if (Contraindication.isContraindication(input) != null) { return QuestionType.isContraindication; } else if (Examination.isExamination(input, dic) != null) { return QuestionType.isExamination; } else if (Indication.isIndication(input, dic) != null) { return QuestionType.isIndication; } else if (Prevention.isPrevention(input, dic) != null) { return QuestionType.isPrevention; } else if (Complain_1.isComplain_1(input) != null) { return QuestionType.isComplain_1; } else { return QuestionType.isComplain_2; } }