Class TimestampFormatPlugin

  • All Implemented Interfaces:
    NodeValidatorPlugin

    public final class TimestampFormatPlugin
    extends java.lang.Object
    implements NodeValidatorPlugin
    Validates that timestamp shapes contain values that are compatible with their timestampFormat traits or contain values that are numbers or an RFC 3339 date-time production.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> apply​(Shape shape, Node value, ShapeIndex index)
      Applies the plugin to the given shape, node value, and shape index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimestampFormatPlugin

        public TimestampFormatPlugin()
    • Method Detail

      • apply

        public java.util.List<java.lang.String> apply​(Shape shape,
                                                      Node value,
                                                      ShapeIndex index)
        Description copied from interface: NodeValidatorPlugin
        Applies the plugin to the given shape, node value, and shape index.
        Specified by:
        apply in interface NodeValidatorPlugin
        Parameters:
        shape - Shape being checked.
        value - Value being evaluated.
        index - Shape index used to traverse the model.
        Returns:
        Returns any validation messages that were encountered.