Package com._1c.g5.v8.dt.ql.validation
Class QlValidator
java.lang.Object
org.eclipse.xtext.validation.AbstractInjectableValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator
com._1c.g5.v8.dt.ql.validation.AbstractQlValidator
com._1c.g5.v8.dt.ql.validation.QlValidator
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
,org.eclipse.xtext.validation.ValidationMessageAcceptor
- Direct Known Subclasses:
AbstractQlDcsValidator
,AbstractRightQlValidator
Custom validation rules.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
-
Field Summary
Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
Fields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor
INSIGNIFICANT_INDEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAlias
(HashSet<String> seed, String alias, org.eclipse.emf.ecore.EObject expr, org.eclipse.emf.ecore.EStructuralFeature feature) void
void
void
checkALotSemicolons
(QuerySchema schema) void
checkAmbiguousField
(SinglePartCommonExpression expression) void
void
checkCompoundExpression
(CompoundExpression expression) void
checkDropQuery
(QuerySchemaDropTableQuery dropQuery) void
checkDuplicateAlias
(QuerySchemaOperator operator) void
protected void
checkEachDbView
(org.eclipse.emf.ecore.EObject object, QuerySchemaSelectQuery query) void
checkEmptyTable
(NestedTableExpression expression) void
void
checkExpressionWithStarByAlias
(QuerySchemaExpression expression) void
checkForDuplicates
(QuerySchemaOperator operator) void
void
checkForEmptyTable
(NestedTableAllFieldsExpression expression) void
checkForUpdateTables
(QuerySchemaOperator operator) void
void
void
void
void
checkGroupingSets
(QuerySchemaOperator operator) void
void
void
void
void
checkIntoTableName
(QuerySchemaOperator operator) void
checkLogicalExpression
(QuerySchemaExpression expression) void
void
void
void
void
void
void
void
void
void
void
checkParameters
(QuerySchema schema) void
checkPeriodsTotalsControlPoint
(QuerySchemaTotalControlPoint controlPoint) void
void
void
checkSelectFieldsForTable
(QuerySchemaOperator operator) void
void
checkStarExpression
(StarExpression expression) void
void
checkTempTableQuery
(QuerySchema queries) void
void
void
void
void
checkUsingIntoInNestedQuery
(QuerySchemaNestedQuery nestedQuery) void
checkUsingOrderInNestedQuery
(QuerySchemaNestedQuery nestedQuery) void
checkUsingTotalsInNestedQuery
(QuerySchemaNestedQuery nestedQuery) protected int
protected int
protected AbstractQuerySchemaSource
findTableInSource
(QuerySchemaSource source, String tableName, boolean checkForAlias) protected AbstractQuerySchemaSource
findTableInSource
(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName, boolean checkForAlias) protected String
findTableInSourceWithAlias
(QuerySchemaSource source, String tableName) protected String
findTableInSourceWithAlias
(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName) protected ArrayList<AbstractQuerySchemaSource>
protected boolean
inEmptyTable
(org.eclipse.emf.ecore.EObject container) protected boolean
protected void
processingCheckResult
(IExpressionTypeChecker.CheckResult checkResult) Methods inherited from class com._1c.g5.v8.dt.ql.validation.AbstractQlValidator
getEPackages
Methods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getCancelIndicator, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, handleExceptionDuringValidation, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning, warning
Methods inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
getCurrentLanguage, isLanguageSpecific, isResponsible, register, validate, validate, validate
-
Constructor Details
-
QlValidator
public QlValidator()
-
-
Method Details
-
checkQSExpression
-
checkIntoLocated
-
checkIntoTableName
-
checkDropQuery
-
checkAddedTempTable
-
checkExistenceAliasInSource
-
checkResolveSourceTable
-
checkDuplicateAlias
-
checkDuplicateAlias
-
checkNestedTableInTotals
-
checkUnionOrderFieldsInSelectFields
-
checkNumberFieldsInUnions
-
checkUsingTotalsInNestedQuery
-
checkUsingOrderInNestedQuery
-
checkUsingIntoInNestedQuery
-
checkForUpdateTables
-
checkUsingHierarchyOrderWithTotals
-
checkUnionSimpleAndTableField
-
checkGroupByFieldForNotFix
-
checkNestedTableWithDistinct
-
checkGroupByForNestedQueryAndInExpression
-
checkGroupByForNestedTable
-
checkGroupByInQueryWithHaving
-
checkTempTableQuery
-
checkIndexFieldsInSelectFields
-
checkPeriodsTotalsControlPoint
-
checkExpressionWithStarByAlias
-
checkAllowedDbView
-
checkTableWithParametersForVirtual
-
checkSelectFieldsForTable
-
checkOrderByForConstNumber
-
checkNestedTableVirtualFieldsInTotalsPoint
-
checkNestedTableForFieldsFronAnotherNestedTable
-
checkIndexesWithInto
-
checkEmptyTable
-
checkForEmptyTable
-
checkForDuplicates
-
checkForDuplicates
-
checkSortingTheSameField
-
checkParameters
-
checkNumberLiteralExpression
-
checkAmbiguousField
-
checkLogicalExpression
-
checkLogicalExpressionInJoin
-
checkLogicalExpressionInCase
-
checkBinaryOperationForNullLiteral
-
checkUnaryOperationForNullLiteral
-
checkMultiPartCommonExpression
-
checkStarExpression
-
checkCompoundExpression
-
checkGroupingSets
-
checkIndexSets
-
checkALotSemicolons
-
checkAllowedKeywordInMainOperator
-
checkAlias
-
exprInAliasSelectFields
-
exprInAliasSelectFields
-
getAbstractSource
protected ArrayList<AbstractQuerySchemaSource> getAbstractSource(ArrayList<AbstractQuerySchemaSource> seed, QuerySchemaSource expr) -
findTableInSource
protected AbstractQuerySchemaSource findTableInSource(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName, boolean checkForAlias) -
findTableInSourceWithAlias
protected String findTableInSourceWithAlias(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName) -
findTableInSource
protected AbstractQuerySchemaSource findTableInSource(QuerySchemaSource source, String tableName, boolean checkForAlias) -
findTableInSourceWithAlias
-
checkEachDbView
-
isFindSourceInParentQuery
-
processingCheckResult
-
inEmptyTable
protected boolean inEmptyTable(org.eclipse.emf.ecore.EObject container)
-