Package org.projecthusky.common.model
Class IntendedRecipient
java.lang.Object
org.projecthusky.common.model.IntendedRecipient
The Class IntendedRecipient. This element contains information about a specific person or organization which is the
recipient of the document.
-
Constructor Summary
ConstructorsConstructorDescriptionStandard constructor.Standard mdht constructor.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.IntendedRecipient
(Organization organization) Convenience constructor with required elements, if the recipient is an organization. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddress
(Address address) Assigns a post address.void
addId
(Identificator identificator) Assigns an id.Gets the addresses.getIds()
Gets all ids of the authorMethod to getGets the person, who receives the information.Returns the underlying mdht element.Gets the organization (ReceivedOrganization).Gets the telecoms.void
setInformationRecipient
(Person person) Sets the person, who receives the information.void
setIntendedRecipient
(POCDMT000040IntendedRecipient intendedRecipient) Method to setvoid
setOrganization
(Organization organization) Sets the organization (ReceivedOrganization).void
setTelecoms
(List<Telecom> telecoms) Sets the telecoms.
-
Constructor Details
-
IntendedRecipient
public IntendedRecipient()Standard constructor. -
IntendedRecipient
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 nameid
- the idaddress
- the addresstelecoms
- the telecoms
-
IntendedRecipient
Standard mdht constructor.- Parameters:
mdht
- the mdht object
-
IntendedRecipient
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
Assigns a post address.- Parameters:
address
- the post address
-
addId
Assigns an id.- Parameters:
identificator
- the id
-
getAddresses
Gets the addresses.- Returns:
- the addresses
-
getIds
Gets all ids of the author- Returns:
- the ids
-
getIntendedRecipient
Method to get- Returns:
- the intendedRecipient
-
setIntendedRecipient
Method to set- Parameters:
intendedRecipient
- the intendedRecipient to set
-
getMdhtInformationRecipient
Gets the person, who receives the information.- Returns:
- the person
-
getMdhtIntendedRecipient
Returns the underlying mdht element.- Returns:
- the element
-
getOrganization
Gets the organization (ReceivedOrganization).- Returns:
- organization the organization
-
setOrganization
Sets the organization (ReceivedOrganization).- Parameters:
organization
- the new organization
-
getTelecoms
Gets the telecoms.- Returns:
- Telecoms the telecoms
-
setTelecoms
Sets the telecoms.- Parameters:
telecoms
- the new telecoms
-
setInformationRecipient
Sets the person, who receives the information.- Parameters:
person
- the person
-