- All Implemented Interfaces:
graphql.schema.Coercing<Object,String>
public class StringCoercing
extends Object
implements graphql.schema.Coercing<Object,String>
-
Constructor Summary
Constructors
-
Method Summary
graphql.language.Value<?>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graphql.schema.Coercing
parseLiteral, parseLiteral, parseValue, serialize, valueToLiteral
-
Constructor Details
-
StringCoercing
public StringCoercing(String customScalarClass)
-
Method Details
-
serialize
public String serialize(Object input)
throws graphql.schema.CoercingSerializeException
- Specified by:
serialize in interface graphql.schema.Coercing<Object,String>
- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public Object parseValue(Object input)
throws graphql.schema.CoercingParseValueException
- Specified by:
parseValue in interface graphql.schema.Coercing<Object,String>
- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public Object parseLiteral(Object input)
throws graphql.schema.CoercingParseLiteralException
- Specified by:
parseLiteral in interface graphql.schema.Coercing<Object,String>
- Throws:
graphql.schema.CoercingParseLiteralException
-
valueToLiteral
public graphql.language.Value<?> valueToLiteral(Object input)
- Specified by:
valueToLiteral in interface graphql.schema.Coercing<Object,String>