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

org.cqframework.cql.cql2elm.model.CallContext 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.model;

import org.hl7.cql.model.DataType;

public class CallContext {
    public CallContext(
            String libraryName,
            String operatorName,
            boolean allowPromotionAndDemotion,
            boolean allowFluent,
            boolean mustResolve,
            DataType... signature) {
        this.libraryName = libraryName; // allowed to be null

        if (operatorName == null || operatorName.equals("")) {
            throw new IllegalArgumentException("operatorName is null");
        }

        this.operatorName = operatorName;
        this.signature = new Signature(signature);
        this.allowPromotionAndDemotion = allowPromotionAndDemotion;
        this.allowFluent = allowFluent;
        this.mustResolve = mustResolve;
    }

    private String libraryName;

    public String getLibraryName() {
        return libraryName;
    }

    private String operatorName;

    public String getOperatorName() {
        return operatorName;
    }

    private Signature signature;

    public Signature getSignature() {
        return signature;
    }

    private boolean allowPromotionAndDemotion;

    public boolean getAllowPromotionAndDemotion() {
        return allowPromotionAndDemotion;
    }

    private boolean allowFluent;

    public boolean getAllowFluent() {
        return allowFluent;
    }

    private boolean mustResolve;

    public boolean getMustResolve() {
        return this.mustResolve;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy