Package org.cqframework.cql.cql2elm
Class CqlCompilerOptions
java.lang.Object
org.cqframework.cql.cql2elm.CqlCompilerOptions
translation options for Cql source files
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCqlCompilerOptions(boolean dateRangeOptimizations, boolean annotations, boolean locators, boolean resultTypes, boolean verifyOnly, boolean detailedErrors, CqlCompilerException.ErrorSeverity errorLevel, boolean disableListTraversal, boolean disableListDemotion, boolean disableListPromotion, boolean enableIntervalDemotion, boolean enableIntervalPromotion, boolean disableMethodInvocation, boolean requireFromKeyword, boolean validateUnits, boolean disableDefaultModelInfoLoad, LibraryBuilder.SignatureLevel signatureLevel, String compatibilityLevel) Constructor using defined SignatureLevel, and Compatibility Level, boolean set to true denotes addition of predefined optionCqlCompilerOptions(CqlCompilerException.ErrorSeverity errorLevel, CqlCompilerOptions.Options... options) CqlCompilerOptions(CqlCompilerException.ErrorSeverity errorLevel, LibraryBuilder.SignatureLevel signatureLevel, CqlCompilerOptions.Options... options) Constructor with defined ErrorSeverity, SignatureLevel, and arbitrary number of options.CqlCompilerOptions(CqlCompilerOptions.Options... options) Constructor with arbitrary number of options utilizing default ErrorSeverity (Info) and SignatureLevel (None) -
Method Summary
Modifier and TypeMethodDescriptionstatic CqlCompilerOptionsReturns default translator options: EnableAnnotations EnableLocators DisableListDemotion DisableListPromotion ErrorSeverity.Info SignatureLevel.NonebooleanReturn instance of CqlTranslatorOptions analyzeDataRequirements booleanbooleanReturn instance of CqlTranslatorOptions collapseDataRequirements booleanReturn instance of CqlTranslatorOptions compatibilityLevelbooleanReturn instance of CqlTranslatorOptions enableCqlOnly booleanReturn instance of CqlTranslatorOptions errorLevel (CqlTranslatorException.ErrorSeverity)Returns instance of CqlTranslatorOptions optionsReturn instance of CqlTranslatorOptions signatureLevel (LibraryBuilder.SignatureLevel)booleanReturn instance of CqlTranslatorOptions validateUnits booleanbooleanReturn instance of CqlTranslatorOptions verifyOnly booleanvoidsetAnalyzeDataRequirements(boolean analyzeDataRequirements) Set new analyzeDataRequirements booleanvoidsetCollapseDataRequirements(boolean collapseDataRequirements) Set new collapseDataRequirements booleanvoidsetCompatibilityLevel(String compatibilityLevel) Set new compatibilityLevelvoidsetEnableCqlOnly(boolean enableCqlOnly) Set new enableCqlOnly booleanvoidsetErrorLevel(CqlCompilerException.ErrorSeverity errorLevel) Set new errorLevel (CqlTranslatorException.ErrorSeverity)voidsetOptions(CqlCompilerOptions.Options... options) Set arbitrary number of optionsvoidsetSignatureLevel(LibraryBuilder.SignatureLevel signatureLevel) Set new signatureLevel (LibraryBuilder.SignatureLevel)voidsetValidateUnits(boolean validateUnits) Set new validateUnits booleanvoidsetVerifyOnly(boolean verifyOnly) Set new verifyOnly booleantoString()withAnalyzeDataRequirements(boolean analyzeDataRequirements) git Return this instance of CqlTranslatorOptions with addition of newly assigned analyzedDataRequirements booleanwithCollapseDataRequirements(boolean collapseDataRequirements) Return this instance of CqlTranslatorOptions with addition of newly assigned collapseDataRequirements booleanwithCompatibilityLevel(String compatibilityLevel) Return this instance of CqlTranslatorOptions with addition of newly assigned compatibilityLevelwithErrorLevel(CqlCompilerException.ErrorSeverity errorLevel) Return this instance of CqlTranslatorOptions with addition of newly assigned errorLevel (CqlTranslatorException.ErrorSeverity)withOptions(CqlCompilerOptions.Options... options) Return this instance of CqlTranslatorOptions using new collection of arbitrary number of optionswithSignatureLevel(LibraryBuilder.SignatureLevel signatureLevel) Return this instance of CqlTranslatorOptions with addition of newly assigned signatureLevel (LibraryBuilder.SignatureLevel)withValidateUnits(boolean validateUnits) Return this instance of CqlTranslatorOptions with addition of newly assigned validateUnits booleanwithVerifyOnly(boolean verifyOnly) Return this instance of CqlTranslatorOptions with addition of newly assigned verifyOnly boolean
-
Constructor Details
-
CqlCompilerOptions
public CqlCompilerOptions() -
CqlCompilerOptions
Constructor with arbitrary number of options utilizing default ErrorSeverity (Info) and SignatureLevel (None)- Parameters:
options-
-
CqlCompilerOptions
public CqlCompilerOptions(CqlCompilerException.ErrorSeverity errorLevel, CqlCompilerOptions.Options... options) -
CqlCompilerOptions
public CqlCompilerOptions(CqlCompilerException.ErrorSeverity errorLevel, LibraryBuilder.SignatureLevel signatureLevel, CqlCompilerOptions.Options... options) Constructor with defined ErrorSeverity, SignatureLevel, and arbitrary number of options.- Parameters:
errorLevel-signatureLevel-options-
-
CqlCompilerOptions
public CqlCompilerOptions(boolean dateRangeOptimizations, boolean annotations, boolean locators, boolean resultTypes, boolean verifyOnly, boolean detailedErrors, CqlCompilerException.ErrorSeverity errorLevel, boolean disableListTraversal, boolean disableListDemotion, boolean disableListPromotion, boolean enableIntervalDemotion, boolean enableIntervalPromotion, boolean disableMethodInvocation, boolean requireFromKeyword, boolean validateUnits, boolean disableDefaultModelInfoLoad, LibraryBuilder.SignatureLevel signatureLevel, String compatibilityLevel) Constructor using defined SignatureLevel, and Compatibility Level, boolean set to true denotes addition of predefined option- Parameters:
dateRangeOptimizations- booleanannotations- booleanlocators- booleanresultTypes- booleanverifyOnly- booleandetailedErrors- booleanerrorLevel- booleandisableListTraversal- booleandisableListDemotion- booleandisableListPromotion- booleanenableIntervalDemotion- booleanenableIntervalPromotion- booleandisableMethodInvocation- booleanrequireFromKeyword- booleanvalidateUnits- booleansignatureLevel- LibraryBuilder.SignatureLevelcompatibilityLevel- String
-
-
Method Details
-
defaultOptions
Returns default translator options: EnableAnnotations EnableLocators DisableListDemotion DisableListPromotion ErrorSeverity.Info SignatureLevel.None- Returns:
-
getOptions
Returns instance of CqlTranslatorOptions options- Returns:
-
setOptions
Set arbitrary number of options- Parameters:
options-
-
withOptions
Return this instance of CqlTranslatorOptions using new collection of arbitrary number of options- Parameters:
options-- Returns:
-
getCompatibilityLevel
Return instance of CqlTranslatorOptions compatibilityLevel- Returns:
-
setCompatibilityLevel
Set new compatibilityLevel- Parameters:
compatibilityLevel-
-
withCompatibilityLevel
Return this instance of CqlTranslatorOptions with addition of newly assigned compatibilityLevel- Parameters:
compatibilityLevel-- Returns:
-
getVerifyOnly
public boolean getVerifyOnly()Return instance of CqlTranslatorOptions verifyOnly boolean- Returns:
-
setVerifyOnly
public void setVerifyOnly(boolean verifyOnly) Set new verifyOnly boolean- Parameters:
verifyOnly-
-
withVerifyOnly
Return this instance of CqlTranslatorOptions with addition of newly assigned verifyOnly boolean- Parameters:
verifyOnly-- Returns:
-
getEnableCqlOnly
public boolean getEnableCqlOnly()Return instance of CqlTranslatorOptions enableCqlOnly boolean- Returns:
-
setEnableCqlOnly
public void setEnableCqlOnly(boolean enableCqlOnly) Set new enableCqlOnly boolean- Parameters:
enableCqlOnly-
-
getValidateUnits
public boolean getValidateUnits()Return instance of CqlTranslatorOptions validateUnits boolean- Returns:
-
setValidateUnits
public void setValidateUnits(boolean validateUnits) Set new validateUnits boolean- Parameters:
validateUnits-
-
withValidateUnits
Return this instance of CqlTranslatorOptions with addition of newly assigned validateUnits boolean- Parameters:
validateUnits-- Returns:
-
getErrorLevel
Return instance of CqlTranslatorOptions errorLevel (CqlTranslatorException.ErrorSeverity)- Returns:
-
setErrorLevel
Set new errorLevel (CqlTranslatorException.ErrorSeverity)- Parameters:
errorLevel-
-
withErrorLevel
Return this instance of CqlTranslatorOptions with addition of newly assigned errorLevel (CqlTranslatorException.ErrorSeverity)- Parameters:
errorLevel-- Returns:
-
getSignatureLevel
Return instance of CqlTranslatorOptions signatureLevel (LibraryBuilder.SignatureLevel)- Returns:
-
setSignatureLevel
Set new signatureLevel (LibraryBuilder.SignatureLevel)- Parameters:
signatureLevel-
-
withSignatureLevel
Return this instance of CqlTranslatorOptions with addition of newly assigned signatureLevel (LibraryBuilder.SignatureLevel)- Parameters:
signatureLevel-- Returns:
-
getCollapseDataRequirements
public boolean getCollapseDataRequirements()Return instance of CqlTranslatorOptions collapseDataRequirements boolean- Returns:
-
setCollapseDataRequirements
public void setCollapseDataRequirements(boolean collapseDataRequirements) Set new collapseDataRequirements boolean- Parameters:
collapseDataRequirements-
-
withCollapseDataRequirements
Return this instance of CqlTranslatorOptions with addition of newly assigned collapseDataRequirements boolean- Parameters:
collapseDataRequirements-- Returns:
-
getAnalyzeDataRequirements
public boolean getAnalyzeDataRequirements()Return instance of CqlTranslatorOptions analyzeDataRequirements boolean- Returns:
-
setAnalyzeDataRequirements
public void setAnalyzeDataRequirements(boolean analyzeDataRequirements) Set new analyzeDataRequirements boolean- Parameters:
analyzeDataRequirements-
-
withAnalyzeDataRequirements
git Return this instance of CqlTranslatorOptions with addition of newly assigned analyzedDataRequirements boolean- Parameters:
analyzeDataRequirements-- Returns:
-
toString
-