Class IntendedRecipient

java.lang.Object
org.projecthusky.common.model.IntendedRecipient

public class IntendedRecipient extends Object
The Class IntendedRecipient. This element contains information about a specific person or organization which is the recipient of the document.
  • Constructor Details

    • IntendedRecipient

      public IntendedRecipient()
      Standard constructor.
    • IntendedRecipient

      public IntendedRecipient(Name name, Identificator id, Address address, List<Telecom> telecoms)
      Convenience constructor with (for CDA-CH-LRTP) required elements, if the recipient is a person. The according informationRecipient element will be constructed with the given name.
      Parameters:
      name - the name
      id - the id
      address - the address
      telecoms - the telecoms
    • IntendedRecipient

      public IntendedRecipient(POCDMT000040IntendedRecipient mdht)
      Standard mdht constructor.
      Parameters:
      mdht - the mdht object
    • IntendedRecipient

      public IntendedRecipient(Organization organization)
      Convenience constructor with required elements, if the recipient is an organization. The according receivingOrganization element will be constructed with the same data as the IntendedRecipient (Id, addr, telecoms). These elements have to be present in the Organization object. If the Organization has a name, it will be set as the name for the information recipient (intendedRecipient/informationRecipient/name[0] = organization/name[0])
      Parameters:
      organization - the organization
  • Method Details

    • addAddress

      public void addAddress(Address address)
      Assigns a post address.
      Parameters:
      address - the post address
    • addId

      public void addId(Identificator identificator)
      Assigns an id.
      Parameters:
      identificator - the id
    • getAddresses

      public List<Address> getAddresses()
      Gets the addresses.
      Returns:
      the addresses
    • getIds

      public List<Identificator> getIds()
      Gets all ids of the author
      Returns:
      the ids
    • getIntendedRecipient

      public POCDMT000040IntendedRecipient getIntendedRecipient()
      Method to get
      Returns:
      the intendedRecipient
    • setIntendedRecipient

      public void setIntendedRecipient(POCDMT000040IntendedRecipient intendedRecipient)
      Method to set
      Parameters:
      intendedRecipient - the intendedRecipient to set
    • getMdhtInformationRecipient

      public Person getMdhtInformationRecipient()
      Gets the person, who receives the information.
      Returns:
      the person
    • getMdhtIntendedRecipient

      public POCDMT000040IntendedRecipient getMdhtIntendedRecipient()
      Returns the underlying mdht element.
      Returns:
      the element
    • getOrganization

      public Organization getOrganization()
      Gets the organization (ReceivedOrganization).
      Returns:
      organization the organization
    • setOrganization

      public void setOrganization(Organization organization)
      Sets the organization (ReceivedOrganization).
      Parameters:
      organization - the new organization
    • getTelecoms

      public List<Telecom> getTelecoms()
      Gets the telecoms.
      Returns:
      Telecoms the telecoms
    • setTelecoms

      public void setTelecoms(List<Telecom> telecoms)
      Sets the telecoms.
      Parameters:
      telecoms - the new telecoms
    • setInformationRecipient

      public void setInformationRecipient(Person person)
      Sets the person, who receives the information.
      Parameters:
      person - the person