Class XpnName
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<T>
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<XPN>
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName
-
- All Implemented Interfaces:
Serializable
public class XpnName extends Name<XPN>
This class represents a name.It is derived from the HL7v2 data type XPN. It only contains naming related fields of these data types.
All members of this class are allowed to be
null
. When transforming to HL7 this indicates that the values are empty. Trailing empty values are removed from the HL7 string.- Author:
- Jens Riemschneider, Dmytro Rud
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDegree()
String
getFamilyName()
String
getGivenName()
String
getPrefix()
String
getSecondAndFurtherGivenNames()
String
getSuffix()
void
setDegree(String value)
void
setFamilyName(String value)
void
setGivenName(String value)
void
setPrefix(String value)
void
setSecondAndFurtherGivenNames(String value)
void
setSuffix(String value)
String
toString()
-
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Name
copyFrom, equals, hashCode
-
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
-
-
-
Constructor Detail
-
XpnName
public XpnName()
-
XpnName
public XpnName(XPN xpn)
-
XpnName
public XpnName(String familyName, String givenName, String secondAndFurtherGivenNames, String suffix, String prefix, String degree)
Constructs a name.- Parameters:
familyName
- the family name (XPN.1.1).givenName
- the given name (XPN.2).secondAndFurtherGivenNames
- the second and further names (XPN.3).suffix
- the suffix (XPN.4).prefix
- the prefix (XPN.5).degree
- academical degree (XPN.6).
-
-
Method Detail
-
getFamilyName
public String getFamilyName()
- Specified by:
getFamilyName
in className<XPN>
-
setFamilyName
public void setFamilyName(String value)
- Specified by:
setFamilyName
in className<XPN>
-
getGivenName
public String getGivenName()
- Specified by:
getGivenName
in className<XPN>
-
setGivenName
public void setGivenName(String value)
- Specified by:
setGivenName
in className<XPN>
-
getSecondAndFurtherGivenNames
public String getSecondAndFurtherGivenNames()
- Specified by:
getSecondAndFurtherGivenNames
in className<XPN>
-
setSecondAndFurtherGivenNames
public void setSecondAndFurtherGivenNames(String value)
- Specified by:
setSecondAndFurtherGivenNames
in className<XPN>
-
-