Package com.ibm.fhir.cql.translator.impl
Class InJVMCqlTranslationProvider
- java.lang.Object
-
- com.ibm.fhir.cql.translator.impl.BaseCqlTranslationProvider
-
- com.ibm.fhir.cql.translator.impl.InJVMCqlTranslationProvider
-
- All Implemented Interfaces:
CqlTranslationProvider
public class InJVMCqlTranslationProvider extends BaseCqlTranslationProvider
Provide an implementation of the CqlTranslationProvider interface that uses the CQL translator directly inside the JVM.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.fhir.cql.translator.CqlTranslationProvider
CqlTranslationProvider.Format, CqlTranslationProvider.Option
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.cql.translator.impl.BaseCqlTranslationProvider
DEFAULT_TARGET_FORMAT
-
-
Constructor Summary
Constructors Constructor Description InJVMCqlTranslationProvider()
InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibraryManager libraryManager, org.cqframework.cql.cql2elm.ModelManager modelManager)
InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InJVMCqlTranslationProvider
addLibrarySourceProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
java.util.List<org.cqframework.cql.elm.execution.Library>
translate(java.io.InputStream cql, java.util.List<CqlTranslationProvider.Option> options, CqlTranslationProvider.Format targetFormat)
-
Methods inherited from class com.ibm.fhir.cql.translator.impl.BaseCqlTranslationProvider
getDefaultOptions, translate, translate
-
-
-
-
Constructor Detail
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider()
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibraryManager libraryManager, org.cqframework.cql.cql2elm.ModelManager modelManager)
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
-
Method Detail
-
addLibrarySourceProvider
public InJVMCqlTranslationProvider addLibrarySourceProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
translate
public java.util.List<org.cqframework.cql.elm.execution.Library> translate(java.io.InputStream cql, java.util.List<CqlTranslationProvider.Option> options, CqlTranslationProvider.Format targetFormat) throws CqlTranslationException
- Throws:
CqlTranslationException
-
-