public class MinConstraint extends AbstractDirectiveConstraint
| Constructor and Description |
|---|
MinConstraint() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
appliesToListElements() |
protected 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<graphql.schema.GraphQLScalarType> |
getApplicableTypes() |
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, isMap, isOneOfTheseTypes, isOneOfTheseTypes, isStringOrID, isStringOrIDOrList, isStringOrIDOrListOrMap, mkError, mkError, mkMessageParams, runValidation, toStringpublic Documentation getDocumentation()
protected boolean isOK(int comparisonResult)
public java.util.List<graphql.schema.GraphQLScalarType> getApplicableTypes()
protected boolean appliesToType(graphql.schema.GraphQLInputType inputType)
AbstractDirectiveConstraintappliesToType in class AbstractDirectiveConstraintinputType - the input typeprotected java.util.List<graphql.GraphQLError> runConstraint(ValidationEnvironment validationEnvironment)
AbstractDirectiveConstraintrunConstraint in class AbstractDirectiveConstraintvalidationEnvironment - the validation environmentprotected boolean appliesToListElements()
appliesToListElements in class AbstractDirectiveConstraint