Trispark JDT
2.50.13

com.archimed.dicom
Class TagValue

java.lang.Object
  extended by com.archimed.dicom.TagValue
Direct Known Subclasses:
DataElement

public class TagValue
extends java.lang.Object

represents a (group, element) - pair and its value. Use getValue() or getValue(i) to inspect the different fields.
The value-field is a Vector (for multiplicity) consisting of different objects with Java types depending on the DICOM-type of the data element (as specified in the conversion table: see DicomObject).

Since:
18/02/1999

Field Summary
protected  int dataLen
           
protected  DicomObject dcm
          should always contain the DicomObject to which this data element directly belongs to, also for file meta info.
protected  int dcm_type
           
protected  int element
           
protected  int group
           
protected  java.util.Vector val
           
 
Constructor Summary
TagValue()
           
 
Method Summary
 int getElement()
          returns the element field of this TagValue.
 int getGroup()
          returns the group field of this TagValue.
 java.lang.Object getValue()
          returns the first value in this TagValue.
 java.lang.Object getValue(int i)
          returns the value at index 'i'.
 int size()
          returns the number of objects in this TagValue's value field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

protected int group

element

protected int element

val

protected java.util.Vector val

dcm_type

protected int dcm_type

dataLen

protected int dataLen

dcm

protected DicomObject dcm
should always contain the DicomObject to which this data element directly belongs to, also for file meta info. This value is passed to the TagReadEvent and is a way for TagReadListeners to know if events fire for tags in items or in top-level DicomObject by making use of DicomObject.getParent()

Constructor Detail

TagValue

public TagValue()
Method Detail

getGroup

public int getGroup()
returns the group field of this TagValue.


getElement

public int getElement()
returns the element field of this TagValue.


size

public int size()
returns the number of objects in this TagValue's value field.


getValue

public java.lang.Object getValue(int i)
                          throws DicomException
returns the value at index 'i'.

Throws:
is - thrown when the index is out of bounds. Check the bounds using size
DicomException

getValue

public java.lang.Object getValue()
returns the first value in this TagValue. If there is no value present, this method returns null.


Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.