Class XcnName
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XCN>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<XCN>
org.openehealth.ipf.commons.ihe.xds.core.metadata.XcnName
- All Implemented Interfaces:
Serializable
This class represents a name.
It is derived from the HL7v2 data type XCN. 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
Hl7v2Based.Holder<T extends Type> -
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetFamilyName(String value) voidsetGivenName(String value) voidvoidvoidtoString()Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Name
copyFrom, equals, hashCodeMethods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
Constructor Details
-
XcnName
public XcnName() -
XcnName
-
XcnName
public XcnName(String familyName, String givenName, String secondAndFurtherGivenNames, String suffix, String prefix, String degree) Constructs a name.- Parameters:
familyName- the family name (XCN.2.1).givenName- the given name (XCN.3).secondAndFurtherGivenNames- the second and further names (XCN.4).suffix- the suffix (XCN.5).prefix- the prefix (XCN.6).degree- academical degree (XCN.7).
-
-
Method Details
-
getFamilyName
- Specified by:
getFamilyNamein className<XCN>
-
setFamilyName
- Specified by:
setFamilyNamein className<XCN>
-
getGivenName
- Specified by:
getGivenNamein className<XCN>
-
setGivenName
- Specified by:
setGivenNamein className<XCN>
-
getSecondAndFurtherGivenNames
- Specified by:
getSecondAndFurtherGivenNamesin className<XCN>
-
setSecondAndFurtherGivenNames
- Specified by:
setSecondAndFurtherGivenNamesin className<XCN>
-
getSuffix
-
setSuffix
-
getPrefix
-
setPrefix
-
getDegree
-
setDegree
-
toString
-