Package ca.uhn.hl7v2.conf.classes.abs
Class AbstractConformanceDataType
java.lang.Object
ca.uhn.hl7v2.conf.classes.abs.AbstractConformanceDataType
This class contains the functionality for a Data Type in the Conformance class set
- Author:
James Agnew Paul Brohman Mitch Delachevrotiere Shawn Dyck Cory Metcalf
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractConformanceDataType(Primitive hapiPrimitive) Constructor for AbstractConformanceDataType -
Method Summary
Modifier and TypeMethodDescriptionabstract StringThis method returns the constant value for the extending class.abstract longThis method returns the Maximum length of the extending object.protected voidThis method validates theStringvalue passed in to be no greater then the maximum allowable length for the extending class.
-
Constructor Details
-
AbstractConformanceDataType
Constructor for AbstractConformanceDataType- Parameters:
hapiPrimitive- the underlying primitive that the extending class represents
-
-
Method Details
-
getConstantValue
This method returns the constant value for the extending class.- Returns:
- the constant value
-
getMaxLength
This method returns the Maximum length of the extending object.- Returns:
- the maximum length
-
setValue
This method validates theStringvalue passed in to be no greater then the maximum allowable length for the extending class. If theStringvalue 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:
ConformanceExceptionConfDataException
-