org.dicom4j.data.elements
Class IntegerString

java.lang.Object
  extended by org.dicom4j.data.elements.support.DataElement
      extended by org.dicom4j.data.elements.support.StringElement
          extended by org.dicom4j.data.elements.IntegerString

public class IntegerString
extends StringElement

Integer String (IS) DataElement

Since:
Alpha 0.0.0
Author:
Laurent Lecomte

Field Summary
static int MAXIMUM_LENGTH
           
 
Constructor Summary
IntegerString(DicomTag aTag)
           Creates an empty element
 
Method Summary
 int[] getIntegerValues()
           Get the values of this attribute as an int array.
 String[] getStringValues(NumberFormat format)
           Get the values of this attribute as strings.
 ValueRepresentation getValueRepresentation()
          Return the value representation of this data element
 byte[] getVR()
           Get the value representation of this attribute (IS).
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getValueLength, getValueMultiplicity, read, setValue, toString, write
 
Methods inherited from class org.dicom4j.data.elements.support.DataElement
addValue, addValue, addValue, addValue, addValue, addValue, getByteValues, getDelimitedStringValues, getDelimitedStringValues, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDoubleValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getLongValues, getName, getOriginalStringValues, getShortValues, getSingleDoubleValueOrDefault, getSingleDoubleValueOrDefault, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValueOrDefault, getSingleLongValueOrDefault, getSingleLongValueOrDefault, getSingleStringValue, getSingleStringValue, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getStringValues, getStringValues, getStringValues, getTag, isAvailableAsString, isGroupLength, isValid, read, removeValues, setValues, setValues, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXIMUM_LENGTH

public static final int MAXIMUM_LENGTH
See Also:
Constant Field Values
Constructor Detail

IntegerString

public IntegerString(DicomTag aTag)

Creates an empty element

Parameters:
aTag - the tag of the element
Method Detail

getIntegerValues

public int[] getIntegerValues()
                       throws DicomException
Description copied from class: DataElement

Get the values of this attribute as an int array.

Overrides:
getIntegerValues in class DataElement
Returns:
the values as an array of int
Throws:
DicomException - thrown if values are not available (such as not supported for this concrete attribute class)

getStringValues

public String[] getStringValues(NumberFormat format)
                         throws DicomException
Description copied from class: StringElement

Get the values of this attribute as strings.

The strings are first cleaned up into a canonical form, to remove leading and trailing padding.

Overrides:
getStringValues in class StringElement
Parameters:
format - the format to use for each numerical or decimal value
Returns:
the values as an array of String
Throws:
DicomException

getValueRepresentation

public ValueRepresentation getValueRepresentation()
Return the value representation of this data element

Specified by:
getValueRepresentation in class DataElement
Returns:
the value representation (IS)

getVR

public byte[] getVR()

Get the value representation of this attribute (IS).

Returns:
'I','S' in ASCII as a two byte array; see


Copyright © 2009 dicom4j. All Rights Reserved.