public class ScalarInfo extends Object
Modifier and Type | Field and Description |
---|---|
static List<GraphQLScalarType> |
GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specification
|
static Map<String,ScalarTypeDefinition> |
STANDARD_SCALAR_DEFINITIONS
A map of scalar type definitions provided by graphql-java
|
static List<GraphQLScalarType> |
STANDARD_SCALARS
A list of the scalar types provided by graphql-java
|
Constructor and Description |
---|
ScalarInfo() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a scalar that is specified by the graphql specification
|
static boolean |
isGraphqlSpecifiedScalar(String scalarTypeName)
Returns true if the scalar type is a scalar that is specified by the graphql specification
|
static boolean |
isStandardScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a standard one provided by graphql-java
|
static boolean |
isStandardScalar(String scalarTypeName)
Returns true if the scalar type is a standard one provided by graphql-java
|
public static final List<GraphQLScalarType> STANDARD_SCALARS
public static final List<GraphQLScalarType> GRAPHQL_SPECIFICATION_SCALARS
public static final Map<String,ScalarTypeDefinition> STANDARD_SCALAR_DEFINITIONS
public static boolean isStandardScalar(GraphQLScalarType scalarType)
scalarType
- the type in questionpublic static boolean isStandardScalar(String scalarTypeName)
scalarTypeName
- the name of the scalar type in questionpublic static boolean isGraphqlSpecifiedScalar(String scalarTypeName)
scalarTypeName
- the name of the scalar type in questionpublic static boolean isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
scalarType
- the type in questionCopyright © 2019. All rights reserved.