org.dicom4j.network.protocoldataunit.userinformationsubitems
Class ScpScuRoleSelection

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.userinformationsubitems.support.AbstractUserInformationSubItem
          extended by org.dicom4j.network.protocoldataunit.userinformationsubitems.ScpScuRoleSelection
All Implemented Interfaces:
ProtocolDataUnit

public class ScpScuRoleSelection
extends AbstractUserInformationSubItem

SCP/SCU Role Selection (SUB-ITEM)

Since:
0.0.1
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Constructor Summary
ScpScuRoleSelection()
           
ScpScuRoleSelection(String aSOPClassUID)
           
ScpScuRoleSelection(String aSOPClassUID, boolean aIsSCU, boolean aIsSCP)
           
 
Method Summary
 boolean getIsSCP()
           
 boolean getIsSCU()
           
 int getLength()
          Return the length of the Protocol Data Unit
 String getName()
          Return the name of the Protocol Data Unit
 String getSOPClassUID()
           
 UserInformationSubItemType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 void read(BinaryInputStream aStream, int aLength)
          Read the Protocol Data Unit from a stream
 void setIsSCP(boolean aIsSCP)
           
 void setIsSCU(boolean aIsSCU)
           
 void setSOPClassUID(String sOPClassUID)
           
 String toString()
          the ProtocolDataUnit as a string
 void write(BinaryOutputStream aStream)
          Write the Protocol Data Unit to a stream
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
checkStream, getSopClassRegistry, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScpScuRoleSelection

public ScpScuRoleSelection()

ScpScuRoleSelection

public ScpScuRoleSelection(String aSOPClassUID)

ScpScuRoleSelection

public ScpScuRoleSelection(String aSOPClassUID,
                           boolean aIsSCU,
                           boolean aIsSCP)
Method Detail

getIsSCP

public boolean getIsSCP()

getIsSCU

public boolean getIsSCU()

getLength

public int getLength()
Description copied from class: ProtocolDataUnit
Return the length of the Protocol Data Unit

Specified by:
getLength in interface ProtocolDataUnit
Specified by:
getLength in class ProtocolDataUnit
Returns:
the length

getName

public String getName()
Description copied from class: ProtocolDataUnit
Return the name of the Protocol Data Unit

Specified by:
getName in interface ProtocolDataUnit
Overrides:
getName in class ProtocolDataUnit
Returns:
the name

getSOPClassUID

public String getSOPClassUID()

getType

public UserInformationSubItemType getType()
Description copied from class: ProtocolDataUnit

return the type of the Protocol Data Unit

TODO change to ProtocolType

Specified by:
getType in interface ProtocolDataUnit
Specified by:
getType in class ProtocolDataUnit
Returns:
the type

read

public void read(BinaryInputStream aStream,
                 int aLength)
          throws DicomException,
                 IOException
Description copied from class: ProtocolDataUnit
Read the Protocol Data Unit from a stream

Specified by:
read in class ProtocolDataUnit
Throws:
DicomException
IOException

setIsSCP

public void setIsSCP(boolean aIsSCP)

setIsSCU

public void setIsSCU(boolean aIsSCU)

setSOPClassUID

public void setSOPClassUID(String sOPClassUID)

toString

public String toString()
Description copied from class: ProtocolDataUnit
the ProtocolDataUnit as a string

Specified by:
toString in interface ProtocolDataUnit
Overrides:
toString in class ProtocolDataUnit
Returns:
ProtocolDataUnit as string

write

public void write(BinaryOutputStream aStream)
           throws DicomException,
                  IOException
Description copied from class: ProtocolDataUnit
Write the Protocol Data Unit to a stream

Specified by:
write in class ProtocolDataUnit
Throws:
DicomException
IOException


Copyright © 2009 dicom4j. All Rights Reserved.