java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Recipient
All Implemented Interfaces:
Serializable

public class Recipient extends Object implements Serializable
Represents a recipient containing a person and/or organization and/or telecommunication address.

All members of this class are allowed to be null.

If both, the person and the organization, are defined, the person is expected to be a member of the specified organization.

Author:
Jens Riemschneider
See Also:
  • Constructor Details

    • Recipient

      public Recipient()
      Constructs a recipient.
    • Recipient

      public Recipient(Organization organization, Person person, Telecom telecom)
      Constructs a recipient.
      Parameters:
      organization - the organization.
      person - the person.
      telecom - telecommunication address.
  • Method Details

    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • getPerson

      public Person getPerson()
    • setPerson

      public void setPerson(Person person)
    • getOrganization

      public Organization getOrganization()
    • setOrganization

      public void setOrganization(Organization organization)
    • getTelecom

      public Telecom getTelecom()
    • setTelecom

      public void setTelecom(Telecom telecom)