Class OffsetDateTimeFormat

java.lang.Object
com.networknt.schema.format.BaseFormat
com.networknt.schema.format.AbstractFormat
ai.timefold.solver.service.json.api.schema.OffsetDateTimeFormat
All Implemented Interfaces:
com.networknt.schema.Format

public class OffsetDateTimeFormat extends com.networknt.schema.format.AbstractFormat
This Format implementation verifies the OffsetDateTime (with offset) value. The Schema needs to specify the standard format "date-time".

The motivation is to refer to ISO-8601 format in the error message, as the standard format refers to RFC 3339.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(String value)
     

    Methods inherited from class com.networknt.schema.format.AbstractFormat

    matches

    Methods inherited from class com.networknt.schema.format.BaseFormat

    getErrorMessageDescription, getName

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.schema.Format

    getMessageKey, matches, matches, matches, validate
  • Field Details

  • Constructor Details

    • OffsetDateTimeFormat

      public OffsetDateTimeFormat()
  • Method Details

    • matches

      public boolean matches(String value)
      Specified by:
      matches in class com.networknt.schema.format.AbstractFormat