Class GetByIDAndCodesQueryTransformer<T extends GetByIdAndCodesQuery>
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetByIDAndCodesQueryTransformer<T>
- Type Parameters:
T
- the actual query type that is transformed by an extending subclass.
- Direct Known Subclasses:
GetFolderAndContentsQueryTransformer
,GetSubmissionSetAndContentsQueryTransformer
public abstract class GetByIDAndCodesQueryTransformer<T extends GetByIdAndCodesQuery>
extends Object
Base class of transformers for
GetByIdAndCodesQuery
.- Author:
- Jens Riemschneider
-
Constructor Summary
ModifierConstructorDescriptionprotected
GetByIDAndCodesQueryTransformer
(QueryParameter uuidParam, QueryParameter uniqueIdParam, QueryParameter formatCodeParam, QueryParameter formatCodeSchemeParam, QueryParameter confCodeParam, QueryParameter confCodeSchemeParam) Constructs the transformer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromEbXML
(T query, EbXMLAdhocQueryRequest<AdhocQueryRequest> ebXML) Transforms the ebXML representation of a query into a query object.protected void
fromEbXML
(T query, QuerySlotHelper slots) Called byfromEbXML(StoredQuery, EbXMLAdhocQueryRequest)
to transform slots.void
toEbXML
(T query, EbXMLAdhocQueryRequest<AdhocQueryRequest> ebXML) Transforms the query into its ebXML representation.protected void
toEbXML
(T query, QuerySlotHelper slots) Called bytoEbXML(StoredQuery, EbXMLAdhocQueryRequest)
to transform slots.
-
Constructor Details
-
GetByIDAndCodesQueryTransformer
protected GetByIDAndCodesQueryTransformer(QueryParameter uuidParam, QueryParameter uniqueIdParam, QueryParameter formatCodeParam, QueryParameter formatCodeSchemeParam, QueryParameter confCodeParam, QueryParameter confCodeSchemeParam) Constructs the transformer.- Parameters:
uuidParam
- the parameter name of the UUID parameter.uniqueIdParam
- the parameter name of the unique ID parameter.formatCodeParam
- the parameter name of the format code.formatCodeSchemeParam
- the parameter name of the format code scheme.confCodeParam
- the parameter name of the confidentiality code.confCodeSchemeParam
- the parameter name of the confidentiality code scheme.
-
-
Method Details
-
toEbXML
Called bytoEbXML(StoredQuery, EbXMLAdhocQueryRequest)
to transform slots.- Parameters:
query
- the query to transform.slots
- the slots to be filled.
-
fromEbXML
Called byfromEbXML(StoredQuery, EbXMLAdhocQueryRequest)
to transform slots.- Parameters:
query
- the target query.slots
- the slots to transform.
-
toEbXML
Transforms the query into its ebXML representation.Does not perform any transformation if one of the parameters is
null
.- Parameters:
query
- the query. Can benull
.ebXML
- the ebXML representation. Can benull
.
-
fromEbXML
Transforms the ebXML representation of a query into a query object.Does not perform any transformation if one of the parameters is
null
.- Parameters:
query
- the query. Can benull
.ebXML
- the ebXML representation. Can benull
.
-