Class JsObjSpec

  • All Implemented Interfaces:
    JsSpec

    public final class JsObjSpec
    extends java.lang.Object
    implements JsSpec
    Represents a specification of a Json object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRequired()
      Returns whether the key is optional.
      static JsObjSpec lenient​(java.lang.String key, JsSpec spec)
      static factory method to create a lenient JsObjSpec of one mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2)
      static factory method to create a lenient JsObjSpec of two mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3)
      static factory method to create a lenient JsObjSpec of three mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4)
      static factory method to create a lenient JsObjSpec of four mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5)
      static factory method to create a lenient JsObjSpec of five mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6)
      static factory method to create a lenient JsObjSpec of six mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7)
      static factory method to create a lenient JsObjSpec of seven mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8)
      static factory method to create a lenient JsObjSpec of eight mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9)
      static factory method to create a lenient JsObjSpec of nine mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10)
      static factory method to create a lenient JsObjSpec of ten mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11)
      static factory method to create a lenient JsObjSpec of eleven mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12)
      static factory method to create a lenient JsObjSpec of twelve mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13)
      static factory method to create a lenient JsObjSpec of thirteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14)
      static factory method to create a lenient JsObjSpec of fourteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15)
      static factory method to create a lenient JsObjSpec of fifteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16)
      static factory method to create a lenient JsObjSpec of sixteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17)
      static factory method to create a lenient JsObjSpec of seventeen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18)
      static factory method to create a lenient JsObjSpec of eighteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18, java.lang.String key19, JsSpec spec19)
      static factory method to create a lenient JsObjSpec of nineteen mappings.
      static JsObjSpec lenient​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18, java.lang.String key19, JsSpec spec19, java.lang.String key20, JsSpec spec20)
      static factory method to create a lenient JsObjSpec of twenty mappings.
      JsObjSpec nullable()
      Returns the same spec with the nullable flag enabled
      JsObjSpec 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
      JsObjSpec set​(java.lang.String key, JsSpec spec)
      add the given key spec to this
      static JsObjSpec strict​(java.lang.String key, JsSpec spec)
      static factory method to create a strict JsObjSpec of one mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2)
      static factory method to create a strict JsObjSpec of two mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3)
      static factory method to create a strict JsObjSpec of three mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4)
      static factory method to create a strict JsObjSpec of four mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5)
      static factory method to create a strict JsObjSpec of five mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6)
      static factory method to create a strict JsObjSpec of six mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7)
      static factory method to create a strict JsObjSpec of seven mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8)
      static factory method to create a strict JsObjSpec of eight mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9)
      static factory method to create a strict JsObjSpec of nine mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10)  
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11)
      static factory method to create a strict JsObjSpec of eleven mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12)
      static factory method to create a strict JsObjSpec of twelve mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13)
      static factory method to create a strict JsObjSpec of thirteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14)
      static factory method to create a strict JsObjSpec of fourteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15)
      static factory method to create a strict JsObjSpec of fifteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16)
      static factory method to create a strict JsObjSpec of sixteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17)
      static factory method to create a strict JsObjSpec of seventeen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18)
      static factory method to create a strict JsObjSpec of eighteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18, java.lang.String key19, JsSpec spec19)
      static factory method to create a strict JsObjSpec of nineteen mappings.
      static JsObjSpec strict​(java.lang.String key1, JsSpec spec1, java.lang.String key2, JsSpec spec2, java.lang.String key3, JsSpec spec3, java.lang.String key4, JsSpec spec4, java.lang.String key5, JsSpec spec5, java.lang.String key6, JsSpec spec6, java.lang.String key7, JsSpec spec7, java.lang.String key8, JsSpec spec8, java.lang.String key9, JsSpec spec9, java.lang.String key10, JsSpec spec10, java.lang.String key11, JsSpec spec11, java.lang.String key12, JsSpec spec12, java.lang.String key13, JsSpec spec13, java.lang.String key14, JsSpec spec14, java.lang.String key15, JsSpec spec15, java.lang.String key16, JsSpec spec16, java.lang.String key17, JsSpec spec17, java.lang.String key18, JsSpec spec18, java.lang.String key19, JsSpec spec19, java.lang.String key20, JsSpec spec20)
      static factory method to create a strict JsObjSpec of twenty mappings.
      java.util.Set<JsErrorPair> test​(JsObj obj)  
      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

      • strict

        public static JsObjSpec strict​(java.lang.String key,
                                       JsSpec spec)
        static factory method to create a strict JsObjSpec of one mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key - the key
        spec - the mapping associated to the key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key,
                                        JsSpec spec)
        static factory method to create a lenient JsObjSpec of one mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key - the key
        spec - the mapping associated to the key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2)
        static factory method to create a strict JsObjSpec of two mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2)
        static factory method to create a lenient JsObjSpec of two mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3)
        static factory method to create a strict JsObjSpec of three mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3)
        static factory method to create a lenient JsObjSpec of three mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4)
        static factory method to create a strict JsObjSpec of four mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4)
        static factory method to create a lenient JsObjSpec of four mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5)
        static factory method to create a strict JsObjSpec of five mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5)
        static factory method to create a lenient JsObjSpec of five mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6)
        static factory method to create a strict JsObjSpec of six mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6)
        static factory method to create a lenient JsObjSpec of six mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7)
        static factory method to create a strict JsObjSpec of seven mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7)
        static factory method to create a lenient JsObjSpec of seven mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8)
        static factory method to create a strict JsObjSpec of eight mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8)
        static factory method to create a lenient JsObjSpec of eight mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9)
        static factory method to create a strict JsObjSpec of nine mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9)
        static factory method to create a lenient JsObjSpec of nine mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10)
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10)
        static factory method to create a lenient JsObjSpec of ten mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11)
        static factory method to create a strict JsObjSpec of eleven mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11)
        static factory method to create a lenient JsObjSpec of eleven mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12)
        static factory method to create a strict JsObjSpec of twelve mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12)
        static factory method to create a lenient JsObjSpec of twelve mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13)
        static factory method to create a lenient JsObjSpec of thirteen mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14)
        static factory method to create a lenient JsObjSpec of fourteen mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14)
        static factory method to create a strict JsObjSpec of fourteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15)
        static factory method to create a lenient JsObjSpec of fifteen mappings. Lenient means that different keys than the defined are allowed, being valid any value associated to them
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15)
        static factory method to create a strict JsObjSpec of fifteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15,
                                       java.lang.String key16,
                                       JsSpec spec16)
        static factory method to create a strict JsObjSpec of sixteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15,
                                        java.lang.String key16,
                                        JsSpec spec16)
        static factory method to create a lenient JsObjSpec of sixteen mappings. Strict means that different keys than the defined are allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15,
                                       java.lang.String key16,
                                       JsSpec spec16,
                                       java.lang.String key17,
                                       JsSpec spec17)
        static factory method to create a strict JsObjSpec of seventeen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15,
                                        java.lang.String key16,
                                        JsSpec spec16,
                                        java.lang.String key17,
                                        JsSpec spec17)
        static factory method to create a lenient JsObjSpec of seventeen mappings. Lenient means that different keys than the defined are allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15,
                                       java.lang.String key16,
                                       JsSpec spec16,
                                       java.lang.String key17,
                                       JsSpec spec17,
                                       java.lang.String key18,
                                       JsSpec spec18)
        static factory method to create a strict JsObjSpec of eighteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15,
                                        java.lang.String key16,
                                        JsSpec spec16,
                                        java.lang.String key17,
                                        JsSpec spec17,
                                        java.lang.String key18,
                                        JsSpec spec18)
        static factory method to create a lenient JsObjSpec of eighteen mappings. Lenient means that different keys than the defined are allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15,
                                       java.lang.String key16,
                                       JsSpec spec16,
                                       java.lang.String key17,
                                       JsSpec spec17,
                                       java.lang.String key18,
                                       JsSpec spec18,
                                       java.lang.String key19,
                                       JsSpec spec19)
        static factory method to create a strict JsObjSpec of nineteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        key19 - the nineteenth key
        spec19 - the mapping associated to the nineteenth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15,
                                        java.lang.String key16,
                                        JsSpec spec16,
                                        java.lang.String key17,
                                        JsSpec spec17,
                                        java.lang.String key18,
                                        JsSpec spec18,
                                        java.lang.String key19,
                                        JsSpec spec19)
        static factory method to create a lenient JsObjSpec of nineteen mappings. Lenient means that different keys than the defined are allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        key19 - the nineteenth key
        spec19 - the mapping associated to the nineteenth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13,
                                       java.lang.String key14,
                                       JsSpec spec14,
                                       java.lang.String key15,
                                       JsSpec spec15,
                                       java.lang.String key16,
                                       JsSpec spec16,
                                       java.lang.String key17,
                                       JsSpec spec17,
                                       java.lang.String key18,
                                       JsSpec spec18,
                                       java.lang.String key19,
                                       JsSpec spec19,
                                       java.lang.String key20,
                                       JsSpec spec20)
        static factory method to create a strict JsObjSpec of twenty mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        key19 - the nineteenth key
        spec19 - the mapping associated to the nineteenth key
        key20 - the twentieth key
        spec20 - the mapping associated to the twentieth key
        Returns:
        a JsObjSpec
      • lenient

        public static JsObjSpec lenient​(java.lang.String key1,
                                        JsSpec spec1,
                                        java.lang.String key2,
                                        JsSpec spec2,
                                        java.lang.String key3,
                                        JsSpec spec3,
                                        java.lang.String key4,
                                        JsSpec spec4,
                                        java.lang.String key5,
                                        JsSpec spec5,
                                        java.lang.String key6,
                                        JsSpec spec6,
                                        java.lang.String key7,
                                        JsSpec spec7,
                                        java.lang.String key8,
                                        JsSpec spec8,
                                        java.lang.String key9,
                                        JsSpec spec9,
                                        java.lang.String key10,
                                        JsSpec spec10,
                                        java.lang.String key11,
                                        JsSpec spec11,
                                        java.lang.String key12,
                                        JsSpec spec12,
                                        java.lang.String key13,
                                        JsSpec spec13,
                                        java.lang.String key14,
                                        JsSpec spec14,
                                        java.lang.String key15,
                                        JsSpec spec15,
                                        java.lang.String key16,
                                        JsSpec spec16,
                                        java.lang.String key17,
                                        JsSpec spec17,
                                        java.lang.String key18,
                                        JsSpec spec18,
                                        java.lang.String key19,
                                        JsSpec spec19,
                                        java.lang.String key20,
                                        JsSpec spec20)
        static factory method to create a lenient JsObjSpec of twenty mappings. Lenient means that different keys than the defined are allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        spec14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        spec15 - the mapping associated to the fifteenth key
        key16 - the sixteenth key
        spec16 - the mapping associated to the sixteenth key
        key17 - the seventeenth key
        spec17 - the mapping associated to the seventeenth key
        key18 - the eighteenth key
        spec18 - the mapping associated to the eighteenth key
        key19 - the nineteenth key
        spec19 - the mapping associated to the nineteenth key
        key20 - the twentieth key
        spec20 - the mapping associated to the twentieth key
        Returns:
        a JsObjSpec
      • strict

        public static JsObjSpec strict​(java.lang.String key1,
                                       JsSpec spec1,
                                       java.lang.String key2,
                                       JsSpec spec2,
                                       java.lang.String key3,
                                       JsSpec spec3,
                                       java.lang.String key4,
                                       JsSpec spec4,
                                       java.lang.String key5,
                                       JsSpec spec5,
                                       java.lang.String key6,
                                       JsSpec spec6,
                                       java.lang.String key7,
                                       JsSpec spec7,
                                       java.lang.String key8,
                                       JsSpec spec8,
                                       java.lang.String key9,
                                       JsSpec spec9,
                                       java.lang.String key10,
                                       JsSpec spec10,
                                       java.lang.String key11,
                                       JsSpec spec11,
                                       java.lang.String key12,
                                       JsSpec spec12,
                                       java.lang.String key13,
                                       JsSpec spec13)
        static factory method to create a strict JsObjSpec of thirteen mappings. Strict means that different keys than the defined are not allowed
        Parameters:
        key1 - the first key
        spec1 - the mapping associated to the first key
        key2 - the second key
        spec2 - the mapping associated to the second key
        key3 - the third key
        spec3 - the mapping associated to the third key
        key4 - the fourth key
        spec4 - the mapping associated to the fourth key
        key5 - the fifth key
        spec5 - the mapping associated to the fifth key
        key6 - the sixth key
        spec6 - the mapping associated to the sixth key
        key7 - the seventh key
        spec7 - the mapping associated to the seventh key
        key8 - the eighth key
        spec8 - the mapping associated to the eighth key
        key9 - the ninth key
        spec9 - the mapping associated to the ninth key
        key10 - the tenth key
        spec10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        spec11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        spec12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        spec13 - the mapping associated to the thirteenth key
        Returns:
        a JsObjSpec
      • 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 JsObjSpec 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 JsObjSpec 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
      • set

        public JsObjSpec set​(java.lang.String key,
                             JsSpec spec)
        add the given key spec to this
        Parameters:
        key - the key
        spec - the spec
        Returns:
        a new object spec