Class Name<T extends Composite>
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<T>
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<T>
-
- All Implemented Interfaces:
Serializable
public abstract class Name<T extends Composite> extends Hl7v2Based<T>
This class represents a name.It is derived from the HL7v2 data types XPN and 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
copyFrom(Name name)
Copy all name properties from the given name to this object.boolean
equals(Object o)
abstract String
getDegree()
abstract String
getFamilyName()
abstract String
getGivenName()
abstract String
getPrefix()
abstract String
getSecondAndFurtherGivenNames()
abstract String
getSuffix()
int
hashCode()
abstract void
setDegree(String value)
abstract void
setFamilyName(String value)
abstract void
setGivenName(String value)
abstract void
setPrefix(String value)
abstract void
setSecondAndFurtherGivenNames(String value)
abstract void
setSuffix(String value)
String
toString()
-
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
-
Name
public Name()
-
Name
protected Name(T hapiObject)
-
-
Method Detail
-
copyFrom
protected void copyFrom(Name name)
Copy all name properties from the given name to this object.- Parameters:
name
-
-
getFamilyName
public abstract String getFamilyName()
-
getGivenName
public abstract String getGivenName()
-
getSecondAndFurtherGivenNames
public abstract String getSecondAndFurtherGivenNames()
-
getSuffix
public abstract String getSuffix()
-
getPrefix
public abstract String getPrefix()
-
getDegree
public abstract String getDegree()
-
setFamilyName
public abstract void setFamilyName(String value)
-
setGivenName
public abstract void setGivenName(String value)
-
setSecondAndFurtherGivenNames
public abstract void setSecondAndFurtherGivenNames(String value)
-
setSuffix
public abstract void setSuffix(String value)
-
setPrefix
public abstract void setPrefix(String value)
-
setDegree
public abstract void setDegree(String value)
-
-