Trispark JDT
2.50.13

com.archimed.dicom
Class GroupList

java.lang.Object
  extended by com.archimed.dicom.GroupList
Direct Known Subclasses:
DicomObject

public class GroupList
extends java.lang.Object

This is the superclass of DicomObject. It provides methods for data access per group are provided.*


Constructor Summary
GroupList()
           
 
Method Summary
 void addGroups(DicomObject o)
          adds the groups contained in DicomObject 'o' to this GroupList.
 void clear()
          clears this object of all data elements.
 boolean containsGroup(int groupnr)
          checks if a group with number 'groupnr' is present in this GroupList
 DicomObject copyGroup(int groupnr)
          Copies the group with number 'groupnr' and returns it as a new DicomObject
 java.util.Enumeration enumerateVRs(boolean grouplens)
          returns an enumeration of all data elements in this object as TagValue objects.
 java.util.Enumeration enumerateVRs(int ts, int seqLengthOpt, int groupLengthOpt)
           
 boolean isEmpty()
          check to see if this object contains any data elements
 int numberOfElements()
          Returns the total number of data elements in this GroupList.
 int numberOfGroups()
          Returns the number of groups in this GroupList.
 DicomObject removeGroup(int groupnr)
          deletes the group with number 'groupnr' and returns it as a new DicomObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupList

public GroupList()
Method Detail

clear

public void clear()
clears this object of all data elements.


isEmpty

public boolean isEmpty()
check to see if this object contains any data elements


enumerateVRs

public java.util.Enumeration enumerateVRs(boolean grouplens)
returns an enumeration of all data elements in this object as TagValue objects. Data elements are sorted with ascending group numbers. Within one group data elements are sorted with ascending element numbers.

Parameters:
grouplens - if true, TagValue objects for GroupLength (xxxx,0000) elements are included in the enumeration.

enumerateVRs

public java.util.Enumeration enumerateVRs(int ts,
                                          int seqLengthOpt,
                                          int groupLengthOpt)

copyGroup

public DicomObject copyGroup(int groupnr)
Copies the group with number 'groupnr' and returns it as a new DicomObject


removeGroup

public DicomObject removeGroup(int groupnr)
deletes the group with number 'groupnr' and returns it as a new DicomObject


containsGroup

public boolean containsGroup(int groupnr)
checks if a group with number 'groupnr' is present in this GroupList


addGroups

public void addGroups(DicomObject o)
adds the groups contained in DicomObject 'o' to this GroupList.
Note: Only groups that were NOT already present in this GroupList are added.


numberOfGroups

public int numberOfGroups()
Returns the number of groups in this GroupList.


numberOfElements

public int numberOfElements()
Returns the total number of data elements in this GroupList.


Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.