public class ERL extends CompositeDataType
This data type identifies the segment and its constituent where an error has occurred.
Represents an HL7 ERL data type. This data type has the following attributes:
1. Segment ID (ST)Required
2. Segment Sequence (NM)Required
3. Field Position (NM)Optional
4. Field Repetition (NM)Optional
5. Component Number (NM)Optional
6. Sub-Component Number (NM)Optional
This class provides accessors & mutators for the elements mentioned above. 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 |
|---|
ERL()
Default Constructor for ERL
|
ERL(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for ERL class which takes two arguments and
sets the value in the respective member variable.
|
ERL(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for ERL class which takes five arguments and
sets the value in the respective member variable.
|
ERL(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for ERL class which takes six arguments and
sets the value in the respective member variable.
|
ERL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for ERL class which takes four arguments and
sets the value in the respective member variable.
|
ERL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for ERL class which takes five 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.
|
NM |
getComponentNumber()
Returns Component Number
|
NM |
getFieldPosition()
Returns Field Position
|
NM |
getFieldRepetition()
Returns Field Repetition
|
ST |
getSegmentID()
Returns Segment ID
|
NM |
getSegmentSequence()
Returns Segment Sequence
|
NM |
getSubComponentNumber()
Returns Sub-Component Number
|
void |
setComponentNumber(NM objNM)
Sets the ComponentNumber.
|
void |
setComponentNumber(java.lang.String strComponentNumber)
Sets the ComponentNumber.
|
void |
setFieldPosition(NM objNM)
Sets the FieldPosition.
|
void |
setFieldPosition(java.lang.String strFieldPosition)
Sets the FieldPosition.
|
void |
setFieldRepetition(NM objNM)
Sets the FieldRepetition.
|
void |
setFieldRepetition(java.lang.String strFieldRepetition)
Sets the FieldRepetition.
|
void |
setSegmentId(ST objST)
Sets the SegmentId.
|
void |
setSegmentId(java.lang.String strSegmentId)
Sets the SegmentId.
|
void |
setSegmentSequence(NM objNM)
Sets the SegmentSequence.
|
void |
setSegmentSequence(java.lang.String strSegmentSequence)
Sets the SegmentSequence.
|
void |
setSubComponentNumber(NM objNM)
Sets the SubComponentNumber.
|
void |
setSubComponentNumber(java.lang.String strSubComponentNumber)
Sets the SubComponentNumber.
|
boolean |
validate()
The Method validates the Input value,and if validated properly then returns true.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, write, writeToXMLpublic ERL()
public ERL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public ERL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
throws InvalidComponentTypeException
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.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public ERL(int iComponentType, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public ERL(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public ERL(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.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.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setSegmentId(java.lang.String strSegmentId)
strSegmentId - Specifies the 3-letter name for the segment.public void setSegmentId(ST objST)
objST - Specifies the 3-letter name for the segment.public void setSegmentSequence(java.lang.String strSegmentSequence)
strSegmentSequence - Specifies the segment occurrence within the message.public void setSegmentSequence(NM objNM)
objNM - Specifies the segment occurrence within the message.public void setFieldPosition(java.lang.String strFieldPosition)
strFieldPosition - Specifies the number of the field within the segment.public void setFieldPosition(NM objNM)
objNM - Specifies the number of the field within the segment.public void setFieldRepetition(java.lang.String strFieldRepetition)
strFieldRepetition - Specifies the repetition number of the field.public void setFieldRepetition(NM objNM)
objNM - Specifies the repetition number of the field.public void setComponentNumber(java.lang.String strComponentNumber)
strComponentNumber - Specifies the number of the component within the field.public void setComponentNumber(NM objNM)
objNM - Specifies the number of the component within the field.public void setSubComponentNumber(java.lang.String strSubComponentNumber)
strSubComponentNumber - Specifies the number of the sub-component within the component.public void setSubComponentNumber(NM objNM)
objNM - Specifies the number of the sub-component within the component.public ST getSegmentID()
public NM getSegmentSequence()
public NM getFieldPosition()
public NM getFieldRepetition()
public NM getComponentNumber()
public NM getSubComponentNumber()
public boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypevalidate in class CompositeDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.