|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.data.elements.support.DataElement
org.dicom4j.data.elements.SequenceOfItems
public class SequenceOfItems
Sequence (SQ) Attribute
| Constructor Summary | |
|---|---|
SequenceOfItems(DicomTag aDataElementTag)
Creates a new DataElement |
|
| Method Summary | |
|---|---|
void |
addItem(DataSet aItem)
Add an item to the sequence (after any existing items). |
void |
addItem(DataSet aItem,
long byteOffset)
|
void |
clear()
Clear Data contains in this Element |
int |
count()
get the number of items in the sequence. |
SequenceItems |
getItem(int index)
Get an SequenceItem by his index in the sequence. |
static String |
getMeaningOfCodedSequenceAttributeOrDefault(DataSet list,
DicomTag tag,
String dflt)
|
static DataElement |
getNamedAttributeFromWithinSequenceWithSingleItem(DataSet list,
DicomTag sequenceTag,
DicomTag namedTag)
From within a list of attributes, get the specified sequence which has one item, and from within that extract the specified attribute. |
static DataElement |
getNamedAttributeFromWithinSequenceWithSingleItem(SequenceOfItems sequenceAttribute,
DicomTag namedTag)
From the specified sequence which has one item, and from within that extract the specified attribute. |
ValueRepresentation |
getValueRepresentation()
Return the value representation of this data element |
byte[] |
getVR()
Deprecated. |
int |
itemsCount()
Deprecated. |
Iterator<SequenceItems> |
iterator()
Get an Iterator of the items in the sequence. |
void |
read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
|
String |
toString()
Dump the contents of the attribute as a human-readable string. |
void |
write(DicomOutputStream o)
Write the entire attribute (including values) to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceOfItems(DicomTag aDataElementTag)
Creates a new DataElement
aDataElementTag - the tag of the element| Method Detail |
|---|
public static String getMeaningOfCodedSequenceAttributeOrDefault(DataSet list,
DicomTag tag,
String dflt)
list - tag - dflt -
public static DataElement getNamedAttributeFromWithinSequenceWithSingleItem(DataSet list,
DicomTag sequenceTag,
DicomTag namedTag)
From within a list of attributes, get the specified sequence which has one item, and from within that extract the specified attribute.
list - the list that contains the sequence (may not be null)sequenceTag - the tag of the sequence attribute that has one itemnamedTag - the tag of the attribute within the item of the sequence
public static DataElement getNamedAttributeFromWithinSequenceWithSingleItem(SequenceOfItems sequenceAttribute,
DicomTag namedTag)
From the specified sequence which has one item, and from within that extract the specified attribute.
sequenceAttribute - the sequence attribute that has one item (may be null in which
case returns null)namedTag - the tag of the attribute within the item of the sequence
public void addItem(DataSet aItem)
item - the list of attributes that comprise the item
public void addItem(DataSet aItem,
long byteOffset)
aItem - byteOffset - public void clear()
DataElement
clear in class DataElementpublic int count()
public SequenceItems getItem(int index)
SequenceItem by his index in the sequence.
index - which item to return, numbered from zero
public ValueRepresentation getValueRepresentation()
getValueRepresentation in class DataElement@Deprecated public byte[] getVR()
Get the value representation of this attribute (SQ).
@Deprecated public int itemsCount()
public Iterator<SequenceItems> iterator()
Iterator of the items in the sequence.
Iterator of items, each encoded as an
SequenceItem
public void read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
throws IOException,
DicomException
read in class DataElementIOException
DicomExceptionpublic String toString()
DataElementDump the contents of the attribute as a human-readable string.
No new line is appended.
The result is of the form:
(0xgggg,0xeeee) VR=<XX> VL=<0xnnnn> <...>
For example:
(0x0018,0x0020) VR=<CS> VL=<0x2> <GR>
toString in class DataElementString value
public void write(DicomOutputStream o)
throws DicomException,
IOException
DataElementWrite the entire attribute (including values) to the output stream.
write in class DataElemento -
IOException
DicomException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||