Package graphql.scalars.datetime
Class LocalTimeCoercing
- java.lang.Object
-
- graphql.scalars.datetime.LocalTimeCoercing
-
- All Implemented Interfaces:
graphql.schema.Coercing<java.time.LocalTime,java.lang.String>
public class LocalTimeCoercing extends java.lang.Object implements graphql.schema.Coercing<java.time.LocalTime,java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description LocalTimeCoercing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalTimeparseLiteral(graphql.language.Value<?> input, graphql.execution.CoercedVariables variables, graphql.GraphQLContext graphQLContext, java.util.Locale locale)java.time.LocalTimeparseValue(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale)java.lang.Stringserialize(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale)graphql.language.Value<?>valueToLiteral(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale)
-
-
-
Method Detail
-
serialize
public java.lang.String serialize(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale) throws graphql.schema.CoercingSerializeException- Specified by:
serializein interfacegraphql.schema.Coercing<java.time.LocalTime,java.lang.String>- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public java.time.LocalTime parseValue(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale) throws graphql.schema.CoercingParseValueException- Specified by:
parseValuein interfacegraphql.schema.Coercing<java.time.LocalTime,java.lang.String>- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public java.time.LocalTime parseLiteral(graphql.language.Value<?> input, graphql.execution.CoercedVariables variables, graphql.GraphQLContext graphQLContext, java.util.Locale locale) throws graphql.schema.CoercingParseLiteralException- Specified by:
parseLiteralin interfacegraphql.schema.Coercing<java.time.LocalTime,java.lang.String>- Throws:
graphql.schema.CoercingParseLiteralException
-
valueToLiteral
public graphql.language.Value<?> valueToLiteral(java.lang.Object input, graphql.GraphQLContext graphQLContext, java.util.Locale locale)- Specified by:
valueToLiteralin interfacegraphql.schema.Coercing<java.time.LocalTime,java.lang.String>
-
-