Class GetFromDocumentQueryTransformer<T extends GetFromDocumentQuery>

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetFromDocumentQueryTransformer<T>
Type Parameters:
T - the actual query type that is transformed by an extending subclass.
Direct Known Subclasses:
GetFoldersForDocumentQueryTransformer, GetRelatedDocumentsQueryTransformer

public abstract class GetFromDocumentQueryTransformer<T extends GetFromDocumentQuery> extends Object
Base class for transformers based on GetFromDocumentQuery.
Author:
Jens Riemschneider
  • Constructor Details

    • GetFromDocumentQueryTransformer

      public GetFromDocumentQueryTransformer()
  • Method Details

    • toEbXML

      protected void toEbXML(T query, QuerySlotHelper slots)
      Called by toEbXML(StoredQuery, EbXMLAdhocQueryRequest) to transform slots.
      Parameters:
      query - the query to transform.
      slots - the slots to be filled.
    • fromEbXML

      protected void fromEbXML(T query, QuerySlotHelper slots)
      Parameters:
      query - the target query.
      slots - the slots to transform.
    • toEbXML

      public void toEbXML(T query, EbXMLAdhocQueryRequest<AdhocQueryRequest> ebXML)
      Transforms the query into its ebXML representation.

      Does not perform any transformation if one of the parameters is null.

      Parameters:
      query - the query. Can be null.
      ebXML - the ebXML representation. Can be null.
    • fromEbXML

      public void fromEbXML(T query, EbXMLAdhocQueryRequest<AdhocQueryRequest> ebXML)
      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 be null.
      ebXML - the ebXML representation. Can be null.