package application.enums; import application.res.*; public enum EntryType { EXPORT_DATE("ExportDate", Text.DESC_EXPORT_DATE), JOB("Occupation", ""), DATE_OF_BIRTH("DateOfBirth", Text.DESC_DATE_OF_BIRTH), BIOLOGICAL_SEX("BiologicalSex", Text.DESC_BIOLOGICAL_SEX), SKIN_TYPE("SkinType", Text.DESC_SKIN_TYPE), BLOOD_TYPE("BloodType", Text.DESC_BLOOD_TYPE), RECORD("Record", Text.DESC_RECORDS), REGION_CODE("RegionCode", Text.DESC_REGION_CODE), // CORRELATION("Correlation", Text.DESC_CORRELATIONS), //excluded to reduce complexity. WORKOUT("Workout", Text.DESC_WORKOUT), ACTIVITY_SUMMARY("ActivitySummary", Text.DESC_ACTIVITY_SUM), // CLINICAL_RECORD("ClinicalRecord", Text.DESC_CLIN_RECORD), //excluded because it might be too explicit // AUDIOGRAM("Audiogram", Text.DESC_AUDIOGRAM), //excluded because of missing documentation. // SENSITIVITY_POINT("SensitivityPoint",Text.DESC_SENS_POINT); //excluded because of missing documentation. ; /** All values which will produce own files, might have subelements **/ public static EntryType[] ALL_SEPARATE_ONES = { RECORD, WORKOUT, ACTIVITY_SUMMARY }; /** * All values which will be written in the ME File, each contains only one value * (except date of birth which was split) **/ public static EntryType[] ALL_ME_ONES = { EXPORT_DATE, REGION_CODE,DATE_OF_BIRTH, BIOLOGICAL_SEX, SKIN_TYPE, BLOOD_TYPE }; /** * These values will be written into the ME file and originate from the me tag **/ public static EntryType[] ALL_ORIGINAL_ME_ONES = { DATE_OF_BIRTH, BIOLOGICAL_SEX, SKIN_TYPE, BLOOD_TYPE }; /** * These values will be written into the ME file, but they don't originate from * the me tag **/ public static EntryType[] ALL_TEMPERED_ME_ONES = { EXPORT_DATE, REGION_CODE }; /** Value of the enum **/ private final String value; /** Description String **/ private final String desc; EntryType(String value, String desc) { this.value = value; this.desc = desc; } /** * Returns the value or name of the element. Is readable for Users and can be * used for XML mapping(not for ME infos and regionCode). * * @return The said String. */ public String getValue() { return this.value; } /** * Returns the description for the element which is a text that explains the * element and its value. It's the help text. * * @return The said String. */ public String getDesc() { return this.desc; } }