Class RecipientTransformer

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.ebxml.RecipientTransformer

public class RecipientTransformer extends Object
Transforms between a Recipient and its ebXML representation.

The ebXML representation is a simple String used as a slot value. This class is independent of the ebXML version being used.

Author:
Jens Riemschneider
  • Constructor Details

    • RecipientTransformer

      public RecipientTransformer()
  • Method Details

    • toEbXML

      public String toEbXML(Recipient recipient)
      Transforms a recipient into its ebXML representation (a slot value).
      Parameters:
      recipient - the recipient to transform. Can be null.
      Returns:
      the slot value. null if the input was null.
    • fromEbXML

      public Recipient fromEbXML(String slotValue)
      Transforms an ebXML representation (a slot value) into a Recipient.
      Parameters:
      slotValue - the slot value. Can be null.
      Returns:
      the recipient. null if the input was null.