Package graphql.schema.idl
Class ScalarInfo
java.lang.Object
graphql.schema.idl.ScalarInfo
Info on all the standard scalar objects provided by graphql-java
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<GraphQLScalarType> A list of the built-in scalar types as defined by the graphql specificationstatic final Map
<String, ScalarTypeDefinition> A map of scalar type definitions provided by graphql-java -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isGraphqlSpecifiedScalar
(GraphQLScalarType scalarType) Returns true if the scalar type is a scalar that is specified by the graphql specificationstatic boolean
isGraphqlSpecifiedScalar
(String scalarTypeName) Returns true if the scalar type is a scalar that is specified by the graphql specification
-
Field Details
-
GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specification -
GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS
A map of scalar type definitions provided by graphql-java
-
-
Constructor Details
-
ScalarInfo
public ScalarInfo()
-
-
Method Details
-
isGraphqlSpecifiedScalar
Returns true if the scalar type is a scalar that is specified by the graphql specification- Parameters:
scalarTypeName
- the name of the scalar type in question- Returns:
- true if the scalar type is specified by the graphql specification
-
isGraphqlSpecifiedScalar
Returns true if the scalar type is a scalar that is specified by the graphql specification- Parameters:
scalarType
- the type in question- Returns:
- true if the scalar type is specified by the graphql specification
-