org.hl7.meta
Class Conformance

java.lang.Object
  extended by org.hl7.meta.Conformance

public class Conformance
extends java.lang.Object

A type safe enumeration of conformance flags for HL7 v3 attributes.

Author:
Skirmantas Kligys (skirmis@hotmail.com)

Field Summary
static Conformance NOT_PERMITTED
          Conformance flag NP (Not Permitted).
static Conformance REQUIRED
          Conformance flag R (Required).
 
Method Summary
static Conformance create(java.lang.String s)
          Looks up conformance by its string representation.
 java.lang.String toString()
          Converts conofrmance to its string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUIRED

public static Conformance REQUIRED
Conformance flag R (Required).


NOT_PERMITTED

public static Conformance NOT_PERMITTED
Conformance flag NP (Not Permitted).

Method Detail

create

public static Conformance create(java.lang.String s)
Looks up conformance by its string representation.

Parameters:
s - the string to look up
Throws:
java.lang.IllegalArgumentException - if the string cannot be looked up

toString

public java.lang.String toString()
Converts conofrmance to its string representation.

Overrides:
toString in class java.lang.Object
Returns:
the string representation
Throws:
java.lang.IllegalArgumentException - on internal error