org.dicom4j.data.elements
Class UniqueIdentifier

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

public class UniqueIdentifier
extends StringElement

A concrete class specializing Attribute for Unique Identifier (UI) 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
UniqueIdentifier(DicomTag t)
           Construct an (empty) attribute.
UniqueIdentifier(DicomTag t, long vl, DicomInputStream i)
           Read an attribute from an input stream.
UniqueIdentifier(DicomTag t, String aValue)
           
 
Method Summary
 ValueRepresentation getValueRepresentation()
          Return the ValueRepresentation of this element
 byte[] getVR()
           Get the value representation of this attribute (UI).
 void setValue(String aValue)
           
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getStringValues, getValueLength, getValueMultiplicity, read, 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

UniqueIdentifier

public UniqueIdentifier(DicomTag t)

Construct an (empty) attribute.

Parameters:
t - the tag of the attribute

UniqueIdentifier

public UniqueIdentifier(DicomTag t,
                        long vl,
                        DicomInputStream i)
                 throws IOException,
                        DicomException

Read an attribute from an input stream.

Parameters:
t - the tag of the attribute
vl - the value length of the attribute
i - the input stream
Throws:
IOException
DicomException

UniqueIdentifier

public UniqueIdentifier(DicomTag t,
                        String aValue)
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 (UI).

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

setValue

public void setValue(String aValue)
Overrides:
setValue in class StringElement


Copyright © 2009 dicom4j. All Rights Reserved.