public class QueryResponseTransformer extends Object
QueryResponse
and the EbXMLQueryResponse
representation.Constructor and Description |
---|
QueryResponseTransformer(EbXMLFactory factory)
Constructs the transformer.
|
Modifier and Type | Method and Description |
---|---|
QueryResponse |
fromEbXML(EbXMLQueryResponse ebXML)
Transforms a
EbXMLQueryResponse to a QueryResponse . |
EbXMLQueryResponse |
toEbXML(QueryResponse response)
Transforms a
QueryResponse to a EbXMLQueryResponse . |
public QueryResponseTransformer(EbXMLFactory factory)
factory
- the factory for ebXML objects.public EbXMLQueryResponse toEbXML(QueryResponse response)
QueryResponse
to a EbXMLQueryResponse
.response
- the response. Can be null
.null
if the input was null
.public QueryResponse fromEbXML(EbXMLQueryResponse ebXML)
EbXMLQueryResponse
to a QueryResponse
.ebXML
- the ebXML representation. Can be null
.null
if the input was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.