org.dicom4j.data.elements
Class ShortString

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.ShortString

public class ShortString
extends StringElement

Concrete class specializing DataElement for Short String (SH) attributes.

Though an instance of this class may be created using its constructors, there is also a factory class, AttributeFactory.

Author:
dclunie
See Also:
DataElement, DataElementFactory

Constructor Summary
ShortString(DicomTag t)
           Construct an (empty) attribute.
ShortString(DicomTag t, SpecificCharacterSet specificCharacterSet)
           Construct an (empty) attribute.
 
Method Summary
 ValueRepresentation getValueRepresentation()
          Return the ValueRepresentation of this element
 byte[] getVR()
           Get the value representation of this attribute (SH).
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getStringValues, 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, 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
 

Constructor Detail

ShortString

public ShortString(DicomTag t)

Construct an (empty) attribute.

Parameters:
t - the tag of the attribute

ShortString

public ShortString(DicomTag t,
                   SpecificCharacterSet specificCharacterSet)

Construct an (empty) attribute.

Parameters:
t - the tag of the attribute
specificCharacterSet - the character set to be used for the text
Method Detail

getValueRepresentation

public ValueRepresentation getValueRepresentation()
Description copied from class: DataElement
Return the ValueRepresentation of this element

Specified by:
getValueRepresentation in class DataElement
Returns:
the ValueRepresentation

getVR

public byte[] getVR()

Get the value representation of this attribute (SH).

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


Copyright © 2009 dicom4j. All Rights Reserved.