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
Direct Known Subclasses:
XcnName, XpnName

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:
  • Constructor Details

    • Name

      public Name()
    • Name

      protected Name(T hapiObject)
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object