public abstract class AbstractConformanceDataType extends Object
Constructor and Description |
---|
AbstractConformanceDataType(Primitive hapiPrimitive)
Constructor for AbstractConformanceDataType
|
Modifier and Type | Method and Description |
---|---|
abstract 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(String value)
This method validates the
String value passed in to be no greater then the
maximum allowable length for the extending class. |
public AbstractConformanceDataType(Primitive hapiPrimitive)
hapiPrimitive
- the underlying primitive that the extending class representspublic abstract String getConstantValue()
public abstract long getMaxLength()
protected void setValue(String value) throws ConfDataException
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.value
- the value of the Data TypeConformaceException
ConfDataException
Copyright © 2001–2017 University Health Network. All rights reserved.