public class MinConstraint extends AbstractDirectiveConstraint
| Constructor and Description |
|---|
MinConstraint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesToType(graphql.schema.GraphQLInputType inputType)
A derived class will be called to indicate whether this input type applies to the constraint
|
java.util.List<java.lang.String> |
getApplicableTypeNames() |
Documentation |
getDocumentation() |
protected boolean |
isOK(int comparisonResult) |
protected java.util.List<graphql.GraphQLError> |
runConstraint(ValidationEnvironment validationEnvironment)
This is called to perform the constraint validation
|
appliesTo, appliesTo, asBigDecimal, asBoolean, asMap, getBoolArg, getIntArg, getMessageTemplate, getMessageTemplate, getName, getStrArg, getStringOrIDOrObjectOrMapLength, isOneOfTheseTypes, isStringOrID, isStringOrIDOrList, isStringOrIDOrListOrMap, mkError, mkMessageParams, runValidation, toStringpublic Documentation getDocumentation()
protected boolean isOK(int comparisonResult)
public boolean appliesToType(graphql.schema.GraphQLInputType inputType)
AbstractDirectiveConstraintappliesToType in class AbstractDirectiveConstraintinputType - the input typepublic java.util.List<java.lang.String> getApplicableTypeNames()
protected java.util.List<graphql.GraphQLError> runConstraint(ValidationEnvironment validationEnvironment)
AbstractDirectiveConstraintrunConstraint in class AbstractDirectiveConstraintvalidationEnvironment - the validation environment