All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cqframework.cql.cql2elm.CqlTranslatorOptions Maven / Gradle / Ivy

Go to download

The cql-to-elm library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
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