public static class RegexScalar.Builder
extends java.lang.Object
RegexScalar| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RegexScalar.Builder |
addPattern(java.util.regex.Pattern pattern)
Adds a
Pattern that controls the acceptable value for this scalar |
RegexScalar.Builder |
addPatterns(java.util.regex.Pattern... patterns)
Adds a
Pattern that controls the acceptable value for this scalar |
graphql.schema.GraphQLScalarType |
build() |
RegexScalar.Builder |
description(java.lang.String description)
Sets the description of the regex scalar
|
RegexScalar.Builder |
name(java.lang.String name)
Sets the name of the regex scalar
|
public RegexScalar.Builder name(java.lang.String name)
name - the name of the regex scalarpublic RegexScalar.Builder description(java.lang.String description)
description - the description of the regex scalarpublic RegexScalar.Builder addPattern(java.util.regex.Pattern pattern)
Pattern that controls the acceptable value for this scalarpattern - the regex patternpublic RegexScalar.Builder addPatterns(java.util.regex.Pattern... patterns)
Pattern that controls the acceptable value for this scalarpatterns - one of more regex patternspublic graphql.schema.GraphQLScalarType build()
RegexScalar