Package graphql.schema.idl
Class ScalarInfo
- java.lang.Object
-
- graphql.schema.idl.ScalarInfo
-
@PublicApi public class ScalarInfo extends java.lang.Object
Info on all the standard scalar objects provided by graphql-java
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<GraphQLScalarType>
GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specificationstatic java.util.Map<java.lang.String,ScalarTypeDefinition>
GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS
A map of scalar type definitions provided by graphql-java
-
Constructor Summary
Constructors Constructor Description ScalarInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a scalar that is specified by the graphql specificationstatic boolean
isGraphqlSpecifiedScalar(java.lang.String scalarTypeName)
Returns true if the scalar type is a scalar that is specified by the graphql specification
-
-
-
Field Detail
-
GRAPHQL_SPECIFICATION_SCALARS
public static final java.util.List<GraphQLScalarType> GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specification
-
GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS
public static final java.util.Map<java.lang.String,ScalarTypeDefinition> GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS
A map of scalar type definitions provided by graphql-java
-
-
Method Detail
-
isGraphqlSpecifiedScalar
public static boolean isGraphqlSpecifiedScalar(java.lang.String scalarTypeName)
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
public static boolean isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
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
-
-