public class GroupList
extends java.lang.Object
implements java.io.Serializable
DicomObject
.
It provides methods for data access per group.Constructor and Description |
---|
GroupList() |
Modifier and Type | Method and Description |
---|---|
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 |
public void clear()
public boolean isEmpty()
public java.util.Enumeration enumerateVRs(boolean grouplens)
TagValue
objects.
Data elements are sorted with ascending group numbers. Within one group
data elements are sorted with ascending element numbers.grouplens
- if true, TagValue objects for GroupLength (xxxx,0000) elements
are included in the enumeration.public java.util.Enumeration enumerateVRs(int ts, int seqLengthOpt, int groupLengthOpt)
public DicomObject copyGroup(int groupnr)
DicomObject
public DicomObject removeGroup(int groupnr)
DicomObject
public boolean containsGroup(int groupnr)
public void addGroups(DicomObject o)
DicomObject
'o' to this
GroupList.
public int numberOfGroups()
public int numberOfElements()