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.html;
014
015import java.lang.annotation.*;
016import java.lang.reflect.*;
017import java.nio.charset.*;
018import java.util.*;
019
020import org.apache.juneau.*;
021import org.apache.juneau.internal.*;
022import org.apache.juneau.utils.*;
023import org.apache.juneau.xml.*;
024
025/**
026 * Serializes POJOs to HTTP responses as stripped HTML.
027 *
028 * <h5 class='topic'>Media types</h5>
029 *
030 * Handles <c>Accept</c> types:  <bc>text/html+stripped</bc>
031 * <p>
032 * Produces <c>Content-Type</c> types:  <bc>text/html</bc>
033 *
034 * <h5 class='topic'>Description</h5>
035 *
036 * Produces the same output as {@link HtmlDocSerializer}, but without the header and body tags and page title and
037 * description.
038 * Used primarily for JUnit testing the {@link HtmlDocSerializer} class.
039 *
040 * <h5 class='section'>Notes:</h5><ul>
041 *    <li class='note'>This class is thread safe and reusable.
042 * </ul>
043 *
044 * <h5 class='section'>See Also:</h5><ul>
045 *    <li class='link'><a class="doclink" href="../../../../index.html#jm.HtmlDetails">HTML Details</a>
046
047 * </ul>
048 */
049public class HtmlStrippedDocSerializer extends HtmlSerializer {
050
051   //-------------------------------------------------------------------------------------------------------------------
052   // Static
053   //-------------------------------------------------------------------------------------------------------------------
054
055   /** Default serializer, all default settings. */
056   public static final HtmlStrippedDocSerializer DEFAULT = new HtmlStrippedDocSerializer(create());
057
058   /**
059    * Creates a new builder for this object.
060    *
061    * @return A new builder.
062    */
063   public static Builder create() {
064      return new Builder();
065   }
066
067   //-------------------------------------------------------------------------------------------------------------------
068   // Builder
069   //-------------------------------------------------------------------------------------------------------------------
070
071   /**
072    * Builder class.
073    */
074   @FluentSetters
075   public static class Builder extends HtmlSerializer.Builder {
076
077      private static final Cache<HashKey,HtmlStrippedDocSerializer> CACHE = Cache.of(HashKey.class, HtmlStrippedDocSerializer.class).build();
078
079      /**
080       * Constructor, default settings.
081       */
082      protected Builder() {
083         super();
084         produces("text/html");
085         accept("text/html+stripped");
086      }
087
088      /**
089       * Copy constructor.
090       *
091       * @param copyFrom The bean to copy from.
092       */
093      protected Builder(HtmlStrippedDocSerializer copyFrom) {
094         super(copyFrom);
095      }
096
097      /**
098       * Copy constructor.
099       *
100       * @param copyFrom The builder to copy from.
101       */
102      protected Builder(Builder copyFrom) {
103         super(copyFrom);
104      }
105
106      @Override /* Context.Builder */
107      public Builder copy() {
108         return new Builder(this);
109      }
110
111      @Override /* Context.Builder */
112      public HtmlStrippedDocSerializer build() {
113         return cache(CACHE).build(HtmlStrippedDocSerializer.class);
114      }
115
116      @Override /* Context.Builder */
117      public HashKey hashKey() {
118         return super.hashKey();
119      }
120
121      //-----------------------------------------------------------------------------------------------------------------
122      // Properties
123      //-----------------------------------------------------------------------------------------------------------------
124
125      // <FluentSetters>
126
127      @Override /* GENERATED - org.apache.juneau.Context.Builder */
128      public Builder annotations(Annotation...values) {
129         super.annotations(values);
130         return this;
131      }
132
133      @Override /* GENERATED - org.apache.juneau.Context.Builder */
134      public Builder apply(AnnotationWorkList work) {
135         super.apply(work);
136         return this;
137      }
138
139      @Override /* GENERATED - org.apache.juneau.Context.Builder */
140      public Builder applyAnnotations(java.lang.Class<?>...fromClasses) {
141         super.applyAnnotations(fromClasses);
142         return this;
143      }
144
145      @Override /* GENERATED - org.apache.juneau.Context.Builder */
146      public Builder applyAnnotations(Method...fromMethods) {
147         super.applyAnnotations(fromMethods);
148         return this;
149      }
150
151      @Override /* GENERATED - org.apache.juneau.Context.Builder */
152      public Builder cache(Cache<HashKey,? extends org.apache.juneau.Context> value) {
153         super.cache(value);
154         return this;
155      }
156
157      @Override /* GENERATED - org.apache.juneau.Context.Builder */
158      public Builder debug() {
159         super.debug();
160         return this;
161      }
162
163      @Override /* GENERATED - org.apache.juneau.Context.Builder */
164      public Builder debug(boolean value) {
165         super.debug(value);
166         return this;
167      }
168
169      @Override /* GENERATED - org.apache.juneau.Context.Builder */
170      public Builder impl(Context value) {
171         super.impl(value);
172         return this;
173      }
174
175      @Override /* GENERATED - org.apache.juneau.Context.Builder */
176      public Builder type(Class<? extends org.apache.juneau.Context> value) {
177         super.type(value);
178         return this;
179      }
180
181      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
182      public Builder beanClassVisibility(Visibility value) {
183         super.beanClassVisibility(value);
184         return this;
185      }
186
187      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
188      public Builder beanConstructorVisibility(Visibility value) {
189         super.beanConstructorVisibility(value);
190         return this;
191      }
192
193      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
194      public Builder beanContext(BeanContext value) {
195         super.beanContext(value);
196         return this;
197      }
198
199      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
200      public Builder beanContext(BeanContext.Builder value) {
201         super.beanContext(value);
202         return this;
203      }
204
205      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
206      public Builder beanDictionary(java.lang.Class<?>...values) {
207         super.beanDictionary(values);
208         return this;
209      }
210
211      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
212      public Builder beanFieldVisibility(Visibility value) {
213         super.beanFieldVisibility(value);
214         return this;
215      }
216
217      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
218      public Builder beanInterceptor(Class<?> on, Class<? extends org.apache.juneau.swap.BeanInterceptor<?>> value) {
219         super.beanInterceptor(on, value);
220         return this;
221      }
222
223      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
224      public Builder beanMapPutReturnsOldValue() {
225         super.beanMapPutReturnsOldValue();
226         return this;
227      }
228
229      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
230      public Builder beanMethodVisibility(Visibility value) {
231         super.beanMethodVisibility(value);
232         return this;
233      }
234
235      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
236      public Builder beanProperties(Map<String,Object> values) {
237         super.beanProperties(values);
238         return this;
239      }
240
241      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
242      public Builder beanProperties(Class<?> beanClass, String properties) {
243         super.beanProperties(beanClass, properties);
244         return this;
245      }
246
247      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
248      public Builder beanProperties(String beanClassName, String properties) {
249         super.beanProperties(beanClassName, properties);
250         return this;
251      }
252
253      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
254      public Builder beanPropertiesExcludes(Map<String,Object> values) {
255         super.beanPropertiesExcludes(values);
256         return this;
257      }
258
259      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
260      public Builder beanPropertiesExcludes(Class<?> beanClass, String properties) {
261         super.beanPropertiesExcludes(beanClass, properties);
262         return this;
263      }
264
265      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
266      public Builder beanPropertiesExcludes(String beanClassName, String properties) {
267         super.beanPropertiesExcludes(beanClassName, properties);
268         return this;
269      }
270
271      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
272      public Builder beanPropertiesReadOnly(Map<String,Object> values) {
273         super.beanPropertiesReadOnly(values);
274         return this;
275      }
276
277      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
278      public Builder beanPropertiesReadOnly(Class<?> beanClass, String properties) {
279         super.beanPropertiesReadOnly(beanClass, properties);
280         return this;
281      }
282
283      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
284      public Builder beanPropertiesReadOnly(String beanClassName, String properties) {
285         super.beanPropertiesReadOnly(beanClassName, properties);
286         return this;
287      }
288
289      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
290      public Builder beanPropertiesWriteOnly(Map<String,Object> values) {
291         super.beanPropertiesWriteOnly(values);
292         return this;
293      }
294
295      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
296      public Builder beanPropertiesWriteOnly(Class<?> beanClass, String properties) {
297         super.beanPropertiesWriteOnly(beanClass, properties);
298         return this;
299      }
300
301      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
302      public Builder beanPropertiesWriteOnly(String beanClassName, String properties) {
303         super.beanPropertiesWriteOnly(beanClassName, properties);
304         return this;
305      }
306
307      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
308      public Builder beansRequireDefaultConstructor() {
309         super.beansRequireDefaultConstructor();
310         return this;
311      }
312
313      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
314      public Builder beansRequireSerializable() {
315         super.beansRequireSerializable();
316         return this;
317      }
318
319      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
320      public Builder beansRequireSettersForGetters() {
321         super.beansRequireSettersForGetters();
322         return this;
323      }
324
325      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
326      public Builder dictionaryOn(Class<?> on, java.lang.Class<?>...values) {
327         super.dictionaryOn(on, values);
328         return this;
329      }
330
331      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
332      public Builder disableBeansRequireSomeProperties() {
333         super.disableBeansRequireSomeProperties();
334         return this;
335      }
336
337      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
338      public Builder disableIgnoreMissingSetters() {
339         super.disableIgnoreMissingSetters();
340         return this;
341      }
342
343      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
344      public Builder disableIgnoreTransientFields() {
345         super.disableIgnoreTransientFields();
346         return this;
347      }
348
349      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
350      public Builder disableIgnoreUnknownNullBeanProperties() {
351         super.disableIgnoreUnknownNullBeanProperties();
352         return this;
353      }
354
355      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
356      public Builder disableInterfaceProxies() {
357         super.disableInterfaceProxies();
358         return this;
359      }
360
361      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
362      public <T> Builder example(Class<T> pojoClass, T o) {
363         super.example(pojoClass, o);
364         return this;
365      }
366
367      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
368      public <T> Builder example(Class<T> pojoClass, String json) {
369         super.example(pojoClass, json);
370         return this;
371      }
372
373      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
374      public Builder findFluentSetters() {
375         super.findFluentSetters();
376         return this;
377      }
378
379      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
380      public Builder findFluentSetters(Class<?> on) {
381         super.findFluentSetters(on);
382         return this;
383      }
384
385      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
386      public Builder ignoreInvocationExceptionsOnGetters() {
387         super.ignoreInvocationExceptionsOnGetters();
388         return this;
389      }
390
391      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
392      public Builder ignoreInvocationExceptionsOnSetters() {
393         super.ignoreInvocationExceptionsOnSetters();
394         return this;
395      }
396
397      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
398      public Builder ignoreUnknownBeanProperties() {
399         super.ignoreUnknownBeanProperties();
400         return this;
401      }
402
403      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
404      public Builder ignoreUnknownEnumValues() {
405         super.ignoreUnknownEnumValues();
406         return this;
407      }
408
409      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
410      public Builder implClass(Class<?> interfaceClass, Class<?> implClass) {
411         super.implClass(interfaceClass, implClass);
412         return this;
413      }
414
415      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
416      public Builder implClasses(Map<Class<?>,Class<?>> values) {
417         super.implClasses(values);
418         return this;
419      }
420
421      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
422      public Builder interfaceClass(Class<?> on, Class<?> value) {
423         super.interfaceClass(on, value);
424         return this;
425      }
426
427      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
428      public Builder interfaces(java.lang.Class<?>...value) {
429         super.interfaces(value);
430         return this;
431      }
432
433      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
434      public Builder locale(Locale value) {
435         super.locale(value);
436         return this;
437      }
438
439      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
440      public Builder mediaType(MediaType value) {
441         super.mediaType(value);
442         return this;
443      }
444
445      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
446      public Builder notBeanClasses(java.lang.Class<?>...values) {
447         super.notBeanClasses(values);
448         return this;
449      }
450
451      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
452      public Builder notBeanPackages(String...values) {
453         super.notBeanPackages(values);
454         return this;
455      }
456
457      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
458      public Builder propertyNamer(Class<? extends org.apache.juneau.PropertyNamer> value) {
459         super.propertyNamer(value);
460         return this;
461      }
462
463      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
464      public Builder propertyNamer(Class<?> on, Class<? extends org.apache.juneau.PropertyNamer> value) {
465         super.propertyNamer(on, value);
466         return this;
467      }
468
469      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
470      public Builder sortProperties() {
471         super.sortProperties();
472         return this;
473      }
474
475      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
476      public Builder sortProperties(java.lang.Class<?>...on) {
477         super.sortProperties(on);
478         return this;
479      }
480
481      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
482      public Builder stopClass(Class<?> on, Class<?> value) {
483         super.stopClass(on, value);
484         return this;
485      }
486
487      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
488      public <T, S> Builder swap(Class<T> normalClass, Class<S> swappedClass, ThrowingFunction<T,S> swapFunction) {
489         super.swap(normalClass, swappedClass, swapFunction);
490         return this;
491      }
492
493      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
494      public <T, S> Builder swap(Class<T> normalClass, Class<S> swappedClass, ThrowingFunction<T,S> swapFunction, ThrowingFunction<S,T> unswapFunction) {
495         super.swap(normalClass, swappedClass, swapFunction, unswapFunction);
496         return this;
497      }
498
499      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
500      public Builder swaps(java.lang.Class<?>...values) {
501         super.swaps(values);
502         return this;
503      }
504
505      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
506      public Builder timeZone(TimeZone value) {
507         super.timeZone(value);
508         return this;
509      }
510
511      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
512      public Builder typeName(Class<?> on, String value) {
513         super.typeName(on, value);
514         return this;
515      }
516
517      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
518      public Builder typePropertyName(String value) {
519         super.typePropertyName(value);
520         return this;
521      }
522
523      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
524      public Builder typePropertyName(Class<?> on, String value) {
525         super.typePropertyName(on, value);
526         return this;
527      }
528
529      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
530      public Builder useEnumNames() {
531         super.useEnumNames();
532         return this;
533      }
534
535      @Override /* GENERATED - org.apache.juneau.BeanContextable.Builder */
536      public Builder useJavaBeanIntrospector() {
537         super.useJavaBeanIntrospector();
538         return this;
539      }
540
541      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
542      public Builder detectRecursions() {
543         super.detectRecursions();
544         return this;
545      }
546
547      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
548      public Builder detectRecursions(boolean value) {
549         super.detectRecursions(value);
550         return this;
551      }
552
553      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
554      public Builder ignoreRecursions() {
555         super.ignoreRecursions();
556         return this;
557      }
558
559      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
560      public Builder ignoreRecursions(boolean value) {
561         super.ignoreRecursions(value);
562         return this;
563      }
564
565      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
566      public Builder initialDepth(int value) {
567         super.initialDepth(value);
568         return this;
569      }
570
571      @Override /* GENERATED - org.apache.juneau.BeanTraverseContext.Builder */
572      public Builder maxDepth(int value) {
573         super.maxDepth(value);
574         return this;
575      }
576
577      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
578      public Builder accept(String value) {
579         super.accept(value);
580         return this;
581      }
582
583      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
584      public Builder addBeanTypes() {
585         super.addBeanTypes();
586         return this;
587      }
588
589      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
590      public Builder addBeanTypes(boolean value) {
591         super.addBeanTypes(value);
592         return this;
593      }
594
595      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
596      public Builder addRootType() {
597         super.addRootType();
598         return this;
599      }
600
601      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
602      public Builder addRootType(boolean value) {
603         super.addRootType(value);
604         return this;
605      }
606
607      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
608      public Builder keepNullProperties() {
609         super.keepNullProperties();
610         return this;
611      }
612
613      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
614      public Builder keepNullProperties(boolean value) {
615         super.keepNullProperties(value);
616         return this;
617      }
618
619      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
620      public Builder listener(Class<? extends org.apache.juneau.serializer.SerializerListener> value) {
621         super.listener(value);
622         return this;
623      }
624
625      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
626      public Builder produces(String value) {
627         super.produces(value);
628         return this;
629      }
630
631      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
632      public Builder sortCollections() {
633         super.sortCollections();
634         return this;
635      }
636
637      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
638      public Builder sortCollections(boolean value) {
639         super.sortCollections(value);
640         return this;
641      }
642
643      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
644      public Builder sortMaps() {
645         super.sortMaps();
646         return this;
647      }
648
649      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
650      public Builder sortMaps(boolean value) {
651         super.sortMaps(value);
652         return this;
653      }
654
655      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
656      public Builder trimEmptyCollections() {
657         super.trimEmptyCollections();
658         return this;
659      }
660
661      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
662      public Builder trimEmptyCollections(boolean value) {
663         super.trimEmptyCollections(value);
664         return this;
665      }
666
667      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
668      public Builder trimEmptyMaps() {
669         super.trimEmptyMaps();
670         return this;
671      }
672
673      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
674      public Builder trimEmptyMaps(boolean value) {
675         super.trimEmptyMaps(value);
676         return this;
677      }
678
679      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
680      public Builder trimStrings() {
681         super.trimStrings();
682         return this;
683      }
684
685      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
686      public Builder trimStrings(boolean value) {
687         super.trimStrings(value);
688         return this;
689      }
690
691      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
692      public Builder uriContext(UriContext value) {
693         super.uriContext(value);
694         return this;
695      }
696
697      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
698      public Builder uriRelativity(UriRelativity value) {
699         super.uriRelativity(value);
700         return this;
701      }
702
703      @Override /* GENERATED - org.apache.juneau.serializer.Serializer.Builder */
704      public Builder uriResolution(UriResolution value) {
705         super.uriResolution(value);
706         return this;
707      }
708
709      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
710      public Builder fileCharset(Charset value) {
711         super.fileCharset(value);
712         return this;
713      }
714
715      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
716      public Builder maxIndent(int value) {
717         super.maxIndent(value);
718         return this;
719      }
720
721      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
722      public Builder quoteChar(char value) {
723         super.quoteChar(value);
724         return this;
725      }
726
727      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
728      public Builder quoteCharOverride(char value) {
729         super.quoteCharOverride(value);
730         return this;
731      }
732
733      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
734      public Builder sq() {
735         super.sq();
736         return this;
737      }
738
739      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
740      public Builder streamCharset(Charset value) {
741         super.streamCharset(value);
742         return this;
743      }
744
745      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
746      public Builder useWhitespace() {
747         super.useWhitespace();
748         return this;
749      }
750
751      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
752      public Builder useWhitespace(boolean value) {
753         super.useWhitespace(value);
754         return this;
755      }
756
757      @Override /* GENERATED - org.apache.juneau.serializer.WriterSerializer.Builder */
758      public Builder ws() {
759         super.ws();
760         return this;
761      }
762
763      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
764      public Builder addBeanTypesXml() {
765         super.addBeanTypesXml();
766         return this;
767      }
768
769      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
770      public Builder addBeanTypesXml(boolean value) {
771         super.addBeanTypesXml(value);
772         return this;
773      }
774
775      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
776      public Builder addNamespaceUrisToRoot() {
777         super.addNamespaceUrisToRoot();
778         return this;
779      }
780
781      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
782      public Builder addNamespaceUrisToRoot(boolean value) {
783         super.addNamespaceUrisToRoot(value);
784         return this;
785      }
786
787      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
788      public Builder defaultNamespace(Namespace value) {
789         super.defaultNamespace(value);
790         return this;
791      }
792
793      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
794      public Builder disableAutoDetectNamespaces() {
795         super.disableAutoDetectNamespaces();
796         return this;
797      }
798
799      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
800      public Builder disableAutoDetectNamespaces(boolean value) {
801         super.disableAutoDetectNamespaces(value);
802         return this;
803      }
804
805      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
806      public Builder enableNamespaces() {
807         super.enableNamespaces();
808         return this;
809      }
810
811      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
812      public Builder enableNamespaces(boolean value) {
813         super.enableNamespaces(value);
814         return this;
815      }
816
817      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
818      public Builder namespaces(Namespace...values) {
819         super.namespaces(values);
820         return this;
821      }
822
823      @Override /* GENERATED - org.apache.juneau.xml.XmlSerializer.Builder */
824      public Builder ns() {
825         super.ns();
826         return this;
827      }
828
829      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
830      public Builder addBeanTypesHtml() {
831         super.addBeanTypesHtml();
832         return this;
833      }
834
835      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
836      public Builder addBeanTypesHtml(boolean value) {
837         super.addBeanTypesHtml(value);
838         return this;
839      }
840
841      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
842      public Builder addKeyValueTableHeaders() {
843         super.addKeyValueTableHeaders();
844         return this;
845      }
846
847      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
848      public Builder addKeyValueTableHeaders(boolean value) {
849         super.addKeyValueTableHeaders(value);
850         return this;
851      }
852
853      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
854      public Builder disableDetectLabelParameters() {
855         super.disableDetectLabelParameters();
856         return this;
857      }
858
859      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
860      public Builder disableDetectLabelParameters(boolean value) {
861         super.disableDetectLabelParameters(value);
862         return this;
863      }
864
865      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
866      public Builder disableDetectLinksInStrings() {
867         super.disableDetectLinksInStrings();
868         return this;
869      }
870
871      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
872      public Builder disableDetectLinksInStrings(boolean value) {
873         super.disableDetectLinksInStrings(value);
874         return this;
875      }
876
877      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
878      public Builder labelParameter(String value) {
879         super.labelParameter(value);
880         return this;
881      }
882
883      @Override /* GENERATED - org.apache.juneau.html.HtmlSerializer.Builder */
884      public Builder uriAnchorText(AnchorText value) {
885         super.uriAnchorText(value);
886         return this;
887      }
888
889      // </FluentSetters>
890   }
891
892   //-------------------------------------------------------------------------------------------------------------------
893   // Instance
894   //-------------------------------------------------------------------------------------------------------------------
895
896   /**
897    * Constructor.
898    *
899    * @param builder The builder for this object.
900    */
901   public HtmlStrippedDocSerializer(Builder builder) {
902      super(builder);
903   }
904
905   @Override /* Context */
906   public Builder copy() {
907      return new Builder(this);
908   }
909
910   @Override /* Context */
911   public HtmlStrippedDocSerializerSession.Builder createSession() {
912      return HtmlStrippedDocSerializerSession.create(this);
913   }
914
915   @Override /* Context */
916   public HtmlStrippedDocSerializerSession getSession() {
917      return createSession().build();
918   }
919}