ca.uhn.hl7v2.model
Interface Primitive

All Superinterfaces:
java.io.Serializable, Type
All Known Implementing Classes:
AbstractPrimitive, DT, DT, DT, DT, DT, DT, DT, DT, DT, DTM, DTM, DTM, GenericPrimitive, ID, ID, ID, ID, ID, ID, ID, ID, ID, IS, IS, IS, IS, IS, IS, IS, IS, NULLDT, NULLDT, NULLDT, TM, TM, TM, TM, TM, TM, TM, TM, TM, TS, TSComponentOne, TSComponentOne, TSComponentOne, TSComponentOne, TSComponentOne

public interface Primitive
extends Type

Represents the category of HL7 data types that contain a single value (in other words have no subcomponents). Examples include ST and ID.

Author:
Bryan Tripp (bryan_tripp@sourceforge.net)

Method Summary
 java.lang.String getValue()
          Returns a String representation of the value of this field.
 void setValue(java.lang.String value)
          Sets the value of this field if the given value is legal in the context of the implementing class.
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parse
 

Method Detail

getValue

java.lang.String getValue()
Returns a String representation of the value of this field.


setValue

void setValue(java.lang.String value)
              throws DataTypeException
Sets the value of this field if the given value is legal in the context of the implementing class.

Throws:
DataTypeException - if the given value is not valid in this context.


Copyright © 2001-2011 University Health Network. All Rights Reserved.