Class CodeTransformer
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.ebxml.CodeTransformer
Transforms between
Code
and its ebXML representation.- Author:
- Jens Riemschneider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromEbXML
(EbXMLClassification classification) Transforms aEbXMLClassification
to aCode
instance.toEbXML
(Code code, EbXMLObjectLibrary objectLibrary) Transforms aCode
instance to aEbXMLClassification
.
-
Constructor Details
-
CodeTransformer
Constructs the transformer- Parameters:
ebXMLFactory
- factory for version independent ebXML objects.
-
-
Method Details
-
toEbXML
Transforms aCode
instance to aEbXMLClassification
.- Parameters:
code
- the code instance to transform. Can benull
.objectLibrary
- the object library.- Returns:
- the
EbXMLClassification
.null
if the input wasnull
.
-
fromEbXML
Transforms aEbXMLClassification
to aCode
instance.- Parameters:
classification
-EbXMLClassification
. Can benull
.- Returns:
- the code instance.
null
if the input wasnull
.
-