Class DefaultDateTimeCoercing

java.lang.Object
org.kie.kogito.index.api.DefaultDateTimeCoercing
All Implemented Interfaces:
graphql.schema.Coercing<Object,String>, DateTimeCoercing

@ApplicationScoped public class DefaultDateTimeCoercing extends Object implements DateTimeCoercing
  • Constructor Details

    • DefaultDateTimeCoercing

      public DefaultDateTimeCoercing()
  • Method Details

    • parseDateTime

      public static ZonedDateTime parseDateTime(String s)
    • formatDateTime

      public String formatDateTime(ZonedDateTime dateTime)
    • 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)
      Specified by:
      parseValue in interface graphql.schema.Coercing<Object,String>
    • parseLiteral

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