public abstract class CompositeDataType extends java.lang.Object implements IDataType
| Constructor and Description |
|---|
CompositeDataType(IDataTypeKey objIDataTypeKey)
constructor for the Class CompositeDataType
|
CompositeDataType(IDataTypeKey objIDataTypeKey,
int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for CompositeDataType which takes three arguments and
sets the value in the respective member variable.
|
CompositeDataType(IDataTypeKey objIDataTypeKey,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for CompositeDataType which takes five arguments and
sets the value in the respective member variable.
|
CompositeDataType(IDataTypeKey objIDataTypeKey,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for CompositeDataType which takes six arguments and
sets the value in the respective member variable.
|
CompositeDataType(IDataTypeKey objIDataTypeKey,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for CompositeDataType which takes six arguments and
sets the value in the respective member variable.
|
CompositeDataType(IDataTypeKey objIDataTypeKey,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for CompositeDataType which takes seven arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(IDataType objDataType,
IDelimiter objDelimiter)
This will create replicate of existing Data Type.
|
void |
dumpDataType(IHL7Stream objIHL7Stream,
IDelimiter objIDelimiter,
int iLevel)
Serializes Composite Data Type information like it name, Attribute name and its values.
|
IMultiValuedPairedCollection<java.lang.Integer,IDataType> |
getAttributes()
Gets The Attribute List of Composite Datatype.
|
IDataTypeKey |
getDataTypeName()
This method returns the name of Data Type.
|
int |
getLength()
This will return the length of DataType.
|
java.lang.Object |
getValue()
This will return the object.
|
boolean |
isPrimitive()
This method returns the state for Data Type whether it
is primitive Data Type or composite DataType.
|
int |
read(java.lang.String strAttributeData,
IDelimiter objIDelimiter)
Read data from string
|
void |
setValue(java.lang.Object obj)
This sets the object value on DataType.
|
boolean |
validate()
Validates the composite data type for its required components.
|
int |
write(IHL7Stream objIHL7Stream,
IDelimiter objIDelimiter)
Method writes the data to the Stream.
|
int |
writeToXML(javax.xml.stream.XMLEventWriter eventWriter)
Method writes the data to the Stream.
|
public CompositeDataType(IDataTypeKey objIDataTypeKey)
public CompositeDataType(IDataTypeKey objIDataTypeKey, int iMinLength, int iMaxLength, java.lang.String strCLength, int iComponentType)
objIDataTypeKey - object of IDataTypeKey.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.public CompositeDataType(IDataTypeKey objIDataTypeKey, int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, int iComponentType)
iTableNo - integer value of Table no.objIDataTypeKey - object of IDataTypeKey.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.public CompositeDataType(IDataTypeKey objIDataTypeKey, int iComponentType, IDataTypeMap objIDataTypeMap)
iTableNo - integer value of Table no.objIDataTypeKey - object of IDataTypeKey.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.objIDataTypeMap - object of DataTypeMappublic CompositeDataType(IDataTypeKey objIDataTypeKey, int iMinLength, int iMaxLength, java.lang.String strCLength, int iComponentType, IDataTypeMap objIDataTypeMap)
iTableNo - integer value of Table no.objIDataTypeKey - object of IDataTypeKey.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.objIDataTypeMap - object of DataTypeMappublic CompositeDataType(IDataTypeKey objIDataTypeKey, int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, int iComponentType, IDataTypeMap objIDataTypeMap)
iTableNo - integer value of Table no.objIDataTypeKey - object of IDataTypeKey.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.objIDataTypeMap - object of DataTypeMappublic IDataTypeKey getDataTypeName()
getDataTypeName in interface IDataTypepublic int write(IHL7Stream objIHL7Stream, IDelimiter objIDelimiter) throws DelimiterMissingException, java.io.IOException
write in interface IDataTypeobjIHL7Stream - Object of HL7StreamobjIDelimiter - Object of class DelimiterDelimiterMissingException - - if Delimiter is absent.java.io.IOException - - if IO operation failspublic int writeToXML(javax.xml.stream.XMLEventWriter eventWriter)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
eventWriter - Object of XMLEventWriterjava.io.IOException - - if IO operation failsjavax.xml.stream.XMLStreamExceptionpublic int read(java.lang.String strAttributeData,
IDelimiter objIDelimiter)
throws DelimiterMissingException,
InvalidDelimiterException,
InvalidDataTypeException,
java.io.IOException
read in interface IDataTypestrAttributeData - String of segmentobjIDelimiter - object of class DelimiterDelimiterMissingException - - if Delimiter is absent.InvalidDelimiterException - - if Delimiter is not validjava.io.IOException - - if IO operation fails.InvalidDataTypeExceptionpublic boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public java.lang.Object getValue()
public IMultiValuedPairedCollection<java.lang.Integer,IDataType> getAttributes()
public int getLength()
public void setValue(java.lang.Object obj)
public boolean isPrimitive()
isPrimitive in interface IDataTypepublic void copy(IDataType objDataType, IDelimiter objDelimiter) throws java.io.IOException
objDataType - object of Data Type.objDelimiter - object of Delimiter.java.io.IOException - - if IO operation fails.public void dumpDataType(IHL7Stream objIHL7Stream, IDelimiter objIDelimiter, int iLevel) throws DumpException, java.io.IOException
objHL7Stream - Object of IHL7StreamobjDelimiter - Object of IDelimiteriLevel - integer shows level of an attribute.DumpException - Signals that dump operation is failedjava.io.IOException - Signals that an I/O exception of some sort has occurred.