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
public class QlValidator extends AbstractQlValidator
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
-
-
Constructor Summary
Constructors Constructor Description QlValidator()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
checkQSExpression
public void checkQSExpression(QuerySchemaExpression qsExpr)
-
checkIntoLocated
public void checkIntoLocated(QuerySchemaSelectQuery query)
-
checkIntoTableName
public void checkIntoTableName(QuerySchemaOperator operator)
-
checkDropQuery
public void checkDropQuery(QuerySchemaDropTableQuery dropQuery)
-
checkExistenceAliasInSource
public void checkExistenceAliasInSource(QuerySchemaSource source)
-
checkResolveSourceTable
public void checkResolveSourceTable(QuerySchemaSource source)
-
checkDuplicateAlias
public void checkDuplicateAlias(QuerySchemaOperator operator)
-
checkDuplicateAlias
public void checkDuplicateAlias(QuerySchemaSelectQuery query)
-
checkNestedTableInTotals
public void checkNestedTableInTotals(QuerySchemaSelectQuery query)
-
checkUnionOrderFieldsInSelectFields
public void checkUnionOrderFieldsInSelectFields(QuerySchemaSelectQuery query)
-
checkNumberFieldsInUnions
public void checkNumberFieldsInUnions(QuerySchemaSelectQuery query)
-
checkUsingTotalsInNestedQuery
public void checkUsingTotalsInNestedQuery(QuerySchemaNestedQuery nestedQuery)
-
checkUsingOrderInNestedQuery
public void checkUsingOrderInNestedQuery(QuerySchemaNestedQuery nestedQuery)
-
checkUsingIntoInNestedQuery
public void checkUsingIntoInNestedQuery(QuerySchemaNestedQuery nestedQuery)
-
checkForUpdateTables
public void checkForUpdateTables(QuerySchemaOperator operator)
-
checkUsingHierarchyOrderWithTotals
public void checkUsingHierarchyOrderWithTotals(QuerySchemaSelectQuery query)
-
checkUnionSimpleAndTableField
public void checkUnionSimpleAndTableField(QuerySchemaSelectQuery query)
-
checkGroupByFieldForNotFix
public void checkGroupByFieldForNotFix(QuerySchemaOperator operator)
-
checkNestedTableWithDistinct
public void checkNestedTableWithDistinct(QuerySchemaOperator operator)
-
checkGroupByForNestedQueryAndInExpression
public void checkGroupByForNestedQueryAndInExpression(QuerySchemaOperator operator)
-
checkGroupByForNestedTable
public void checkGroupByForNestedTable(QuerySchemaOperator operator)
-
checkGroupByInQueryWithHaving
public void checkGroupByInQueryWithHaving(QuerySchemaOperator operator)
-
checkTempTableQuery
public void checkTempTableQuery(QuerySchema queries)
-
checkIndexFieldsInSelectFields
public void checkIndexFieldsInSelectFields(QuerySchemaSelectQuery query)
-
checkPeriodsTotalsControlPoint
public void checkPeriodsTotalsControlPoint(QuerySchemaTotalControlPoint controlPoint)
-
checkExpressionWithStarByAlias
public void checkExpressionWithStarByAlias(QuerySchemaExpression expression)
-
checkAllowedDbView
public void checkAllowedDbView(QuerySchemaSelectQuery query)
-
checkTableWithParametersForVirtual
public void checkTableWithParametersForVirtual(QuerySchemaTable table)
-
checkSelectFieldsForTable
public void checkSelectFieldsForTable(QuerySchemaOperator operator)
-
checkOrderByForConstNumber
public void checkOrderByForConstNumber(QuerySchemaSelectQuery query)
-
checkNestedTableVirtualFieldsInTotalsPoint
public void checkNestedTableVirtualFieldsInTotalsPoint(QuerySchemaSelectQuery query)
-
checkNestedTableForFieldsFronAnotherNestedTable
public void checkNestedTableForFieldsFronAnotherNestedTable(NestedTableExpression table)
-
checkIndexesWithInto
public void checkIndexesWithInto(QuerySchemaSelectQuery query)
-
checkEmptyTable
public void checkEmptyTable(NestedTableExpression expression)
-
checkForEmptyTable
public void checkForEmptyTable(NestedTableAllFieldsExpression expression)
-
checkForDuplicates
public void checkForDuplicates(QuerySchemaSelectQuery query)
-
checkForDuplicates
public void checkForDuplicates(QuerySchemaOperator operator)
-
checkSortingTheSameField
public void checkSortingTheSameField(QuerySchemaSelectQuery query)
-
checkParameters
public void checkParameters(QuerySchema schema)
-
checkNumberLiteralExpression
public void checkNumberLiteralExpression(NumberLiteralExpression literal)
-
checkAmbiguousField
public void checkAmbiguousField(SinglePartCommonExpression expression)
-
checkLogicalExpression
public void checkLogicalExpression(QuerySchemaExpression expression)
-
checkLogicalExpressionInJoin
public void checkLogicalExpressionInJoin(QuerySchemaQuerySourceJoin join)
-
checkLogicalExpressionInCase
public void checkLogicalExpressionInCase(CaseBody body)
-
checkBinaryOperationForNullLiteral
public void checkBinaryOperationForNullLiteral(ABinaryOperatorsExpression expr)
-
checkUnaryOperationForNullLiteral
public void checkUnaryOperationForNullLiteral(AUnaryOperatorsExpression expr)
-
checkMultiPartCommonExpression
public void checkMultiPartCommonExpression(MultiPartCommonExpression expr)
-
checkStarExpression
public void checkStarExpression(StarExpression expression)
-
checkCompoundExpression
public void checkCompoundExpression(CompoundExpression expression)
-
checkGroupingSets
public void checkGroupingSets(QuerySchemaOperator operator)
-
checkALotSemicolons
public void checkALotSemicolons(QuerySchema schema)
-
checkAllowedKeywordInMainOperator
public void checkAllowedKeywordInMainOperator(QuerySchemaOperator operator)
-
checkAlias
protected HashSet<String> checkAlias(HashSet<String> seed, String alias, org.eclipse.emf.ecore.EObject expr, org.eclipse.emf.ecore.EStructuralFeature feature)
-
exprInAliasSelectFields
protected int exprInAliasSelectFields(QuerySchemaExpression expr, QuerySchemaSelectQuery query)
-
exprInAliasSelectFields
protected int exprInAliasSelectFields(CommonExpression expr, QuerySchemaSelectQuery query)
-
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
protected String findTableInSourceWithAlias(QuerySchemaSource source, String tableName)
-
checkEachDbView
protected void checkEachDbView(org.eclipse.emf.ecore.EObject object, QuerySchemaSelectQuery query)
-
processingCheckResult
protected void processingCheckResult(IExpressionTypeChecker.CheckResult checkResult)
-
inEmptyTable
protected boolean inEmptyTable(org.eclipse.emf.ecore.EObject container)
-
-