001/* 002 * Copyright 2005-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.osedu.org/licenses/ECL-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.coeus.common.api.ynq; 017 018 019public enum YnqConstant { 020 YES ("Y", "Yes"), 021 NO("N", "No"), 022 NA("X", "N/A"), 023 YES_NO("YN", "Yes,No"), 024 YES_NO_NA("YNX", "Yes,No,N/A"), 025 YES_NA("YX", "Yes,N/A"), 026 NO_NA("NX", "No,N/A"), 027 NONE("", "None"); 028 029 private final String code; 030 private final String description; 031 YnqConstant(String code, String description) { 032 this.code = code; 033 this.description = description; 034 } 035 036 public String code() 037 { 038 return code; 039 } 040 041 public String description() 042 { 043 return description; 044 } 045 046} 047