Package graphql.validation.rules
Class UniqueDirectiveNamesPerLocation
- java.lang.Object
-
- graphql.validation.AbstractRule
-
- graphql.validation.rules.UniqueDirectiveNamesPerLocation
-
public class UniqueDirectiveNamesPerLocation extends AbstractRule
https://facebook.github.io/graphql/June2018/#sec-Directives-Are-Unique-Per-Location
-
-
Constructor Summary
Constructors Constructor Description UniqueDirectiveNamesPerLocation(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkDocument(Document document)
void
checkField(Field field)
void
checkFragmentDefinition(FragmentDefinition fragmentDefinition)
void
checkFragmentSpread(FragmentSpread fragmentSpread)
void
checkInlineFragment(InlineFragment inlineFragment)
void
checkOperationDefinition(OperationDefinition operationDefinition)
-
Methods inherited from class graphql.validation.AbstractRule
addError, addError, addError, checkArgument, checkDirective, checkObjectValue, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, documentFinished, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, i18n, i18n, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setVisitFragmentSpreads, toString
-
-
-
-
Constructor Detail
-
UniqueDirectiveNamesPerLocation
public UniqueDirectiveNamesPerLocation(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Detail
-
checkDocument
public void checkDocument(Document document)
- Overrides:
checkDocument
in classAbstractRule
-
checkInlineFragment
public void checkInlineFragment(InlineFragment inlineFragment)
- Overrides:
checkInlineFragment
in classAbstractRule
-
checkFragmentDefinition
public void checkFragmentDefinition(FragmentDefinition fragmentDefinition)
- Overrides:
checkFragmentDefinition
in classAbstractRule
-
checkFragmentSpread
public void checkFragmentSpread(FragmentSpread fragmentSpread)
- Overrides:
checkFragmentSpread
in classAbstractRule
-
checkField
public void checkField(Field field)
- Overrides:
checkField
in classAbstractRule
-
checkOperationDefinition
public void checkOperationDefinition(OperationDefinition operationDefinition)
- Overrides:
checkOperationDefinition
in classAbstractRule
-
-