org.dcm4che2.data
Class PersonName

java.lang.Object
  extended by org.dcm4che2.data.PersonName

public class PersonName
extends java.lang.Object

Since:
Mar 7, 2006
Version:
$Revision: 6089 $ $Date: 2008-02-27 23:05:37 +0100 (Wed, 27 Feb 2008) $
Author:
gunter zeilinger(gunterze@gmail.com)

Field Summary
static int FAMILY
          Field number for get and set indicating the family name complex
static int GIVEN
          Field number for get and set indicating the given name complex
static int IDEOGRAPHIC
          Group number for get and set indicating the ideographic representation
static int MIDDLE
          Field number for get and set indicating the middle name
static int PHONETIC
          Group number for get and set indicating the phonetic representation
static int PREFIX
          Field number for get and set indicating the name prefix
static int SINGLE_BYTE
          Group number for get and set indicating the single-byte character representation
static int SUFFIX
          Field number for get and set indicating the name suffix
 
Constructor Summary
PersonName()
          Default c'tor.
PersonName(java.lang.String s)
          C'tor that can parse a PN-encoded value.
 
Method Summary
 java.lang.String componentGroupString(int group, boolean trim)
           
 java.lang.String get(int field)
           
 java.lang.String get(int group, int field)
           
 void set(int group, int field, java.lang.String s)
           
 void set(int field, java.lang.String s)
           
static PersonName[] toPersonNames(java.lang.String[] ss)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAMILY

public static final int FAMILY
Field number for get and set indicating the family name complex

See Also:
Constant Field Values

GIVEN

public static final int GIVEN
Field number for get and set indicating the given name complex

See Also:
Constant Field Values

MIDDLE

public static final int MIDDLE
Field number for get and set indicating the middle name

See Also:
Constant Field Values

PREFIX

public static final int PREFIX
Field number for get and set indicating the name prefix

See Also:
Constant Field Values

SUFFIX

public static final int SUFFIX
Field number for get and set indicating the name suffix

See Also:
Constant Field Values

SINGLE_BYTE

public static final int SINGLE_BYTE
Group number for get and set indicating the single-byte character representation

See Also:
Constant Field Values

IDEOGRAPHIC

public static final int IDEOGRAPHIC
Group number for get and set indicating the ideographic representation

See Also:
Constant Field Values

PHONETIC

public static final int PHONETIC
Group number for get and set indicating the phonetic representation

See Also:
Constant Field Values
Constructor Detail

PersonName

public PersonName()
Default c'tor.


PersonName

public PersonName(java.lang.String s)
C'tor that can parse a PN-encoded value.

Parameters:
s - the PN-encoded value to initialize from.
Method Detail

toPersonNames

public static PersonName[] toPersonNames(java.lang.String[] ss)

get

public final java.lang.String get(int field)

get

public final java.lang.String get(int group,
                                  int field)

set

public final void set(int field,
                      java.lang.String s)

set

public final void set(int group,
                      int field,
                      java.lang.String s)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

componentGroupString

public java.lang.String componentGroupString(int group,
                                             boolean trim)


Copyright © 2011 dcm4che. All Rights Reserved.