001package org.hl7.fhir.instance.model.valuesets; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2 033 034 035public enum V3TableFrame { 036 037 /** 038 * above 039 */ 040 ABOVE, 041 /** 042 * below 043 */ 044 BELOW, 045 /** 046 * border 047 */ 048 BORDER, 049 /** 050 * box 051 */ 052 BOX, 053 /** 054 * hsides 055 */ 056 HSIDES, 057 /** 058 * lhs 059 */ 060 LHS, 061 /** 062 * rhs 063 */ 064 RHS, 065 /** 066 * void 067 */ 068 VOID, 069 /** 070 * vsides 071 */ 072 VSIDES, 073 /** 074 * added to help the parsers 075 */ 076 NULL; 077 public static V3TableFrame fromCode(String codeString) throws Exception { 078 if (codeString == null || "".equals(codeString)) 079 return null; 080 if ("above".equals(codeString)) 081 return ABOVE; 082 if ("below".equals(codeString)) 083 return BELOW; 084 if ("border".equals(codeString)) 085 return BORDER; 086 if ("box".equals(codeString)) 087 return BOX; 088 if ("hsides".equals(codeString)) 089 return HSIDES; 090 if ("lhs".equals(codeString)) 091 return LHS; 092 if ("rhs".equals(codeString)) 093 return RHS; 094 if ("void".equals(codeString)) 095 return VOID; 096 if ("vsides".equals(codeString)) 097 return VSIDES; 098 throw new Exception("Unknown V3TableFrame code '"+codeString+"'"); 099 } 100 public String toCode() { 101 switch (this) { 102 case ABOVE: return "above"; 103 case BELOW: return "below"; 104 case BORDER: return "border"; 105 case BOX: return "box"; 106 case HSIDES: return "hsides"; 107 case LHS: return "lhs"; 108 case RHS: return "rhs"; 109 case VOID: return "void"; 110 case VSIDES: return "vsides"; 111 default: return "?"; 112 } 113 } 114 public String getSystem() { 115 return "http://hl7.org/fhir/v3/TableFrame"; 116 } 117 public String getDefinition() { 118 switch (this) { 119 case ABOVE: return "above"; 120 case BELOW: return "below"; 121 case BORDER: return "border"; 122 case BOX: return "box"; 123 case HSIDES: return "hsides"; 124 case LHS: return "lhs"; 125 case RHS: return "rhs"; 126 case VOID: return "void"; 127 case VSIDES: return "vsides"; 128 default: return "?"; 129 } 130 } 131 public String getDisplay() { 132 switch (this) { 133 case ABOVE: return "above"; 134 case BELOW: return "below"; 135 case BORDER: return "border"; 136 case BOX: return "box"; 137 case HSIDES: return "hsides"; 138 case LHS: return "lhs"; 139 case RHS: return "rhs"; 140 case VOID: return "void"; 141 case VSIDES: return "vsides"; 142 default: return "?"; 143 } 144 } 145 146 147} 148