001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.jsonschema;
014
015import static org.apache.juneau.jsonschema.JsonSchemaGenerator.*;
016
017import java.lang.annotation.*;
018import java.lang.reflect.*;
019import java.util.*;
020
021import org.apache.juneau.*;
022import org.apache.juneau.annotation.*;
023import org.apache.juneau.collections.*;
024import org.apache.juneau.http.*;
025import org.apache.juneau.internal.*;
026import org.apache.juneau.reflect.*;
027import org.apache.juneau.svl.*;
028
029/**
030 * Builder class for building instances of JSON Schema generators.
031 */
032public class JsonSchemaGeneratorBuilder extends BeanTraverseBuilder {
033
034   /**
035    * Constructor, default settings.
036    */
037   public JsonSchemaGeneratorBuilder() {
038      super();
039   }
040
041   /**
042    * Constructor.
043    *
044    * @param ps The initial configuration settings for this builder.
045    */
046   public JsonSchemaGeneratorBuilder(PropertyStore ps) {
047      super(ps);
048   }
049
050   @Override /* ContextBuilder */
051   public JsonSchemaGenerator build() {
052      return build(JsonSchemaGenerator.class);
053   }
054
055   //-----------------------------------------------------------------------------------------------------------------
056   // Properties
057   //-----------------------------------------------------------------------------------------------------------------
058
059   /**
060    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Add descriptions.
061    *
062    * <p>
063    * Identifies which categories of types that descriptions should be automatically added to generated schemas.
064    * <p>
065    * The description is the result of calling {@link ClassMeta#getFullName()}.
066    *
067    * <ul class='seealso'>
068    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_addDescriptionsTo}
069    * </ul>
070    *
071    * @param value
072    *    The new value for this property.
073    *    <br>The default is an empty string.
074    * @return This object (for method chaining).
075    */
076   @FluentSetter
077   public JsonSchemaGeneratorBuilder addDescriptionsTo(String value) {
078      return set(JSONSCHEMA_addDescriptionsTo, value);
079   }
080
081   /**
082    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Add examples.
083    *
084    * <p>
085    * Identifies which categories of types that examples should be automatically added to generated schemas.
086    * <p>
087    * The examples come from calling {@link ClassMeta#getExample(BeanSession)} which in turn gets examples
088    * from the following:
089    * <ul class='javatree'>
090    *    <li class='ja'>{@link Example}
091    *    <li class='jf'>{@link BeanContext#BEAN_examples}
092    * </ul>
093    *
094    * <ul class='seealso'>
095    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_addExamplesTo}
096    * </ul>
097    *
098    * @param value
099    *    The new value for this property.
100    *    <br>The default is an empty string.
101    * @return This object (for method chaining).
102    */
103   @FluentSetter
104   public JsonSchemaGeneratorBuilder addExamplesTo(String value) {
105      return set(JSONSCHEMA_addExamplesTo, value);
106   }
107
108   /**
109    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Allow nested descriptions.
110    *
111    * <div class='warn'>
112    *    <b>Deprecated</b> - Use {@link #allowNestedDescriptions()}
113    * </div>
114    */
115   @SuppressWarnings("javadoc")
116   @FluentSetter
117   @Deprecated
118   public JsonSchemaGeneratorBuilder allowNestedDescriptions(boolean value) {
119      return set(JSONSCHEMA_allowNestedDescriptions, value);
120   }
121
122   /**
123    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Allow nested descriptions.
124    *
125    * <p>
126    * Identifies whether nested descriptions are allowed in schema definitions.
127    *
128    * <ul class='seealso'>
129    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_allowNestedDescriptions}
130    * </ul>
131    *
132    * @return This object (for method chaining).
133    */
134   @FluentSetter
135   public JsonSchemaGeneratorBuilder allowNestedDescriptions() {
136      return set(JSONSCHEMA_allowNestedDescriptions, true);
137   }
138
139   /**
140    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Allow nested examples.
141    *
142    * <div class='warn'>
143    *    <b>Deprecated</b> - Use {@link #allowNestedExamples()}
144    * </div>
145    */
146   @SuppressWarnings("javadoc")
147   @FluentSetter
148   @Deprecated
149   public JsonSchemaGeneratorBuilder allowNestedExamples(boolean value) {
150      return set(JSONSCHEMA_allowNestedExamples, value);
151   }
152
153   /**
154    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Allow nested examples.
155    *
156    * <p>
157    * Identifies whether nested examples are allowed in schema definitions.
158    *
159    * <ul class='seealso'>
160    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_allowNestedExamples}
161    * </ul>
162    *
163    * @return This object (for method chaining).
164    */
165   @FluentSetter
166   public JsonSchemaGeneratorBuilder allowNestedExamples() {
167      return set(JSONSCHEMA_allowNestedExamples, true);
168   }
169
170   /**
171    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Schema definition mapper.
172    *
173    * <p>
174    * Interface to use for converting Bean classes to definition IDs and URIs.
175    * <p>
176    * Used primarily for defining common definition sections for beans in Swagger JSON.
177    * <p>
178    * This setting is ignored if {@link JsonSchemaGenerator#JSONSCHEMA_useBeanDefs} is not enabled.
179    *
180    * <ul class='seealso'>
181    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_beanDefMapper}
182    * </ul>
183    *
184    * @param value
185    *    The new value for this property.
186    *    <br>The default is {@link org.apache.juneau.jsonschema.BasicBeanDefMapper}.
187    * @return This object (for method chaining).
188    */
189   @FluentSetter
190   public JsonSchemaGeneratorBuilder beanDefMapper(Class<? extends BeanDefMapper> value) {
191      return set(JSONSCHEMA_beanDefMapper, value);
192   }
193
194   /**
195    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Bean schema definition mapper.
196    *
197    * <p>
198    * Interface to use for converting Bean classes to definition IDs and URIs.
199    * <p>
200    * Used primarily for defining common definition sections for beans in Swagger JSON.
201    * <p>
202    * This setting is ignored if {@link JsonSchemaGenerator#JSONSCHEMA_useBeanDefs} is not enabled.
203    *
204    * <ul class='seealso'>
205    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_beanDefMapper}
206    * </ul>
207    *
208    * @param value
209    *    The new value for this property.
210    *    <br>The default is {@link org.apache.juneau.jsonschema.BasicBeanDefMapper}.
211    * @return This object (for method chaining).
212    */
213   @FluentSetter
214   public JsonSchemaGeneratorBuilder beanDefMapper(BeanDefMapper value) {
215      return set(JSONSCHEMA_beanDefMapper, value);
216   }
217
218   /**
219    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Default schemas.
220    *
221    * <p>
222    * Allows you to override or provide custom schema information for particular class types.
223    * <p>
224    * Keys are full class names.
225    *
226    * <ul class='seealso'>
227    *    <li class='jf'>{@link JsonSchemaGenerator#JSONSCHEMA_defaultSchemas}
228    * </ul>
229    *
230    * @param c
231    *    The class to define a default schema for.
232    * @param schema
233    *    The schema.
234    * @return This object (for method chaining).
235    */
236   @FluentSetter
237   public JsonSchemaGeneratorBuilder defaultSchema(Class<?> c, OMap schema) {
238      return putTo(JSONSCHEMA_defaultSchemas, c.getName(), schema);
239   }
240
241   /**
242    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Ignore types from schema definitions.
243    *
244    * <h5 class='section'>Description:</h5>
245    * <p>
246    * Defines class name patterns that should be ignored when generating schema definitions in the generated
247    * Swagger documentation.
248    *
249    * <h5 class='section'>Example:</h5>
250    * <p class='bcode w800'>
251    *    <jc>// Don't generate schema for any prototype packages or the class named 'Swagger'.</jc>
252    *    <ja>@Rest</ja>(
253    *          properties={
254    *             <ja>@Property</ja>(name=<jsf>JSONSCHEMA_ignoreTypes</jsf>, value=<js>"Swagger,*.proto.*"</js>)
255    *          }
256    *    <jk>public class</jk> MyResource {...}
257    * </p>
258    *
259    * @param value
260    *    A comma-delimited list of types to ignore.
261    * @return This object (for method chaining).
262    */
263   @FluentSetter
264   public JsonSchemaGeneratorBuilder ignoreTypes(String value) {
265      return set(JSONSCHEMA_ignoreTypes, value);
266   }
267
268   /**
269    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Use bean definitions.
270    *
271    * <div class='warn'>
272    *    <b>Deprecated</b> - Use {@link #useBeanDefs()}
273    * </div>
274    */
275   @SuppressWarnings("javadoc")
276   @FluentSetter
277   @Deprecated
278   public JsonSchemaGeneratorBuilder useBeanDefs(boolean value) {
279      return set(JSONSCHEMA_useBeanDefs, value);
280   }
281
282   /**
283    * <i><l>JsonSchemaGenerator</l> configuration property:&emsp;</i>  Use bean definitions.
284    *
285    * <p>
286    * When enabled, schemas on beans will be serialized as the following:
287    * <p class='bcode w800'>
288    *    {
289    *       type: <js>'object'</js>,
290    *       <js>'$ref'</js>: <js>'#/definitions/TypeId'</js>
291    *    }
292    * </p>
293    *
294    * <p>
295    * The definitions can then be retrieved from the session using {@link JsonSchemaGeneratorSession#getBeanDefs()}.
296    * <p>
297    * Definitions can also be added programmatically using {@link JsonSchemaGeneratorSession#addBeanDef(String, OMap)}.
298    *
299    * @return This object (for method chaining).
300    */
301   @FluentSetter
302   public JsonSchemaGeneratorBuilder useBeanDefs() {
303      return set(JSONSCHEMA_useBeanDefs, true);
304   }
305
306   // <FluentSetters>
307
308   @Override /* GENERATED - ContextBuilder */
309   public JsonSchemaGeneratorBuilder add(Map<String,Object> properties) {
310      super.add(properties);
311      return this;
312   }
313
314   @Override /* GENERATED - ContextBuilder */
315   public JsonSchemaGeneratorBuilder addTo(String name, Object value) {
316      super.addTo(name, value);
317      return this;
318   }
319
320   @Override /* GENERATED - ContextBuilder */
321   public JsonSchemaGeneratorBuilder appendTo(String name, Object value) {
322      super.appendTo(name, value);
323      return this;
324   }
325
326   @Override /* GENERATED - ContextBuilder */
327   public JsonSchemaGeneratorBuilder apply(PropertyStore copyFrom) {
328      super.apply(copyFrom);
329      return this;
330   }
331
332   @Override /* GENERATED - ContextBuilder */
333   public JsonSchemaGeneratorBuilder applyAnnotations(java.lang.Class<?>...fromClasses) {
334      super.applyAnnotations(fromClasses);
335      return this;
336   }
337
338   @Override /* GENERATED - ContextBuilder */
339   public JsonSchemaGeneratorBuilder applyAnnotations(Method...fromMethods) {
340      super.applyAnnotations(fromMethods);
341      return this;
342   }
343
344   @Override /* GENERATED - ContextBuilder */
345   public JsonSchemaGeneratorBuilder applyAnnotations(AnnotationList al, VarResolverSession r) {
346      super.applyAnnotations(al, r);
347      return this;
348   }
349
350   @Override /* GENERATED - ContextBuilder */
351   public JsonSchemaGeneratorBuilder debug() {
352      super.debug();
353      return this;
354   }
355
356   @Override /* GENERATED - ContextBuilder */
357   public JsonSchemaGeneratorBuilder locale(Locale value) {
358      super.locale(value);
359      return this;
360   }
361
362   @Override /* GENERATED - ContextBuilder */
363   public JsonSchemaGeneratorBuilder mediaType(MediaType value) {
364      super.mediaType(value);
365      return this;
366   }
367
368   @Override /* GENERATED - ContextBuilder */
369   public JsonSchemaGeneratorBuilder prependTo(String name, Object value) {
370      super.prependTo(name, value);
371      return this;
372   }
373
374   @Override /* GENERATED - ContextBuilder */
375   public JsonSchemaGeneratorBuilder putAllTo(String name, Object value) {
376      super.putAllTo(name, value);
377      return this;
378   }
379
380   @Override /* GENERATED - ContextBuilder */
381   public JsonSchemaGeneratorBuilder putTo(String name, String key, Object value) {
382      super.putTo(name, key, value);
383      return this;
384   }
385
386   @Override /* GENERATED - ContextBuilder */
387   public JsonSchemaGeneratorBuilder removeFrom(String name, Object value) {
388      super.removeFrom(name, value);
389      return this;
390   }
391
392   @Override /* GENERATED - ContextBuilder */
393   public JsonSchemaGeneratorBuilder set(Map<String,Object> properties) {
394      super.set(properties);
395      return this;
396   }
397
398   @Override /* GENERATED - ContextBuilder */
399   public JsonSchemaGeneratorBuilder set(String name, Object value) {
400      super.set(name, value);
401      return this;
402   }
403
404   @Override /* GENERATED - ContextBuilder */
405   public JsonSchemaGeneratorBuilder timeZone(TimeZone value) {
406      super.timeZone(value);
407      return this;
408   }
409
410   @Override /* GENERATED - BeanContextBuilder */
411   public JsonSchemaGeneratorBuilder annotations(Annotation...values) {
412      super.annotations(values);
413      return this;
414   }
415
416   @Override /* GENERATED - BeanContextBuilder */
417   public JsonSchemaGeneratorBuilder beanClassVisibility(Visibility value) {
418      super.beanClassVisibility(value);
419      return this;
420   }
421
422   @Override /* GENERATED - BeanContextBuilder */
423   public JsonSchemaGeneratorBuilder beanConstructorVisibility(Visibility value) {
424      super.beanConstructorVisibility(value);
425      return this;
426   }
427
428   @Override /* GENERATED - BeanContextBuilder */
429   public JsonSchemaGeneratorBuilder beanFieldVisibility(Visibility value) {
430      super.beanFieldVisibility(value);
431      return this;
432   }
433
434   @Override /* GENERATED - BeanContextBuilder */
435   public JsonSchemaGeneratorBuilder beanInterceptor(Class<?> on, Class<? extends org.apache.juneau.transform.BeanInterceptor<?>> value) {
436      super.beanInterceptor(on, value);
437      return this;
438   }
439
440   @Override /* GENERATED - BeanContextBuilder */
441   public JsonSchemaGeneratorBuilder beanMapPutReturnsOldValue() {
442      super.beanMapPutReturnsOldValue();
443      return this;
444   }
445
446   @Override /* GENERATED - BeanContextBuilder */
447   public JsonSchemaGeneratorBuilder beanMethodVisibility(Visibility value) {
448      super.beanMethodVisibility(value);
449      return this;
450   }
451
452   @Override /* GENERATED - BeanContextBuilder */
453   public JsonSchemaGeneratorBuilder beansDontRequireSomeProperties() {
454      super.beansDontRequireSomeProperties();
455      return this;
456   }
457
458   @Override /* GENERATED - BeanContextBuilder */
459   public JsonSchemaGeneratorBuilder beansRequireDefaultConstructor() {
460      super.beansRequireDefaultConstructor();
461      return this;
462   }
463
464   @Override /* GENERATED - BeanContextBuilder */
465   public JsonSchemaGeneratorBuilder beansRequireSerializable() {
466      super.beansRequireSerializable();
467      return this;
468   }
469
470   @Override /* GENERATED - BeanContextBuilder */
471   public JsonSchemaGeneratorBuilder beansRequireSettersForGetters() {
472      super.beansRequireSettersForGetters();
473      return this;
474   }
475
476   @Override /* GENERATED - BeanContextBuilder */
477   public JsonSchemaGeneratorBuilder bpi(Map<String,Object> values) {
478      super.bpi(values);
479      return this;
480   }
481
482   @Override /* GENERATED - BeanContextBuilder */
483   public JsonSchemaGeneratorBuilder bpi(Class<?> beanClass, String properties) {
484      super.bpi(beanClass, properties);
485      return this;
486   }
487
488   @Override /* GENERATED - BeanContextBuilder */
489   public JsonSchemaGeneratorBuilder bpi(String beanClassName, String properties) {
490      super.bpi(beanClassName, properties);
491      return this;
492   }
493
494   @Override /* GENERATED - BeanContextBuilder */
495   public JsonSchemaGeneratorBuilder bpro(Map<String,Object> values) {
496      super.bpro(values);
497      return this;
498   }
499
500   @Override /* GENERATED - BeanContextBuilder */
501   public JsonSchemaGeneratorBuilder bpro(Class<?> beanClass, String properties) {
502      super.bpro(beanClass, properties);
503      return this;
504   }
505
506   @Override /* GENERATED - BeanContextBuilder */
507   public JsonSchemaGeneratorBuilder bpro(String beanClassName, String properties) {
508      super.bpro(beanClassName, properties);
509      return this;
510   }
511
512   @Override /* GENERATED - BeanContextBuilder */
513   public JsonSchemaGeneratorBuilder bpwo(Map<String,Object> values) {
514      super.bpwo(values);
515      return this;
516   }
517
518   @Override /* GENERATED - BeanContextBuilder */
519   public JsonSchemaGeneratorBuilder bpwo(Class<?> beanClass, String properties) {
520      super.bpwo(beanClass, properties);
521      return this;
522   }
523
524   @Override /* GENERATED - BeanContextBuilder */
525   public JsonSchemaGeneratorBuilder bpwo(String beanClassName, String properties) {
526      super.bpwo(beanClassName, properties);
527      return this;
528   }
529
530   @Override /* GENERATED - BeanContextBuilder */
531   public JsonSchemaGeneratorBuilder bpx(Map<String,Object> values) {
532      super.bpx(values);
533      return this;
534   }
535
536   @Override /* GENERATED - BeanContextBuilder */
537   public JsonSchemaGeneratorBuilder bpx(Class<?> beanClass, String properties) {
538      super.bpx(beanClass, properties);
539      return this;
540   }
541
542   @Override /* GENERATED - BeanContextBuilder */
543   public JsonSchemaGeneratorBuilder bpx(String beanClassName, String properties) {
544      super.bpx(beanClassName, properties);
545      return this;
546   }
547
548   @Override /* GENERATED - BeanContextBuilder */
549   public JsonSchemaGeneratorBuilder dictionary(Object...values) {
550      super.dictionary(values);
551      return this;
552   }
553
554   @Override /* GENERATED - BeanContextBuilder */
555   public JsonSchemaGeneratorBuilder dictionaryOn(Class<?> on, java.lang.Class<?>...values) {
556      super.dictionaryOn(on, values);
557      return this;
558   }
559
560   @Override /* GENERATED - BeanContextBuilder */
561   public JsonSchemaGeneratorBuilder dontIgnorePropertiesWithoutSetters() {
562      super.dontIgnorePropertiesWithoutSetters();
563      return this;
564   }
565
566   @Override /* GENERATED - BeanContextBuilder */
567   public JsonSchemaGeneratorBuilder dontIgnoreTransientFields() {
568      super.dontIgnoreTransientFields();
569      return this;
570   }
571
572   @Override /* GENERATED - BeanContextBuilder */
573   public JsonSchemaGeneratorBuilder dontIgnoreUnknownNullBeanProperties() {
574      super.dontIgnoreUnknownNullBeanProperties();
575      return this;
576   }
577
578   @Override /* GENERATED - BeanContextBuilder */
579   public JsonSchemaGeneratorBuilder dontUseInterfaceProxies() {
580      super.dontUseInterfaceProxies();
581      return this;
582   }
583
584   @Override /* GENERATED - BeanContextBuilder */
585   public <T> JsonSchemaGeneratorBuilder example(Class<T> pojoClass, T o) {
586      super.example(pojoClass, o);
587      return this;
588   }
589
590   @Override /* GENERATED - BeanContextBuilder */
591   public <T> JsonSchemaGeneratorBuilder exampleJson(Class<T> pojoClass, String json) {
592      super.exampleJson(pojoClass, json);
593      return this;
594   }
595
596   @Override /* GENERATED - BeanContextBuilder */
597   public JsonSchemaGeneratorBuilder fluentSetters() {
598      super.fluentSetters();
599      return this;
600   }
601
602   @Override /* GENERATED - BeanContextBuilder */
603   public JsonSchemaGeneratorBuilder fluentSetters(Class<?> on) {
604      super.fluentSetters(on);
605      return this;
606   }
607
608   @Override /* GENERATED - BeanContextBuilder */
609   public JsonSchemaGeneratorBuilder ignoreInvocationExceptionsOnGetters() {
610      super.ignoreInvocationExceptionsOnGetters();
611      return this;
612   }
613
614   @Override /* GENERATED - BeanContextBuilder */
615   public JsonSchemaGeneratorBuilder ignoreInvocationExceptionsOnSetters() {
616      super.ignoreInvocationExceptionsOnSetters();
617      return this;
618   }
619
620   @Override /* GENERATED - BeanContextBuilder */
621   public JsonSchemaGeneratorBuilder ignoreUnknownBeanProperties() {
622      super.ignoreUnknownBeanProperties();
623      return this;
624   }
625
626   @Override /* GENERATED - BeanContextBuilder */
627   public JsonSchemaGeneratorBuilder implClass(Class<?> interfaceClass, Class<?> implClass) {
628      super.implClass(interfaceClass, implClass);
629      return this;
630   }
631
632   @Override /* GENERATED - BeanContextBuilder */
633   public JsonSchemaGeneratorBuilder implClasses(Map<Class<?>,Class<?>> values) {
634      super.implClasses(values);
635      return this;
636   }
637
638   @Override /* GENERATED - BeanContextBuilder */
639   public JsonSchemaGeneratorBuilder interfaceClass(Class<?> on, Class<?> value) {
640      super.interfaceClass(on, value);
641      return this;
642   }
643
644   @Override /* GENERATED - BeanContextBuilder */
645   public JsonSchemaGeneratorBuilder interfaces(java.lang.Class<?>...value) {
646      super.interfaces(value);
647      return this;
648   }
649
650   @Override /* GENERATED - BeanContextBuilder */
651   public JsonSchemaGeneratorBuilder notBeanClasses(Object...values) {
652      super.notBeanClasses(values);
653      return this;
654   }
655
656   @Override /* GENERATED - BeanContextBuilder */
657   public JsonSchemaGeneratorBuilder notBeanPackages(Object...values) {
658      super.notBeanPackages(values);
659      return this;
660   }
661
662   @Override /* GENERATED - BeanContextBuilder */
663   public JsonSchemaGeneratorBuilder propertyNamer(Class<? extends org.apache.juneau.PropertyNamer> value) {
664      super.propertyNamer(value);
665      return this;
666   }
667
668   @Override /* GENERATED - BeanContextBuilder */
669   public JsonSchemaGeneratorBuilder propertyNamer(Class<?> on, Class<? extends org.apache.juneau.PropertyNamer> value) {
670      super.propertyNamer(on, value);
671      return this;
672   }
673
674   @Override /* GENERATED - BeanContextBuilder */
675   public JsonSchemaGeneratorBuilder sortProperties() {
676      super.sortProperties();
677      return this;
678   }
679
680   @Override /* GENERATED - BeanContextBuilder */
681   public JsonSchemaGeneratorBuilder sortProperties(java.lang.Class<?>...on) {
682      super.sortProperties(on);
683      return this;
684   }
685
686   @Override /* GENERATED - BeanContextBuilder */
687   public JsonSchemaGeneratorBuilder stopClass(Class<?> on, Class<?> value) {
688      super.stopClass(on, value);
689      return this;
690   }
691
692   @Override /* GENERATED - BeanContextBuilder */
693   public JsonSchemaGeneratorBuilder swaps(Object...values) {
694      super.swaps(values);
695      return this;
696   }
697
698   @Override /* GENERATED - BeanContextBuilder */
699   public JsonSchemaGeneratorBuilder typeName(Class<?> on, String value) {
700      super.typeName(on, value);
701      return this;
702   }
703
704   @Override /* GENERATED - BeanContextBuilder */
705   public JsonSchemaGeneratorBuilder typePropertyName(String value) {
706      super.typePropertyName(value);
707      return this;
708   }
709
710   @Override /* GENERATED - BeanContextBuilder */
711   public JsonSchemaGeneratorBuilder typePropertyName(Class<?> on, String value) {
712      super.typePropertyName(on, value);
713      return this;
714   }
715
716   @Override /* GENERATED - BeanContextBuilder */
717   public JsonSchemaGeneratorBuilder useEnumNames() {
718      super.useEnumNames();
719      return this;
720   }
721
722   @Override /* GENERATED - BeanContextBuilder */
723   public JsonSchemaGeneratorBuilder useJavaBeanIntrospector() {
724      super.useJavaBeanIntrospector();
725      return this;
726   }
727
728   @Override /* GENERATED - BeanTraverseBuilder */
729   public JsonSchemaGeneratorBuilder detectRecursions() {
730      super.detectRecursions();
731      return this;
732   }
733
734   @Override /* GENERATED - BeanTraverseBuilder */
735   public JsonSchemaGeneratorBuilder ignoreRecursions() {
736      super.ignoreRecursions();
737      return this;
738   }
739
740   @Override /* GENERATED - BeanTraverseBuilder */
741   public JsonSchemaGeneratorBuilder initialDepth(int value) {
742      super.initialDepth(value);
743      return this;
744   }
745
746   @Override /* GENERATED - BeanTraverseBuilder */
747   public JsonSchemaGeneratorBuilder maxDepth(int value) {
748      super.maxDepth(value);
749      return this;
750   }
751
752   // </FluentSetters>
753}