Class StringCoercing

java.lang.Object
io.smallrye.graphql.scalar.custom.StringCoercing
All Implemented Interfaces:
graphql.schema.Coercing<Object,String>

public class StringCoercing extends Object implements graphql.schema.Coercing<Object,String>
  • 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>