Interface EbXMLFactory
- All Known Implementing Classes:
EbXMLFactory30
public interface EbXMLFactory
Serves as a factory for ebXML objects.
This factory is used to provide version independent creation of ebXML objects.
- Author:
- Jens Riemschneider
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new request to query a registry.createAdhocQueryResponse
(EbXMLObjectLibrary objectLibrary, boolean returnsObjectRefs) Creates a new response for a query request.createAssociation
(String id, EbXMLObjectLibrary objectLibrary) Creates a new association.createClassification
(EbXMLObjectLibrary objectLibrary) Creates a new classification.createExtrinsic
(String id, EbXMLObjectLibrary objectLibrary) Creates a new extrinsic object and adds it to the object library.Creates a new request to provide and register documents.Creates a new registry error object.createRegistryPackage
(String id, EbXMLObjectLibrary objectLibrary) Creates a new registry package and adds it to the object library.Creates a new response for a registry request.Creates a new request to remove documents.Creates a new remove metadata request.Creates a new request to retrieve documents.Creates a new response for a retrieve document request.Creates a new request to retrieve imaging documents.Creates a new request to submit objects.
-
Method Details
-
createObjectLibrary
EbXMLObjectLibrary createObjectLibrary()- Returns:
- a new instance of an object library filled with object references used for ebXML requests/responses.
-
createClassification
Creates a new classification.- Parameters:
objectLibrary
- the object library to use.- Returns:
- the created object.
-
createExtrinsic
Creates a new extrinsic object and adds it to the object library.- Parameters:
id
- the id of the object within the object library.objectLibrary
- the object library to use.- Returns:
- the created object.
-
createRegistryPackage
Creates a new registry package and adds it to the object library.- Parameters:
id
- the id of the object within the object library.objectLibrary
- the object library to use.- Returns:
- the created object.
-
createAssociation
Creates a new association.- Parameters:
id
- the id of the object within the object library.objectLibrary
- the object library to use.- Returns:
- the created object.
-
createSubmitObjectsRequest
EbXMLSubmitObjectsRequest<SubmitObjectsRequest> createSubmitObjectsRequest()Creates a new request to submit objects.- Returns:
- the created object.
-
createProvideAndRegisterDocumentSetRequest
EbXMLProvideAndRegisterDocumentSetRequest<ProvideAndRegisterDocumentSetRequestType> createProvideAndRegisterDocumentSetRequest(EbXMLObjectLibrary library) Creates a new request to provide and register documents.- Parameters:
library
- the object library to use.- Returns:
- the created object.
-
createRetrieveDocumentSetRequest
EbXMLNonconstructiveDocumentSetRequest<RetrieveDocumentSetRequestType> createRetrieveDocumentSetRequest()Creates a new request to retrieve documents.- Returns:
- the created object.
-
createRemoveDocumentsRequest
EbXMLNonconstructiveDocumentSetRequest<RemoveDocumentsRequestType> createRemoveDocumentsRequest()Creates a new request to remove documents.- Returns:
- the created object.
-
createRetrieveImagingDocumentSetRequest
EbXMLRetrieveImagingDocumentSetRequest<RetrieveImagingDocumentSetRequestType> createRetrieveImagingDocumentSetRequest()Creates a new request to retrieve imaging documents.- Returns:
- the created object.
-
createAdhocQueryRequest
EbXMLAdhocQueryRequest<AdhocQueryRequest> createAdhocQueryRequest()Creates a new request to query a registry.- Returns:
- the created object.
-
createAdhocQueryResponse
EbXMLQueryResponse<AdhocQueryResponse> createAdhocQueryResponse(EbXMLObjectLibrary objectLibrary, boolean returnsObjectRefs) Creates a new response for a query request.- Parameters:
objectLibrary
- the object library to use.returnsObjectRefs
-true
if the response is meant to return object references instead of the real objects. This parameter should betrue
to ensure that an object library is not included in the query result contains ObjectRefs. Those ObjectRefs cannot be distinguished from the ObjectRefs of the object library and therefore the object library would produce unwanted query results.- Returns:
- the created object.
-
createRegistryResponse
EbXMLRegistryResponse<RegistryResponseType> createRegistryResponse()Creates a new response for a registry request.- Returns:
- the created object.
-
createRetrieveDocumentSetResponse
EbXMLRetrieveDocumentSetResponse<RetrieveDocumentSetResponseType> createRetrieveDocumentSetResponse()Creates a new response for a retrieve document request.- Returns:
- the created object.
-
createRegistryError
EbXMLRegistryError createRegistryError()Creates a new registry error object.- Returns:
- the created object.
-
createRemoveMetadataRequest
EbXMLRemoveMetadataRequest<RemoveObjectsRequest> createRemoveMetadataRequest()Creates a new remove metadata request.- Returns:
- the created object.
-