public class EbXMLSlotList30 extends Object implements EbXMLSlotList
Constructor and Description |
---|
EbXMLSlotList30(List<SlotType1> slotListObj)
Constructs the slot list by wrapping the given ebXML 3.0 object.
|
Modifier and Type | Method and Description |
---|---|
void |
addSlot(String slotName,
String... slotValues)
Adds a slot with a list of values.
|
String |
getSingleSlotValue(String slotName)
Gets a single slot value.
|
List<EbXMLSlot> |
getSlots() |
List<EbXMLSlot> |
getSlots(String slotName)
Returns a filtered list of the slots.
|
List<String> |
getSlotValues(String slotName)
Gets the values of a slot.
|
public void addSlot(String slotName, String... slotValues)
EbXMLSlotList
addSlot
in interface EbXMLSlotList
slotName
- the slot name.slotValues
- the slot values. The slot will not be created if this parameter is
empty or null
.public List<String> getSlotValues(String slotName)
EbXMLSlotList
getSlotValues
in interface EbXMLSlotList
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.public String getSingleSlotValue(String slotName)
EbXMLSlotList
getSingleSlotValue
in interface EbXMLSlotList
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.null
if the slot does not exist, has no slot values
or the value is null
.public List<EbXMLSlot> getSlots()
getSlots
in interface EbXMLSlotList
public List<EbXMLSlot> getSlots(String slotName)
EbXMLSlotList
getSlots
in interface EbXMLSlotList
slotName
- name of the slots.Copyright © 2018 Open eHealth Foundation. All rights reserved.