001package org.hl7.fhir.r4.model.codesystems;
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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0
033
034
035import org.hl7.fhir.exceptions.FHIRException;
036
037public enum V3StyleType {
038
039        /**
040         * Defines font rendering characteristics
041         */
042        _FONTSTYLE, 
043        /**
044         * Render with a bold font
045         */
046        BOLD, 
047        /**
048         * Render with with some type of emphasis
049         */
050        EMPHASIS, 
051        /**
052         * Render italicized
053         */
054        ITALICS, 
055        /**
056         * Render with an underline font
057         */
058        UNDERLINE, 
059        /**
060         * Defines list rendering characteristics
061         */
062        _LISTSTYLE, 
063        /**
064         * Defines rendering characteristics for ordered lists
065         */
066        _ORDEREDLISTSTYLE, 
067        /**
068         * List is ordered using Arabic numerals: 1, 2, 3
069         */
070        ARABIC, 
071        /**
072         * List is ordered using big alpha characters: A, B, C
073         */
074        BIGALPHA, 
075        /**
076         * List is ordered using big Roman numerals: I, II, III
077         */
078        BIGROMAN, 
079        /**
080         * List is order using little alpha characters: a, b, c
081         */
082        LITTLEALPHA, 
083        /**
084         * List is ordered using little Roman numerals: i, ii, iii
085         */
086        LITTLEROMAN, 
087        /**
088         * Defines rendering characteristics for unordered lists
089         */
090        _UNORDEREDLISTSTYLE, 
091        /**
092         * List bullets are hollow discs
093         */
094        CIRCLE, 
095        /**
096         * List bullets are simple solid discs
097         */
098        DISC, 
099        /**
100         * List bullets are solid squares
101         */
102        SQUARE, 
103        /**
104         * Defines table cell rendering characteristics
105         */
106        _TABLERULESTYLE, 
107        /**
108         * Render cell with rule on bottom
109         */
110        BOTRULE, 
111        /**
112         * Render cell with left-sided rule
113         */
114        LRULE, 
115        /**
116         * Render cell with right-sided rule
117         */
118        RRULE, 
119        /**
120         * Render cell with rule on top
121         */
122        TOPRULE, 
123        /**
124         * added to help the parsers
125         */
126        NULL;
127        public static V3StyleType fromCode(String codeString) throws FHIRException {
128            if (codeString == null || "".equals(codeString))
129                return null;
130        if ("_FontStyle".equals(codeString))
131          return _FONTSTYLE;
132        if ("bold".equals(codeString))
133          return BOLD;
134        if ("emphasis".equals(codeString))
135          return EMPHASIS;
136        if ("italics".equals(codeString))
137          return ITALICS;
138        if ("underline".equals(codeString))
139          return UNDERLINE;
140        if ("_ListStyle".equals(codeString))
141          return _LISTSTYLE;
142        if ("_OrderedListStyle".equals(codeString))
143          return _ORDEREDLISTSTYLE;
144        if ("Arabic".equals(codeString))
145          return ARABIC;
146        if ("BigAlpha".equals(codeString))
147          return BIGALPHA;
148        if ("BigRoman".equals(codeString))
149          return BIGROMAN;
150        if ("LittleAlpha".equals(codeString))
151          return LITTLEALPHA;
152        if ("LittleRoman".equals(codeString))
153          return LITTLEROMAN;
154        if ("_UnorderedListStyle".equals(codeString))
155          return _UNORDEREDLISTSTYLE;
156        if ("Circle".equals(codeString))
157          return CIRCLE;
158        if ("Disc".equals(codeString))
159          return DISC;
160        if ("Square".equals(codeString))
161          return SQUARE;
162        if ("_TableRuleStyle".equals(codeString))
163          return _TABLERULESTYLE;
164        if ("Botrule".equals(codeString))
165          return BOTRULE;
166        if ("Lrule".equals(codeString))
167          return LRULE;
168        if ("Rrule".equals(codeString))
169          return RRULE;
170        if ("Toprule".equals(codeString))
171          return TOPRULE;
172        throw new FHIRException("Unknown V3StyleType code '"+codeString+"'");
173        }
174        public String toCode() {
175          switch (this) {
176            case _FONTSTYLE: return "_FontStyle";
177            case BOLD: return "bold";
178            case EMPHASIS: return "emphasis";
179            case ITALICS: return "italics";
180            case UNDERLINE: return "underline";
181            case _LISTSTYLE: return "_ListStyle";
182            case _ORDEREDLISTSTYLE: return "_OrderedListStyle";
183            case ARABIC: return "Arabic";
184            case BIGALPHA: return "BigAlpha";
185            case BIGROMAN: return "BigRoman";
186            case LITTLEALPHA: return "LittleAlpha";
187            case LITTLEROMAN: return "LittleRoman";
188            case _UNORDEREDLISTSTYLE: return "_UnorderedListStyle";
189            case CIRCLE: return "Circle";
190            case DISC: return "Disc";
191            case SQUARE: return "Square";
192            case _TABLERULESTYLE: return "_TableRuleStyle";
193            case BOTRULE: return "Botrule";
194            case LRULE: return "Lrule";
195            case RRULE: return "Rrule";
196            case TOPRULE: return "Toprule";
197            default: return "?";
198          }
199        }
200        public String getSystem() {
201          return "http://terminology.hl7.org/CodeSystem/v3-styleType";
202        }
203        public String getDefinition() {
204          switch (this) {
205            case _FONTSTYLE: return "Defines font rendering characteristics";
206            case BOLD: return "Render with a bold font";
207            case EMPHASIS: return "Render with with some type of emphasis";
208            case ITALICS: return "Render italicized";
209            case UNDERLINE: return "Render with an underline font";
210            case _LISTSTYLE: return "Defines list rendering characteristics";
211            case _ORDEREDLISTSTYLE: return "Defines rendering characteristics for ordered lists";
212            case ARABIC: return "List is ordered using Arabic numerals: 1, 2, 3";
213            case BIGALPHA: return "List is ordered using big alpha characters: A, B, C";
214            case BIGROMAN: return "List is ordered using big Roman numerals: I, II, III";
215            case LITTLEALPHA: return "List is order using little alpha characters: a, b, c";
216            case LITTLEROMAN: return "List is ordered using little Roman numerals: i, ii, iii";
217            case _UNORDEREDLISTSTYLE: return "Defines rendering characteristics for unordered lists";
218            case CIRCLE: return "List bullets are hollow discs";
219            case DISC: return "List bullets are simple solid discs";
220            case SQUARE: return "List bullets are solid squares";
221            case _TABLERULESTYLE: return "Defines table cell rendering characteristics";
222            case BOTRULE: return "Render cell with rule on bottom";
223            case LRULE: return "Render cell with left-sided rule";
224            case RRULE: return "Render cell with right-sided rule";
225            case TOPRULE: return "Render cell with rule on top";
226            default: return "?";
227          }
228        }
229        public String getDisplay() {
230          switch (this) {
231            case _FONTSTYLE: return "Font Style";
232            case BOLD: return "Bold Font";
233            case EMPHASIS: return "Emphasised Font";
234            case ITALICS: return "Italics Font";
235            case UNDERLINE: return "Underline Font";
236            case _LISTSTYLE: return "List Style";
237            case _ORDEREDLISTSTYLE: return "Ordered List Style";
238            case ARABIC: return "Arabic";
239            case BIGALPHA: return "Big Alpha";
240            case BIGROMAN: return "Big Roman";
241            case LITTLEALPHA: return "Little Alpha";
242            case LITTLEROMAN: return "Little Roman";
243            case _UNORDEREDLISTSTYLE: return "Unordered List Style";
244            case CIRCLE: return "Circle";
245            case DISC: return "Disc";
246            case SQUARE: return "Square";
247            case _TABLERULESTYLE: return "Table Rule Style";
248            case BOTRULE: return "Bottom Rule";
249            case LRULE: return "Left-sided rule";
250            case RRULE: return "Right-sided rule";
251            case TOPRULE: return "Top Rule";
252            default: return "?";
253          }
254    }
255
256
257}
258