Class EbXMLProvideAndRegisterDocumentSetRequest30
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLObjectContainer30
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLProvideAndRegisterDocumentSetRequest30
- All Implemented Interfaces:
EbXMLObjectContainer
,EbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType>
,EbXMLSlotList
,EbXMLSubmitObjectsRequest<ProvideAndRegisterDocumentSetRequestType>
public class EbXMLProvideAndRegisterDocumentSetRequest30
extends EbXMLObjectContainer30
implements EbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType>
Encapsulation of
ProvideAndRegisterDocumentSetRequestType
- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorDescriptionConstructs a request by wrapping the given ebXML 3.0 object using a new object library.EbXMLProvideAndRegisterDocumentSetRequest30
(ProvideAndRegisterDocumentSetRequestType request, EbXMLObjectLibrary objectLibrary) Constructs a request by wrapping the given ebXML 3.0 object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocument
(String id, javax.activation.DataHandler dataHandler) Adds a new document to the request.void
Adds a slot with a list of values.getSingleSlotValue
(String slotName) Gets a single slot value.getSlots()
Returns a filtered list of the slots.getSlotValues
(String slotName) Gets the values of a slot.void
removeDocument
(String id) Removes a document from the request.Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLObjectContainer30
addAssociation, addClassification, addExtrinsicObject, addRegistryPackage, cast, fillObjectLibrary, getAssociations, getClassifications, getExtrinsicObjects, getExtrinsicObjects, getObjectLibrary, getRegistryPackages, getRegistryPackages
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLObjectContainer
addAssociation, addClassification, addExtrinsicObject, addRegistryPackage, getAssociations, getClassifications, getExtrinsicObjects, getExtrinsicObjects, getObjectLibrary, getRegistryPackages, getRegistryPackages
-
Constructor Details
-
EbXMLProvideAndRegisterDocumentSetRequest30
public EbXMLProvideAndRegisterDocumentSetRequest30(ProvideAndRegisterDocumentSetRequestType request, EbXMLObjectLibrary objectLibrary) Constructs a request by wrapping the given ebXML 3.0 object.- Parameters:
request
- the object to wrap.objectLibrary
- the object library to use.
-
EbXMLProvideAndRegisterDocumentSetRequest30
public EbXMLProvideAndRegisterDocumentSetRequest30(ProvideAndRegisterDocumentSetRequestType request) Constructs a request by wrapping the given ebXML 3.0 object using a new object library.- Parameters:
request
- the object to wrap.
-
-
Method Details
-
addDocument
Description copied from interface:EbXMLProvideAndRegisterDocumentSetRequest
Adds a new document to the request.- Specified by:
addDocument
in interfaceEbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType>
- Parameters:
id
- the id of the document.dataHandler
- the data handler allowing access and describing to the document contents.
-
removeDocument
Description copied from interface:EbXMLProvideAndRegisterDocumentSetRequest
Removes a document from the request.- Specified by:
removeDocument
in interfaceEbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType>
- Parameters:
id
- the id of the document.
-
getDocuments
- Specified by:
getDocuments
in interfaceEbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType>
- Returns:
- the documents contained in the request. This map is read-only.
-
getInternal
- Specified by:
getInternal
in interfaceEbXMLSubmitObjectsRequest<ProvideAndRegisterDocumentSetRequestType>
- Returns:
- the wrapped ebXML representation of this request.
-
addSlot
Description copied from interface:EbXMLSlotList
Adds a slot with a list of values.- Specified by:
addSlot
in interfaceEbXMLSlotList
- Parameters:
slotName
- the slot name.slotValues
- the slot values. The slot will not be created if this parameter is empty ornull
.
-
getSlotValues
Description copied from interface:EbXMLSlotList
Gets the values of a slot.- Specified by:
getSlotValues
in interfaceEbXMLSlotList
- Parameters:
slotName
- the name of the slot. It is expected that the name is only used for a single slot. UseEbXMLSlotList.getSlots(String)
if it is possible that the name is used multiple times.- Returns:
- the list of slot values.
-
getSingleSlotValue
Description copied from interface:EbXMLSlotList
Gets a single slot value.- Specified by:
getSingleSlotValue
in interfaceEbXMLSlotList
- Parameters:
slotName
- the name of the slot. It is expected that the name is only used for a single slot. UseEbXMLSlotList.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 isnull
.
-
getSlots
- Specified by:
getSlots
in interfaceEbXMLSlotList
- Returns:
- the complete list of all slots.
-
getSlots
Description copied from interface:EbXMLSlotList
Returns a filtered list of the slots.- Specified by:
getSlots
in interfaceEbXMLSlotList
- Parameters:
slotName
- name of the slots.- Returns:
- the list of slots named with the given slot name.
-