Class DatatypeCoercing<I>

java.lang.Object
io.jmix.graphql.schema.scalar.coercing.DatatypeCoercing<I>
All Implemented Interfaces:
graphql.schema.Coercing<I,String>

public class DatatypeCoercing<I> extends Object implements graphql.schema.Coercing<I,String>
  • Field Details

    • type

      protected Class<I> type
    • datatype

      protected Datatype<I> datatype
    • incorrectFormatMessage

      protected String incorrectFormatMessage
  • Constructor Details

    • DatatypeCoercing

      public DatatypeCoercing(Class<I> type, Datatype<I> datatype, String incorrectFormatMessage)
  • Method Details

    • serialize

      public String serialize(Object o) throws graphql.schema.CoercingSerializeException
      Specified by:
      serialize in interface graphql.schema.Coercing<I,String>
      Throws:
      graphql.schema.CoercingSerializeException
    • parseValue

      public I parseValue(Object input)
      Specified by:
      parseValue in interface graphql.schema.Coercing<I,String>
    • parseLiteral

      public I parseLiteral(Object input)
      Specified by:
      parseLiteral in interface graphql.schema.Coercing<I,String>