Class JsArrayOfJsObjSpec

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRequired()
      Returns whether the key is optional.
      JsSpec nullable()
      Returns the same spec with the nullable flag enabled
      JsSpec optional()
      Returns the same spec with the optional flag enabled
      JsSpecParser parser()
      Returns the deserializer used during the parsing process to parse an array of bytes or string
      java.util.Set<JsErrorPair> test​(JsPath parentPath, JsValue value)
      verify if the given value satisfy this spec.
      • Methods inherited from class java.lang.Object

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

      • isRequired

        public boolean isRequired()
        Description copied from interface: JsSpec
        Returns whether the key is optional.
        Specified by:
        isRequired in interface JsSpec
        Returns:
        whether the key is optional.
      • nullable

        public JsSpec nullable()
        Description copied from interface: JsSpec
        Returns the same spec with the nullable flag enabled
        Specified by:
        nullable in interface JsSpec
        Returns:
        the same spec with the nullable flag enabled
      • optional

        public JsSpec optional()
        Description copied from interface: JsSpec
        Returns the same spec with the optional flag enabled
        Specified by:
        optional in interface JsSpec
        Returns:
        the same spec with the optional flag enabled
      • parser

        public JsSpecParser parser()
        Description copied from interface: JsSpec
        Returns the deserializer used during the parsing process to parse an array of bytes or string
        Specified by:
        parser in interface JsSpec
        Returns:
        the deserializer used during the parsing process to parse an array of bytes or string into a json value
      • test

        public java.util.Set<JsErrorPair> test​(JsPath parentPath,
                                               JsValue value)
        Description copied from interface: JsSpec
        verify if the given value satisfy this spec.
        Specified by:
        test in interface JsSpec
        Parameters:
        parentPath - the path where the tested value is located.
        value - the tested value
        Returns:
        a set of path/error pairs