public class UN extends PrimitiveDataType
This class override the equal method, to check whether some other object is "equal to" this one.
User can also create Data Type through DataElementFactory
| Constructor and Description |
|---|
UN()
Constructor for UN class.
|
UN(int iMinLength,
int iMaxLength,
java.lang.String strCLength)
Constructor for UN class which takes three argument and
sets the value in the respective member variable.
|
UN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo)
Constructor for UN class which takes four arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
int |
read(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
Read data from String and also it take care of repeated values of this DataType
|
boolean |
validate()
This validate function validates the data value object.
|
int |
write(IHL7Stream objIHL7Stream,
IDelimiter objIDelimiter)
Writes the unknown data to the stream from the byte buffer
This function writes the Data Value to the Stream
|
copy, getDataTypeName, getICLength, getIMaxLength, getIMinLength, getLength, getValue, isPrimitive, setICLength, setIMaxLength, setIMinLength, setValue, toStringpublic UN()
public UN(int iMinLength, int iMaxLength, java.lang.String strCLength)
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.public UN(int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo)
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.public int read(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
throws DelimiterMissingException,
InvalidDelimiterException,
InvalidDataTypeException,
java.io.IOException
read in interface IDataTyperead in class PrimitiveDataTypeobjIHL7Stream - Object of HL7StreamobjIDelimiter - object of class DelimiterDelimiterMissingException - - if Delimiter is absent.InvalidDelimiterException - - if Delimiter is not validjava.io.IOException - - if IO Exception fails.InvalidDataTypeExceptionpublic int write(IHL7Stream objIHL7Stream, IDelimiter objIDelimiter) throws DelimiterMissingException, java.io.IOException
write in interface IDataTypewrite in class PrimitiveDataTypeobjIHL7Stream - stream onto which the FD DataType is to serializedobjIDelimiter - object of class DelimiterDelimiterMissingException - thrown when Delimiter is missingjava.io.IOException - thrown when IO operation failspublic boolean validate()
validate in interface IDataTypevalidate in class PrimitiveDataTypepublic boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.