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