Class AbstractConformanceDataType

java.lang.Object
ca.uhn.hl7v2.conf.classes.abs.AbstractConformanceDataType

public abstract class AbstractConformanceDataType extends Object
This class contains the functionality for a Data Type in the Conformance class set
Author:
James AgnewPaul BrohmanMitch DelachevrotiereShawn DyckCory Metcalf
  • Constructor Details

    • AbstractConformanceDataType

      public AbstractConformanceDataType(Primitive hapiPrimitive)
      Constructor for AbstractConformanceDataType
      Parameters:
      hapiPrimitive - the underlying primitive that the extending class represents
  • Method Details

    • getConstantValue

      public abstract String getConstantValue()
      This method returns the constant value for the extending class.
      Returns:
      the constant value
    • getMaxLength

      public abstract long getMaxLength()
      This method returns the Maximum length of the extending object.
      Returns:
      the maximum length
    • setValue

      protected void setValue(String value) throws ConfDataException
      This method validates the String value passed in to be no greater then the maximum allowable length for the extending class. If the String value is valid, this method will set the underlying HAPI class's value. If the data passed in is invalid for the given data type, a ConfDataException is thrown.
      Parameters:
      value - the value of the Data Type
      Throws:
      ConformanceException
      ConfDataException