public class JCC extends CompositeDataType
This data type specifies person's job code/class.
Represents an HL7 JCC data type. This data type has the following attributes:
1. Job Code (CWE)Optional
2. Job Class (CWE)Optional
3. Job Description Text (TX)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 |
|---|
JCC()
Default Constructor for JCC
|
JCC(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for JCC class which takes two arguments and
sets the value in the respective member variable.
|
JCC(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for JCC class which takes five arguments and
sets the value in the respective member variable.
|
JCC(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for JCC class which takes six arguments and
sets the value in the respective member variable.
|
JCC(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for JCC class which takes four arguments and
sets the value in the respective member variable.
|
JCC(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for JCC 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.
|
CWE |
getJobClass()
Returns Job Class
|
CWE |
getJobCode()
Returns Job Code
|
TX |
getJobDescriptionText()
Returns Job Description Text
|
void |
setJobClass(CWE objCWE)
Sets the JobClass.
|
void |
setJobClass(java.lang.String strJobClass)
Sets the JobClass.
|
void |
setJobCode(CWE objCWE)
Sets the JobCode.
|
void |
setJobCode(java.lang.String strJobCode)
Sets the JobCode.
|
void |
setJobDescriptionText(java.lang.String strJobDescriptionText)
Sets the JobDescriptionText.
|
void |
setJobDescriptionText(TX objTX)
Sets the JobDescriptionText.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic JCC()
public JCC(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 JCC(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 JCC(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 JCC(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 JCC(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 setJobCode(java.lang.String strJobCode)
strJobCode - contains the persons job code.public void setJobClass(java.lang.String strJobClass)
strJobClass - contains the persons employee classification.public void setJobCode(CWE objCWE)
objCWE - contains the person's job code.public void setJobClass(CWE objCWE)
objCWE - contains the person's employee classification.public void setJobDescriptionText(java.lang.String strJobDescriptionText)
strJobDescriptionText - contains the text of the job description.public void setJobDescriptionText(TX objTX)
objTX - contains the text of the job description.public CWE getJobCode()
public CWE getJobClass()
public TX getJobDescriptionText()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.