Trispark JDT
2.50.13

com.archimed.dicom.network
Class StatusCode

java.lang.Object
  extended by com.archimed.dicom.network.StatusCode

public class StatusCode
extends java.lang.Object

represents DICOM status codes as specified in Appendix C: Status Type Encoding op Part7 of the DICOM standard. This class has lookup methods for converting status code numbers into Status Codes that include the status class (success,warning,canceled,.... ) and a description.


Method Summary
static StatusCode forCFIND(int code)
          returns the status code instance for specific C-FIND response status codes.
static StatusCode forCMove(int code)
          returns the status code instance for specific C-MOVE response status codes.
 int getCode()
           
 java.lang.String getDescription()
          returns a description of the status code.
 boolean isCancel()
          returns true if the status code is in the 'cancel' class, false otherwise.
 boolean isFailure()
          returns true if the status code is in the 'failure' class, false otherwise.
 boolean isPending()
          returns true if the status code is in the 'pending' class, false otherwise.
 boolean isSuccess()
          returns true if the status code is in the 'success' class, false otherwise.
 boolean isUnknown()
          returns true if the status code class is unknown, false otherwise.
 boolean isWarning()
          returns true if the status code is in the 'warning' class, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSuccess

public boolean isSuccess()
returns true if the status code is in the 'success' class, false otherwise.

Returns:
boolean

isPending

public boolean isPending()
returns true if the status code is in the 'pending' class, false otherwise.

Returns:
boolean

isFailure

public boolean isFailure()
returns true if the status code is in the 'failure' class, false otherwise.

Returns:
boolean

isWarning

public boolean isWarning()
returns true if the status code is in the 'warning' class, false otherwise.

Returns:
boolean

isCancel

public boolean isCancel()
returns true if the status code is in the 'cancel' class, false otherwise.

Returns:
boolean

isUnknown

public boolean isUnknown()
returns true if the status code class is unknown, false otherwise.

Returns:
boolean

getDescription

public java.lang.String getDescription()
returns a description of the status code.

Returns:
String

forCFIND

public static StatusCode forCFIND(int code)
returns the status code instance for specific C-FIND response status codes.

Parameters:
code - int
Returns:
StatusCode

forCMove

public static StatusCode forCMove(int code)
returns the status code instance for specific C-MOVE response status codes.

Parameters:
code - int
Returns:
StatusCode

getCode

public int getCode()

Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.