ca.uhn.hl7v2.conf.classes.abs
Class AbstractConformanceDataType

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

public abstract class AbstractConformanceDataType
extends java.lang.Object

This class contains the functionality for a Data Type in the Conformance class set

Author:
James AgnewPaul BrohmanMitch DelachevrotiereShawn DyckCory Metcalf

Constructor Summary
AbstractConformanceDataType(Primitive hapiPrimitive)
          Constructor for AbstractConformanceDataType
 
Method Summary
abstract  java.lang.String getConstantValue()
          This method returns the constant value for the extending class.
abstract  long getMaxLength()
          This method returns the Maximum length of the extending object.
protected  void setValue(java.lang.String value)
          This method validates the String value passed in to be no greater then the maximum allowable length for the extending class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConformanceDataType

public AbstractConformanceDataType(Primitive hapiPrimitive)
Constructor for AbstractConformanceDataType

Parameters:
hapiPrimitive - the underlying primitive that the extending class represents
Method Detail

getConstantValue

public abstract java.lang.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(java.lang.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:
ConformaceException
ConfDataException


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