public class DIMSEResponse extends DicomMessage
| Constructor and Description |
|---|
DIMSEResponse() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAffectedSOPClassUID()
Retrieves Affected SOP Class UID .
|
short |
getCommandDataSetType()
Retrieves DataSet type.
|
short |
getCommandField()
Retrieves Command Field.
|
int |
getCommandGroupLength()
Retrieves the Group Length .
|
java.lang.String |
getErrorComment()
Retrieves ErrorComment .
|
short |
getMessageIDBeingRespondedTo()
Retrieves Message ID Being Responded To.
|
ISingleCollection<ITag> |
getOffendingElement()
Retrieves the status of the response.
|
short |
getStatus()
Retrieves the status of the Response.
|
void |
setAffectedSOPClassUID(java.lang.String strAffectedSOPClassUID)
Sets Affected SOP Class UID .
|
void |
setCommandDataSetType(short shDataSetType)
This field indicates that no Data Set is present in the Message and shall be set to a value of 0101H.
|
void |
setCommandField(EnumCommandField enumCommandField)
Sets Command Field.
|
void |
setCommandGroupLength(int lCommandGroupLength)
Sets Group Length i.e The even number of bytes from the end of the value field to the beginning of the next group
|
void |
setErrorComment(EnumErrorComment enumErrorComment)
Sets ErrorComment .
|
void |
setMessageIDBeingRespondedTo(short shMessageIDBeingRespondedTo)
Sets Message ID Being Responded To.
|
void |
setOffendingElement(ISingleCollection<ITag> objITagCollection)
Sets collection of OffendingElements which does not support Dicom Protocol rules.
|
void |
setStatus(IStatus enumStatus)
This Indicates the status of the response.
|
void |
setStatus(short shStatus)
This Indicates the status of the response.
|
boolean |
validate()
Validates command set for their mandatory attributes which are common in all services response.
|
dispose, getCommandSet, getCommandType, getDataSet, getMaxNegotiationLength, getValue, setCommandSet, setDataSet, setDataSet, setMaxNegotiationLengthpublic void setCommandGroupLength(int lCommandGroupLength)
lGroupLength - value of group lengthpublic int getCommandGroupLength()
public void setAffectedSOPClassUID(java.lang.String strAffectedSOPClassUID)
strAffectedSOPClassUID - value of affected SOP Class UID.public java.lang.String getAffectedSOPClassUID()
public void setCommandField(EnumCommandField enumCommandField)
enumCommandField - the enum command fieldpublic short getCommandField()
public void setCommandDataSetType(short shDataSetType)
shDataSetType - value of DataSet type.public short getCommandDataSetType()
public void setMessageIDBeingRespondedTo(short shMessageIDBeingRespondedTo)
shMessageIDBeingRespondedTo - value of Message ID Being Responded To.public short getMessageIDBeingRespondedTo()
public void setStatus(IStatus enumStatus)
enumStatus - the enum statuspublic void setStatus(short shStatus)
short - the value of statuspublic short getStatus()
public void setOffendingElement(ISingleCollection<ITag> objITagCollection)
objITagCollection - collection of OffendingElementspublic ISingleCollection<ITag> getOffendingElement()
public void setErrorComment(EnumErrorComment enumErrorComment)
enumErrorComment - value of ErrorComment.public java.lang.String getErrorComment()
public boolean validate()
throws InvalidDICOMMessageException
validate in class DicomMessageInvalidDICOMMessageException - If validation of mandatory fields fails.