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 default: return "?"; 201 } 202 } 203 public String getSystem() { 204 return "http://terminology.hl7.org/CodeSystem/v3-styleType"; 205 } 206 public String getDefinition() { 207 switch (this) { 208 case _FONTSTYLE: return "Defines font rendering characteristics"; 209 case BOLD: return "Render with a bold font"; 210 case EMPHASIS: return "Render with with some type of emphasis"; 211 case ITALICS: return "Render italicized"; 212 case UNDERLINE: return "Render with an underline font"; 213 case _LISTSTYLE: return "Defines list rendering characteristics"; 214 case _ORDEREDLISTSTYLE: return "Defines rendering characteristics for ordered lists"; 215 case ARABIC: return "List is ordered using Arabic numerals: 1, 2, 3"; 216 case BIGALPHA: return "List is ordered using big alpha characters: A, B, C"; 217 case BIGROMAN: return "List is ordered using big Roman numerals: I, II, III"; 218 case LITTLEALPHA: return "List is order using little alpha characters: a, b, c"; 219 case LITTLEROMAN: return "List is ordered using little Roman numerals: i, ii, iii"; 220 case _UNORDEREDLISTSTYLE: return "Defines rendering characteristics for unordered lists"; 221 case CIRCLE: return "List bullets are hollow discs"; 222 case DISC: return "List bullets are simple solid discs"; 223 case SQUARE: return "List bullets are solid squares"; 224 case _TABLERULESTYLE: return "Defines table cell rendering characteristics"; 225 case BOTRULE: return "Render cell with rule on bottom"; 226 case LRULE: return "Render cell with left-sided rule"; 227 case RRULE: return "Render cell with right-sided rule"; 228 case TOPRULE: return "Render cell with rule on top"; 229 default: return "?"; 230 } 231 } 232 public String getDisplay() { 233 switch (this) { 234 case _FONTSTYLE: return "Font Style"; 235 case BOLD: return "Bold Font"; 236 case EMPHASIS: return "Emphasised Font"; 237 case ITALICS: return "Italics Font"; 238 case UNDERLINE: return "Underline Font"; 239 case _LISTSTYLE: return "List Style"; 240 case _ORDEREDLISTSTYLE: return "Ordered List Style"; 241 case ARABIC: return "Arabic"; 242 case BIGALPHA: return "Big Alpha"; 243 case BIGROMAN: return "Big Roman"; 244 case LITTLEALPHA: return "Little Alpha"; 245 case LITTLEROMAN: return "Little Roman"; 246 case _UNORDEREDLISTSTYLE: return "Unordered List Style"; 247 case CIRCLE: return "Circle"; 248 case DISC: return "Disc"; 249 case SQUARE: return "Square"; 250 case _TABLERULESTYLE: return "Table Rule Style"; 251 case BOTRULE: return "Bottom Rule"; 252 case LRULE: return "Left-sided rule"; 253 case RRULE: return "Right-sided rule"; 254 case TOPRULE: return "Top Rule"; 255 default: return "?"; 256 } 257 } 258 259 260}