View Javadoc
1   package org.hl7.fhir.instance.model.api;
2   
3   /*
4    * #%L
5    * HAPI FHIR - Core Library
6    * %%
7    * Copyright (C) 2014 - 2018 University Health Network
8    * %%
9    * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   * 
13   *      http://www.apache.org/licenses/LICENSE-2.0
14   * 
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * #L%
21   */
22  
23  
24  
25  /*
26  Copyright (c) 2011+, HL7, Inc
27  All rights reserved.
28  
29  Redistribution and use in source and binary forms, with or without modification, 
30  are permitted provided that the following conditions are met:
31  
32   * Redistributions of source code must retain the above copyright notice, this 
33     list of conditions and the following disclaimer.
34   * Redistributions in binary form must reproduce the above copyright notice, 
35     this list of conditions and the following disclaimer in the documentation 
36     and/or other materials provided with the distribution.
37   * Neither the name of HL7 nor the names of its contributors may be used to 
38     endorse or promote products derived from this software without specific 
39     prior written permission.
40  
41  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
42  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
43  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
44  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
45  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
46  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
47  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
48  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
49  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
50  POSSIBILITY OF SUCH DAMAGE.
51  
52  */
53  
54  /**
55   * Interface to be implemented by all built-in FHIR enumerations (i.e. the
56   * actual FHIR-defined Java Enum will implement this interface) 
57   */
58  public interface IBaseFhirEnum {
59  
60    /**
61     * Get the XML/JSON representation for an enumerated value
62     * @return the XML/JSON representation
63     */
64    public String toCode();
65  
66  }