Class BaseDateCoercing<I,O>

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

public abstract class BaseDateCoercing<I,O> extends Object implements graphql.schema.Coercing<I,O>
  • Field Details

    • format

      protected final String format
    • type

      protected final Class<I> type
  • Constructor Details

    • BaseDateCoercing

      public BaseDateCoercing(String format, Class<I> type)
  • Method Details

    • serialize

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

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

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

      protected abstract O doSerialize(I input)
    • parseString

      protected abstract I parseString(String value) throws ParseException
      Throws:
      ParseException