public class ExpressionConstraint extends AbstractDirectiveConstraint
| Constructor and Description |
|---|
ExpressionConstraint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(graphql.schema.GraphQLFieldDefinition fieldDefinition,
graphql.schema.GraphQLFieldsContainer fieldsContainer)
This is called to work out if this rule applies to a specified field
|
protected boolean |
appliesToListElements() |
boolean |
appliesToType(graphql.schema.GraphQLInputType inputType)
A derived class will be called to indicate whether this input type applies to the constraint
|
Documentation |
getDocumentation() |
protected java.util.List<graphql.GraphQLError> |
runConstraint(ValidationEnvironment validationEnvironment)
This is called to perform the constraint validation
|
appliesTo, asBigDecimal, asBoolean, asMap, getBoolArg, getIntArg, getMessageTemplate, getMessageTemplate, getName, getStrArg, getStringOrIDOrObjectOrMapLength, isMap, isOneOfTheseTypes, isOneOfTheseTypes, isStringOrID, isStringOrIDOrList, isStringOrIDOrListOrMap, mkError, mkError, mkMessageParams, runValidation, toStringpublic Documentation getDocumentation()
public boolean appliesToType(graphql.schema.GraphQLInputType inputType)
AbstractDirectiveConstraintappliesToType in class AbstractDirectiveConstraintinputType - the input typepublic boolean appliesTo(graphql.schema.GraphQLFieldDefinition fieldDefinition,
graphql.schema.GraphQLFieldsContainer fieldsContainer)
ValidationRuleappliesTo in interface ValidationRuleappliesTo in class AbstractDirectiveConstraintfieldDefinition - the field to checkfieldsContainer - the field containerprotected java.util.List<graphql.GraphQLError> runConstraint(ValidationEnvironment validationEnvironment)
AbstractDirectiveConstraintrunConstraint in class AbstractDirectiveConstraintvalidationEnvironment - the validation environmentprotected boolean appliesToListElements()
appliesToListElements in class AbstractDirectiveConstraint