ca.uhn.hl7v2.model
Interface Primitive

All Superinterfaces:
Serializable, Type
All Known Implementing Classes:
AbstractPrimitive, AbstractTextPrimitive, DT, DT, DT, DT, DT, DT, DT, DT, DT, DTM, DTM, DTM, GenericPrimitive, ID, ID, ID, ID, ID, ID, ID, ID, ID, IDWithNamespace, IS, IS, IS, IS, IS, IS, IS, IS, ISWithNamespace, 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
 String getValue()
          Returns a String representation of the value of this field.
 void setValue(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

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


setValue

void setValue(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-2012 University Health Network. All Rights Reserved.