Interface Primitive

All Superinterfaces:
Serializable, Type, Visitable
All Known Implementing Classes:
AbstractPrimitive, AbstractTextPrimitive, DT, DT, DT, DT, DT, DT, DT, DT, DT, DT, DT, DT, DT, DTM, DTM, DTM, DTM, DTM, DTM, DTM, GenericPrimitive, ID, ID, ID, ID, ID, ID, ID, ID, ID, ID, ID, ID, ID, IDWithNamespace, IS, IS, IS, IS, IS, IS, IS, IS, IS, IS, IS, IS, ISWithNamespace, NULLDT, NULLDT, NULLDT, NULLDT, NULLDT, NULLDT, NULLDT, SNM, SNM, SNM, SNM, TM, TM, TM, TM, 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 Details

    • getValue

      Returns a String representation of the value of this field.
      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.
      Parameters:
      value - the value to be set
      Throws:
      DataTypeException - if the given value is not valid in this context.