001package org.hl7.fhir.r4.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum V3StyleType { 041 042 /** 043 * Defines font rendering characteristics 044 */ 045 _FONTSTYLE, 046 /** 047 * Render with a bold font 048 */ 049 BOLD, 050 /** 051 * Render with with some type of emphasis 052 */ 053 EMPHASIS, 054 /** 055 * Render italicized 056 */ 057 ITALICS, 058 /** 059 * Render with an underline font 060 */ 061 UNDERLINE, 062 /** 063 * Defines list rendering characteristics 064 */ 065 _LISTSTYLE, 066 /** 067 * Defines rendering characteristics for ordered lists 068 */ 069 _ORDEREDLISTSTYLE, 070 /** 071 * List is ordered using Arabic numerals: 1, 2, 3 072 */ 073 ARABIC, 074 /** 075 * List is ordered using big alpha characters: A, B, C 076 */ 077 BIGALPHA, 078 /** 079 * List is ordered using big Roman numerals: I, II, III 080 */ 081 BIGROMAN, 082 /** 083 * List is order using little alpha characters: a, b, c 084 */ 085 LITTLEALPHA, 086 /** 087 * List is ordered using little Roman numerals: i, ii, iii 088 */ 089 LITTLEROMAN, 090 /** 091 * Defines rendering characteristics for unordered lists 092 */ 093 _UNORDEREDLISTSTYLE, 094 /** 095 * List bullets are hollow discs 096 */ 097 CIRCLE, 098 /** 099 * List bullets are simple solid discs 100 */ 101 DISC, 102 /** 103 * List bullets are solid squares 104 */ 105 SQUARE, 106 /** 107 * Defines table cell rendering characteristics 108 */ 109 _TABLERULESTYLE, 110 /** 111 * Render cell with rule on bottom 112 */ 113 BOTRULE, 114 /** 115 * Render cell with left-sided rule 116 */ 117 LRULE, 118 /** 119 * Render cell with right-sided rule 120 */ 121 RRULE, 122 /** 123 * Render cell with rule on top 124 */ 125 TOPRULE, 126 /** 127 * added to help the parsers 128 */ 129 NULL; 130 public static V3StyleType fromCode(String codeString) throws FHIRException { 131 if (codeString == null || "".equals(codeString)) 132 return null; 133 if ("_FontStyle".equals(codeString)) 134 return _FONTSTYLE; 135 if ("bold".equals(codeString)) 136 return BOLD; 137 if ("emphasis".equals(codeString)) 138 return EMPHASIS; 139 if ("italics".equals(codeString)) 140 return ITALICS; 141 if ("underline".equals(codeString)) 142 return UNDERLINE; 143 if ("_ListStyle".equals(codeString)) 144 return _LISTSTYLE; 145 if ("_OrderedListStyle".equals(codeString)) 146 return _ORDEREDLISTSTYLE; 147 if ("Arabic".equals(codeString)) 148 return ARABIC; 149 if ("BigAlpha".equals(codeString)) 150 return BIGALPHA; 151 if ("BigRoman".equals(codeString)) 152 return BIGROMAN; 153 if ("LittleAlpha".equals(codeString)) 154 return LITTLEALPHA; 155 if ("LittleRoman".equals(codeString)) 156 return LITTLEROMAN; 157 if ("_UnorderedListStyle".equals(codeString)) 158 return _UNORDEREDLISTSTYLE; 159 if ("Circle".equals(codeString)) 160 return CIRCLE; 161 if ("Disc".equals(codeString)) 162 return DISC; 163 if ("Square".equals(codeString)) 164 return SQUARE; 165 if ("_TableRuleStyle".equals(codeString)) 166 return _TABLERULESTYLE; 167 if ("Botrule".equals(codeString)) 168 return BOTRULE; 169 if ("Lrule".equals(codeString)) 170 return LRULE; 171 if ("Rrule".equals(codeString)) 172 return RRULE; 173 if ("Toprule".equals(codeString)) 174 return TOPRULE; 175 throw new FHIRException("Unknown V3StyleType code '"+codeString+"'"); 176 } 177 public String toCode() { 178 switch (this) { 179 case _FONTSTYLE: return "_FontStyle"; 180 case BOLD: return "bold"; 181 case EMPHASIS: return "emphasis"; 182 case ITALICS: return "italics"; 183 case UNDERLINE: return "underline"; 184 case _LISTSTYLE: return "_ListStyle"; 185 case _ORDEREDLISTSTYLE: return "_OrderedListStyle"; 186 case ARABIC: return "Arabic"; 187 case BIGALPHA: return "BigAlpha"; 188 case BIGROMAN: return "BigRoman"; 189 case LITTLEALPHA: return "LittleAlpha"; 190 case LITTLEROMAN: return "LittleRoman"; 191 case _UNORDEREDLISTSTYLE: return "_UnorderedListStyle"; 192 case CIRCLE: return "Circle"; 193 case DISC: return "Disc"; 194 case SQUARE: return "Square"; 195 case _TABLERULESTYLE: return "_TableRuleStyle"; 196 case BOTRULE: return "Botrule"; 197 case LRULE: return "Lrule"; 198 case RRULE: return "Rrule"; 199 case TOPRULE: return "Toprule"; 200 case NULL: return null; 201 default: return "?"; 202 } 203 } 204 public String getSystem() { 205 return "http://terminology.hl7.org/CodeSystem/v3-styleType"; 206 } 207 public String getDefinition() { 208 switch (this) { 209 case _FONTSTYLE: return "Defines font rendering characteristics"; 210 case BOLD: return "Render with a bold font"; 211 case EMPHASIS: return "Render with with some type of emphasis"; 212 case ITALICS: return "Render italicized"; 213 case UNDERLINE: return "Render with an underline font"; 214 case _LISTSTYLE: return "Defines list rendering characteristics"; 215 case _ORDEREDLISTSTYLE: return "Defines rendering characteristics for ordered lists"; 216 case ARABIC: return "List is ordered using Arabic numerals: 1, 2, 3"; 217 case BIGALPHA: return "List is ordered using big alpha characters: A, B, C"; 218 case BIGROMAN: return "List is ordered using big Roman numerals: I, II, III"; 219 case LITTLEALPHA: return "List is order using little alpha characters: a, b, c"; 220 case LITTLEROMAN: return "List is ordered using little Roman numerals: i, ii, iii"; 221 case _UNORDEREDLISTSTYLE: return "Defines rendering characteristics for unordered lists"; 222 case CIRCLE: return "List bullets are hollow discs"; 223 case DISC: return "List bullets are simple solid discs"; 224 case SQUARE: return "List bullets are solid squares"; 225 case _TABLERULESTYLE: return "Defines table cell rendering characteristics"; 226 case BOTRULE: return "Render cell with rule on bottom"; 227 case LRULE: return "Render cell with left-sided rule"; 228 case RRULE: return "Render cell with right-sided rule"; 229 case TOPRULE: return "Render cell with rule on top"; 230 case NULL: return null; 231 default: return "?"; 232 } 233 } 234 public String getDisplay() { 235 switch (this) { 236 case _FONTSTYLE: return "Font Style"; 237 case BOLD: return "Bold Font"; 238 case EMPHASIS: return "Emphasised Font"; 239 case ITALICS: return "Italics Font"; 240 case UNDERLINE: return "Underline Font"; 241 case _LISTSTYLE: return "List Style"; 242 case _ORDEREDLISTSTYLE: return "Ordered List Style"; 243 case ARABIC: return "Arabic"; 244 case BIGALPHA: return "Big Alpha"; 245 case BIGROMAN: return "Big Roman"; 246 case LITTLEALPHA: return "Little Alpha"; 247 case LITTLEROMAN: return "Little Roman"; 248 case _UNORDEREDLISTSTYLE: return "Unordered List Style"; 249 case CIRCLE: return "Circle"; 250 case DISC: return "Disc"; 251 case SQUARE: return "Square"; 252 case _TABLERULESTYLE: return "Table Rule Style"; 253 case BOTRULE: return "Bottom Rule"; 254 case LRULE: return "Left-sided rule"; 255 case RRULE: return "Right-sided rule"; 256 case TOPRULE: return "Top Rule"; 257 case NULL: return null; 258 default: return "?"; 259 } 260 } 261 262 263}