org.cqframework.cql.cql2elm.CqlTranslatorOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cql-to-elm Show documentation
Show all versions of cql-to-elm Show documentation
The cql-to-elm library for the Clinical Quality Language Java reference implementation
package org.cqframework.cql.cql2elm;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import java.util.EnumSet;
import java.util.Set;
public class CqlTranslatorOptions {
public enum Format {
XML,
JSON,
COFFEE
}
@JsonUnwrapped
private CqlCompilerOptions cqlCompilerOptions;
private Set formats;
public static CqlTranslatorOptions defaultOptions() {
return new CqlTranslatorOptions()
.withCqlCompilerOptions(CqlCompilerOptions.defaultOptions())
.withFormats(EnumSet.of(Format.XML));
}
public CqlCompilerOptions getCqlCompilerOptions() {
return this.cqlCompilerOptions;
}
public void setCqlCompilerOptions(CqlCompilerOptions cqlCompilerOptions) {
this.cqlCompilerOptions = cqlCompilerOptions;
}
public CqlTranslatorOptions withCqlCompilerOptions(CqlCompilerOptions cqlCompilerOptions) {
this.setCqlCompilerOptions(cqlCompilerOptions);
return this;
}
public Set getFormats() {
return this.formats;
}
public void setFormats(Set formats) {
this.formats = formats;
}
public CqlTranslatorOptions withFormats(Set formats) {
this.setFormats(formats);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy