| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ReqComponentFieldTypes |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
| 3 | * Educational Community License, Version 2.0 (the "License"); you may | |
| 4 | * not use this file except in compliance with the License. You may | |
| 5 | * obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 8 | * | |
| 9 | * Unless required by applicable law or agreed to in writing, | |
| 10 | * software distributed under the License is distributed on an "AS IS" | |
| 11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| 12 | * or implied. See the License for the specific language governing | |
| 13 | * permissions and limitations under the License. | |
| 14 | */ | |
| 15 | ||
| 16 | package org.kuali.student.lum.statement.typekey; | |
| 17 | ||
| 18 | /** | |
| 19 | * <p>Requirement component types are used to map a dot notation field key | |
| 20 | * (e.g. kuali.reqComponent.field.type.cluSet) to a key without dot notation | |
| 21 | * (cluSet) since most template engines don't allow dot notation for template | |
| 22 | * variables because dot notations are used to get class properties or methods | |
| 23 | * (e.g. clu.getOfficialIdentifier().getShortName()).</p> | |
| 24 | * <p> | |
| 25 | * Some Common Template keys | |
| 26 | * <ul> | |
| 27 | * <li><code>kuali.reqComponent.field.type.clu</code> maps to <code>clu</code></li> | |
| 28 | * <li><code>kuali.reqComponent.field.type.cluSet</code> maps to <code>cluSet</code></li> | |
| 29 | * <li><code>kuali.reqComponent.field.type.value.positive.integer</code> maps to <code>value</code></li> | |
| 30 | * <li><code>kuali.reqComponent.field.type.operator</code> maps to <code>relationalOperator</code></li> | |
| 31 | * </ul> | |
| 32 | * Template: <code>Student must have completed all of $cluSet.getCluSetAsShortName()</code> | |
| 33 | * </p> | |
| 34 | */ | |
| 35 | 0 | public enum ReqComponentFieldTypes { |
| 36 | 0 | INTEGER_VALUE1_KEY("kuali.reqComponent.field.type.value.positive.integer"), |
| 37 | 0 | OPERATOR_KEY("kuali.reqComponent.field.type.operator"), |
| 38 | 0 | GPA_KEY("kuali.reqComponent.field.type.gpa"), |
| 39 | 0 | TOTAL_CREDIT_KEY("kuali.reqComponent.field.type.totalCredits"), |
| 40 | 0 | INCLUSION_FILTER_TYPE_KEY("kuali.reqComponent.field.type.inclusionFilter.type"), |
| 41 | 0 | INCLUSION_FILTER_VALUE_KEY("kuali.reqComponent.field.type.inclusionFilter.value"), |
| 42 | 0 | GRADE_TYPE_KEY("kuali.reqComponent.field.type.gradeType.id"), |
| 43 | 0 | GRADE_KEY("kuali.reqComponent.field.type.grade.id"), |
| 44 | 0 | ORGANIZATION_KEY("kuali.reqComponent.field.type.org.id"), |
| 45 | 0 | PERSON_KEY("kuali.reqComponent.field.type.person.id"), |
| 46 | 0 | DURATION_KEY("kuali.reqComponent.field.type.duration"), |
| 47 | 0 | DURATION_TYPE_KEY("kuali.reqComponent.field.type.durationType.id"), |
| 48 | 0 | CLU_KEY("kuali.reqComponent.field.type.clu.id"), |
| 49 | 0 | CLUSET_KEY("kuali.reqComponent.field.type.cluSet.id"), |
| 50 | 0 | COURSE_CLU_KEY("kuali.reqComponent.field.type.course.clu.id"), |
| 51 | 0 | COURSE_CLUSET_KEY("kuali.reqComponent.field.type.course.cluSet.id"), |
| 52 | 0 | PROGRAM_CLU_KEY("kuali.reqComponent.field.type.program.clu.id"), |
| 53 | 0 | PROGRAM_CLUSET_KEY("kuali.reqComponent.field.type.program.cluSet.id"), |
| 54 | 0 | TEST_CLU_KEY("kuali.reqComponent.field.type.test.clu.id"),//FIXME Why do we have test data in our code? |
| 55 | 0 | TEST_CLUSET_KEY("kuali.reqComponent.field.type.test.cluSet.id"); |
| 56 | ||
| 57 | private String id; | |
| 58 | ||
| 59 | 0 | ReqComponentFieldTypes(String id) { |
| 60 | 0 | this.id = id; |
| 61 | 0 | } |
| 62 | ||
| 63 | public String getId() { | |
| 64 | 0 | return this.id; |
| 65 | } | |
| 66 | // | |
| 67 | // public enum ValueDataType { | |
| 68 | // STRING, | |
| 69 | // INTEGER, | |
| 70 | // DOUBLE, | |
| 71 | // } | |
| 72 | } |