Class EbXMLSubmitObjectsRequest30

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLObjectContainer30
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLSubmitObjectsRequest30
All Implemented Interfaces:
EbXMLObjectContainer, EbXMLSlotList, EbXMLSubmitObjectsRequest<SubmitObjectsRequest>

public class EbXMLSubmitObjectsRequest30 extends EbXMLObjectContainer30 implements EbXMLSubmitObjectsRequest<SubmitObjectsRequest>
Encapsulation of SubmitObjectsRequest
Author:
Jens Riemschneider
  • Constructor Details

    • EbXMLSubmitObjectsRequest30

      public EbXMLSubmitObjectsRequest30(SubmitObjectsRequest submitObjectsRequest, EbXMLObjectLibrary objectLibrary)
      Constructs a request by wrapping the given ebXML 3.0 object.
      Parameters:
      submitObjectsRequest - the object to wrap.
      objectLibrary - the object library to use.
    • EbXMLSubmitObjectsRequest30

      public EbXMLSubmitObjectsRequest30(SubmitObjectsRequest submitObjectsRequest)
      Constructs a request by wrapping the given ebXML 3.0 object using a new object library.
      Parameters:
      submitObjectsRequest - the object to wrap.
  • Method Details

    • getInternal

      public SubmitObjectsRequest getInternal()
      Specified by:
      getInternal in interface EbXMLSubmitObjectsRequest<SubmitObjectsRequest>
      Returns:
      the wrapped ebXML representation of this request.
    • addSlot

      public void addSlot(String slotName, String... slotValues)
      Description copied from interface: EbXMLSlotList
      Adds a slot with a list of values.
      Specified by:
      addSlot in interface EbXMLSlotList
      Parameters:
      slotName - the slot name.
      slotValues - the slot values. The slot will not be created if this parameter is empty or null.
    • getSlotValues

      public List<String> getSlotValues(String slotName)
      Description copied from interface: EbXMLSlotList
      Gets the values of a slot.
      Specified by:
      getSlotValues in interface EbXMLSlotList
      Parameters:
      slotName - the name of the slot. It is expected that the name is only used for a single slot. Use EbXMLSlotList.getSlots(String) if it is possible that the name is used multiple times.
      Returns:
      the list of slot values.
    • getSingleSlotValue

      public String getSingleSlotValue(String slotName)
      Description copied from interface: EbXMLSlotList
      Gets a single slot value.
      Specified by:
      getSingleSlotValue in interface EbXMLSlotList
      Parameters:
      slotName - the name of the slot. It is expected that the name is only used for a single slot. Use EbXMLSlotList.getSlots(String) if it is possible that the name is used multiple times.
      Returns:
      the first slot value. Other slot values are ignored. Can be null if the slot does not exist, has no slot values or the value is null.
    • getSlots

      public List<EbXMLSlot> getSlots()
      Specified by:
      getSlots in interface EbXMLSlotList
      Returns:
      the complete list of all slots.
    • getSlots

      public List<EbXMLSlot> getSlots(String slotName)
      Description copied from interface: EbXMLSlotList
      Returns a filtered list of the slots.
      Specified by:
      getSlots in interface EbXMLSlotList
      Parameters:
      slotName - name of the slots.
      Returns:
      the list of slots named with the given slot name.