org.dicom4j.data.elements
Class PersonName

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

public class PersonName
extends StringElement

Person Name (PN) DataElement

Since:
Alpha 0.0.0
Author:
Laurent Lecomte

Constructor Summary
PersonName(DicomTag aTag)
           Creates an empty element
PersonName(DicomTag t, SpecificCharacterSet specificCharacterSet)
           Construct an (empty) attribute.
 
Method Summary
 ValueRepresentation getValueRepresentation()
          Return the value representation of this data element
 byte[] getVR()
           Get the value representation of this attribute (PN).
 void setValue(String aValue)
           Read an attribute from an input stream.
 
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

PersonName

public PersonName(DicomTag aTag)

Creates an empty element

Parameters:
aTag - the tag of the element

PersonName

public PersonName(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()
Return the value representation of this data element

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

getVR

public byte[] getVR()

Get the value representation of this attribute (PN).

Returns:
'P','N' in ASCII as a two byte array; see

setValue

public void setValue(String aValue)

Read an attribute from an input stream.

Overrides:
setValue in class StringElement
Parameters:
t - the tag of the attribute
vl - the value length of the attribute
i - the input stream
specificCharacterSet - the character set to be used for the text
Throws:
IOException
DicomException


Copyright © 2009 dicom4j. All Rights Reserved.