jdcm
Class DicomGroup

java.lang.Object
  extended by jdcm.DicomGroup

public final class DicomGroup
extends java.lang.Object

This class encapsulates a group of data elements. A group is a set of data elements which have the same group number in their (group, element) - pair.

See Also:
DicomSet, DicomElement

Constructor Summary
DicomGroup(int group)
          Constructs an empty group set.
 
Method Summary
 java.util.Iterator<DicomElement> getDicomElements()
          Retrieve an iterator of data elements in this data set.
 DicomElement getElement(int element)
          Retrieve an data element in this group set.
 int getGroup()
          Retrieves the group number of the group set.
 int getLength(java.lang.String syntaxTransfer)
          Retrieve the length of the group set.
 void setElement(DicomElement dicomElement)
          Set an data element in this group set.
 int setLength(java.lang.String syntaxTransfer)
          This method will re-calculate the group length with syntax transfer supplied and create an group length attributes
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DicomGroup

public DicomGroup(int group)
Constructs an empty group set.

Parameters:
group -
Method Detail

getGroup

public int getGroup()
Retrieves the group number of the group set.


setElement

public void setElement(DicomElement dicomElement)
Set an data element in this group set.

Parameters:
dicomElement -

getElement

public DicomElement getElement(int element)
Retrieve an data element in this group set.

Parameters:
element -

getLength

public int getLength(java.lang.String syntaxTransfer)
Retrieve the length of the group set.

Parameters:
syntaxTransfer -

setLength

public int setLength(java.lang.String syntaxTransfer)
This method will re-calculate the group length with syntax transfer supplied and create an group length attributes

Parameters:
syntaxTransfer -
Returns:
group length

getDicomElements

public java.util.Iterator<DicomElement> getDicomElements()
Retrieve an iterator of data elements in this data set.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object