Java 类org.apache.commons.collections.OrderedMap 实例源码

项目:Express4J    文件:RouterScanner.java   
private static Map<String,Class<?>> parseMethodParams(String str) {
    OrderedMap params = new ListOrderedMap();
    if (str.contains("(") && str.contains(")")) {
        String target = str.substring(str.indexOf("(") + 1, str.lastIndexOf(")"));
        String[] nameAndTypes = target.split(",");
        for (String nameAndType : nameAndTypes) {
            String[] paramWrapper = nameAndType.split(":");
            String name = paramWrapper[0];
            String type = paramWrapper[1];
            try {
                params.put(name,Class.forName(type));
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
        }
    }
    return params;
}
项目:OSCAR-ConCert    文件:OntarioMD.java   
public OrderedMap getDiseaseList(){
   OrderedMap map = new LinkedMap();
/*
 Disease Community Keyword 
 */ 
       map.put("Acne","Acne");
       map.put("AcuteBronchitis","Acute Bronchitis");
       map.put("AddictionMedicine","Addiction Medicine");
       map.put("Allergy","Allergy");
       map.put("AlzheimersDisease","Alzheimer's Disease");
       map.put("Andropause","Andropause");
       map.put("AnxietyDisorders","Anxiety Disorders");
       map.put("Appendicitis","Appendicitis");
       map.put("Asthma","Asthma");
       map.put("AtrialFibrillation","Atrial Fibrillation");
       map.put("AvianFlu","Avian Flu");
       map.put("BenignProstaticHyperplasia","Benign Prostatic Hyperplasia");
       map.put("BipolarDisorder","Bipolar Disorder");
       map.put("BreastCancer","Breast Cancer");
       map.put("CHF","CHF");
       map.put("COPD","COPD");
       map.put("CVA","CVA (Stroke)");

       map.put("Cholecystitis","Cholecystitis");
       map.put("ChronicPain","Chronic Pain");
       map.put("ColonCancer","Colon Cancer");
       map.put("Contraception","Contraception");
       map.put("CoronaryArteryDisease","Coronary Artery Disease");
       map.put("Depression","Depression");
       map.put("Diabetes","Diabetes");
       map.put("Dyslipidemia","Dyslipidemia");
       map.put("EatingDisorders","Eating Disorders");
       map.put("ErectileDysfunction","Erectile Dysfunction");
       map.put("GERD","GERD");
       map.put("HIVandAIDS","HIV and AIDS");
       map.put("Headache","Headache");
       map.put("Hepatitis","Hepatitis");
       map.put("Herpes","Herpes");
       map.put("Hypertension","Hypertension");
       map.put("Infertility","Infertility");
       map.put("InflammatoryBowelDisease","Inflammatory Bowel Disease");
       map.put("Influenza","Influenza");
       map.put("IrritableBowelSyndrome","Irritable Bowel Syndrome");
       map.put("LungCancer","Lung Cancer");
       map.put("Menopause","Menopause");
       map.put("Obesity","Obesity");
       map.put("Osteoporosis","Osteoporosis");
       map.put("OvarianCancer","Ovarian Cancer");
       map.put("PalliativeCare","Palliative Care");
       map.put("ParkinsonsDisease","Parkinson's Disease");
       map.put("ProstateCancer","Prostate Cancer");
       map.put("Psoriasis","Psoriasis");
       map.put("RheumatoidArthritis","Rheumatoid Arthritis/Autoimmune");
       map.put("SARS","SARS");
       map.put("STIs","STIs");
       map.put("Schizophrenia","Schizophrenia");
       map.put("Sinusitis","Sinusitis");
       map.put("SmokingCessation","Smoking Cessation");
       map.put("ThyroidDisorders","Thyroid Disorders");
       map.put("UrinaryIncontinence","Urinary Incontinence");
       map.put("WestNileVirus","West Nile Virus");
       return map;
  }
项目:oscar-old    文件:OntarioMD.java   
public OrderedMap getDiseaseList(){
   OrderedMap map = new LinkedMap();
/*
 Disease Community Keyword 
 */ 
       map.put("Acne","Acne");
       map.put("AcuteBronchitis","Acute Bronchitis");
       map.put("AddictionMedicine","Addiction Medicine");
       map.put("Allergy","Allergy");
       map.put("AlzheimersDisease","Alzheimer's Disease");
       map.put("Andropause","Andropause");
       map.put("AnxietyDisorders","Anxiety Disorders");
       map.put("Appendicitis","Appendicitis");
       map.put("Asthma","Asthma");
       map.put("AtrialFibrillation","Atrial Fibrillation");
       map.put("AvianFlu","Avian Flu");
       map.put("BenignProstaticHyperplasia","Benign Prostatic Hyperplasia");
       map.put("BipolarDisorder","Bipolar Disorder");
       map.put("BreastCancer","Breast Cancer");
       map.put("CHF","CHF");
       map.put("COPD","COPD");
       map.put("CVA","CVA (Stroke)");

       map.put("Cholecystitis","Cholecystitis");
       map.put("ChronicPain","Chronic Pain");
       map.put("ColonCancer","Colon Cancer");
       map.put("Contraception","Contraception");
       map.put("CoronaryArteryDisease","Coronary Artery Disease");
       map.put("Depression","Depression");
       map.put("Diabetes","Diabetes");
       map.put("Dyslipidemia","Dyslipidemia");
       map.put("EatingDisorders","Eating Disorders");
       map.put("ErectileDysfunction","Erectile Dysfunction");
       map.put("GERD","GERD");
       map.put("HIVandAIDS","HIV and AIDS");
       map.put("Headache","Headache");
       map.put("Hepatitis","Hepatitis");
       map.put("Herpes","Herpes");
       map.put("Hypertension","Hypertension");
       map.put("Infertility","Infertility");
       map.put("InflammatoryBowelDisease","Inflammatory Bowel Disease");
       map.put("Influenza","Influenza");
       map.put("IrritableBowelSyndrome","Irritable Bowel Syndrome");
       map.put("LungCancer","Lung Cancer");
       map.put("Menopause","Menopause");
       map.put("Obesity","Obesity");
       map.put("Osteoporosis","Osteoporosis");
       map.put("OvarianCancer","Ovarian Cancer");
       map.put("PalliativeCare","Palliative Care");
       map.put("ParkinsonsDisease","Parkinson's Disease");
       map.put("ProstateCancer","Prostate Cancer");
       map.put("Psoriasis","Psoriasis");
       map.put("RheumatoidArthritis","Rheumatoid Arthritis/Autoimmune");
       map.put("SARS","SARS");
       map.put("STIs","STIs");
       map.put("Schizophrenia","Schizophrenia");
       map.put("Sinusitis","Sinusitis");
       map.put("SmokingCessation","Smoking Cessation");
       map.put("ThyroidDisorders","Thyroid Disorders");
       map.put("UrinaryIncontinence","Urinary Incontinence");
       map.put("WestNileVirus","West Nile Virus");
       return map;
  }