org.apache.juneau.serializer.SerializerBuilder Maven / Gradle / Ivy
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *
// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *
// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *
// * with the License. You may obtain a copy of the License at *
// * *
// * http://www.apache.org/licenses/LICENSE-2.0 *
// * *
// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *
// * specific language governing permissions and limitations under the License. *
// ***************************************************************************************************************************
package org.apache.juneau.serializer;
import static org.apache.juneau.serializer.Serializer.*;
import java.util.*;
import org.apache.juneau.*;
import org.apache.juneau.annotation.*;
import org.apache.juneau.http.*;
/**
* Builder class for building instances of serializers.
*/
public class SerializerBuilder extends CoreObjectBuilder {
/**
* Constructor, default settings.
*/
public SerializerBuilder() {
super();
}
/**
* Constructor.
*
* @param propertyStore The initial configuration settings for this builder.
*/
public SerializerBuilder(PropertyStore propertyStore) {
super(propertyStore);
}
@Override /* CoreObjectBuilder */
public Serializer build() {
return null;
}
//--------------------------------------------------------------------------------
// Properties
//--------------------------------------------------------------------------------
/**
* Configuration property: Max serialization depth.
*
*
* - Name:
"Serializer.maxDepth"
* - Data type:
Integer
* - Default:
100
* - Session-overridable:
true
*
*
*
* Abort serialization if specified depth is reached in the POJO tree.
* If this depth is exceeded, an exception is thrown.
* This prevents stack overflows from occurring when trying to serialize models with recursive references.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_maxDepth , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_maxDepth
*/
public SerializerBuilder maxDepth(int value) {
return property(SERIALIZER_maxDepth, value);
}
/**
* Configuration property: Initial depth.
*
*
* - Name:
"Serializer.initialDepth"
* - Data type:
Integer
* - Default:
0
* - Session-overridable:
true
*
*
*
* The initial indentation level at the root.
* Useful when constructing document fragments that need to be indented at a certain level.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_initialDepth , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_initialDepth
*/
public SerializerBuilder initialDepth(int value) {
return property(SERIALIZER_initialDepth, value);
}
/**
* Configuration property: Automatically detect POJO recursions.
*
*
* - Name:
"Serializer.detectRecursions"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* Specifies that recursions should be checked for during serialization.
*
*
* Recursions can occur when serializing models that aren't true trees, but rather contain loops.
*
*
* The behavior when recursions are detected depends on the value for
* {@link Serializer#SERIALIZER_ignoreRecursions}.
*
*
* For example, if a model contains the links A->B->C->A, then the JSON generated will look like
* the following when SERIALIZER_ignoreRecursions is true ...
* {A:{B:{C:null}}}
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_detectRecursions , value)
.
* - Checking for recursion can cause a small performance penalty.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_detectRecursions
*/
public SerializerBuilder detectRecursions(boolean value) {
return property(SERIALIZER_detectRecursions, value);
}
/**
* Configuration property: Ignore recursion errors.
*
*
* - Name:
"Serializer.ignoreRecursions"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* Used in conjunction with {@link Serializer#SERIALIZER_detectRecursions}.
* Setting is ignored if SERIALIZER_detectRecursions is false .
*
*
* If true , when we encounter the same object when serializing a tree, we set the value to null .
* Otherwise, an exception is thrown.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_ignoreRecursions , value)
.
* - Checking for recursion can cause a small performance penalty.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_ignoreRecursions
*/
public SerializerBuilder ignoreRecursions(boolean value) {
return property(SERIALIZER_ignoreRecursions, value);
}
/**
* Configuration property: Use whitespace.
*
*
* - Name:
"Serializer.useWhitepace"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* If true , newlines and indentation and spaces are added to the output to improve readability.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_useWhitespace , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_useWhitespace
*/
public SerializerBuilder useWhitespace(boolean value) {
return property(SERIALIZER_useWhitespace, value);
}
/**
* Shortcut for calling useWhitespace(true )
.
*
* @return This object (for method chaining).
*/
public SerializerBuilder ws() {
return useWhitespace(true);
}
/**
* Configuration property: Maximum indentation.
*
*
* - Name:
"Serializer.maxIndent"
* - Data type:
Integer
* - Default:
100
* - Session-overridable:
true
*
*
*
* Specifies the maximum indentation level in the serialized document.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_maxIndent , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_maxIndent
*/
public SerializerBuilder maxIndent(int value) {
return property(SERIALIZER_maxIndent, value);
}
/**
* Configuration property: Add "_type" properties when needed.
*
*
* - Name:
"Serializer.addBeanTypeProperties"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* If true , then "_type" properties will be added to beans if their type cannot be inferred
* through reflection.
* This is used to recreate the correct objects during parsing if the object types cannot be inferred.
* For example, when serializing a {@code Map} field, where the bean class cannot be determined from
* the value type.
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_addBeanTypeProperties , value)
.
* - Checking for recursion can cause a small performance penalty.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_addBeanTypeProperties
*/
public SerializerBuilder addBeanTypeProperties(boolean value) {
return property(SERIALIZER_addBeanTypeProperties, value);
}
/**
* Configuration property: Quote character.
*
*
* - Name:
"Serializer.quoteChar"
* - Data type:
Character
* - Default:
'"'
* - Session-overridable:
true
*
*
*
* This is the character used for quoting attributes and values.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_quoteChar , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_quoteChar
*/
public SerializerBuilder quoteChar(char value) {
return property(SERIALIZER_quoteChar, value);
}
/**
* Shortcut for calling quoteChar('\'' )
.
*
* @return This object (for method chaining).
*/
public SerializerBuilder sq() {
return quoteChar('\'');
}
/**
* Configuration property: Trim null bean property values.
*
*
* - Name:
"Serializer.trimNullProperties"
* - Data type:
Boolean
* - Default:
true
* - Session-overridable:
true
*
*
*
* If true , null bean values will not be serialized to the output.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_trimNullProperties , value)
.
* - Enabling this setting has the following effects on parsing:
*
* - Map entries with
null values will be lost.
*
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_trimNullProperties
*/
public SerializerBuilder trimNullProperties(boolean value) {
return property(SERIALIZER_trimNullProperties, value);
}
/**
* Configuration property: Trim empty lists and arrays.
*
*
* - Name:
"Serializer.trimEmptyLists"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* If true , empty list values will not be serialized to the output.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_trimEmptyCollections , value)
.
* - Enabling this setting has the following effects on parsing:
*
* - Map entries with empty list values will be lost.
*
- Bean properties with empty list values will not be set.
*
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_trimEmptyCollections
*/
public SerializerBuilder trimEmptyCollections(boolean value) {
return property(SERIALIZER_trimEmptyCollections, value);
}
/**
* Configuration property: Trim empty maps.
*
*
* - Name:
"Serializer.trimEmptyMaps"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* If true , empty map values will not be serialized to the output.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_trimEmptyMaps , value)
.
* - Enabling this setting has the following effects on parsing:
*
* - Bean properties with empty map values will not be set.
*
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_trimEmptyMaps
*/
public SerializerBuilder trimEmptyMaps(boolean value) {
return property(SERIALIZER_trimEmptyMaps, value);
}
/**
* Configuration property: Trim strings.
*
*
* - Name:
"Serializer.trimStrings"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* If true , string values will be trimmed of whitespace using {@link String#trim()} before being serialized.
*
*
Notes:
*
* - This is equivalent to calling
property(SERIALIZER_trimStrings , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_trimStrings
*/
public SerializerBuilder trimStrings(boolean value) {
return property(SERIALIZER_trimStrings, value);
}
/**
* Configuration property: URI context bean.
*
*
* - Name:
"Serializer.uriContext"
* - Data type: {@link UriContext}
*
- Default: {@link UriContext#DEFAULT}
*
- Session-overridable:
true
*
*
*
* Bean used for resolution of URIs to absolute or root-relative form.
*
*
Example:
*
* "{authority:'http://localhost:10000',contextRoot:'/myContext',servletPath:'/myServlet',pathInfo:'/foo'}"
*
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_uriContext , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_uriContext
*/
public SerializerBuilder uriContext(UriContext value) {
return property(SERIALIZER_uriContext, value);
}
/**
* Configuration property: URI resolution.
*
*
* - Name:
"Serializer.uriResolution"
* - Data type: {@link UriResolution}
*
- Default: {@link UriResolution#ROOT_RELATIVE}
*
- Session-overridable:
true
*
*
*
* Defines the resolution level for URIs when serializing any of the following:
*
* - {@link java.net.URI}
*
- {@link java.net.URL}
*
- Properties annotated with {@link org.apache.juneau.annotation.URI @URI}
*
*
*
* Possible values are:
*
* - {@link UriResolution#ABSOLUTE}
* - Resolve to an absolute URL (e.g.
"http://host:port/context-root/servlet-path/path-info" ).
* - {@link UriResolution#ROOT_RELATIVE}
* - Resolve to a root-relative URL (e.g.
"/context-root/servlet-path/path-info" ).
* - {@link UriResolution#NONE}
* - Don't do any URL resolution.
*
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_uriResolution , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_uriResolution
*/
public SerializerBuilder uriResolution(UriResolution value) {
return property(SERIALIZER_uriResolution, value);
}
/**
* Configuration property: URI relativity.
*
*
* - Name:
"Serializer.uriRelativity"
* - Data type: {@link UriRelativity}
*
- Default: {@link UriRelativity#RESOURCE}
*
- Session-overridable:
true
*
*
*
* Defines what relative URIs are relative to when serializing any of the following:
*
* - {@link java.net.URI}
*
- {@link java.net.URL}
*
- Properties annotated with {@link org.apache.juneau.annotation.URI @URI}
*
*
*
* Possible values are:
*
* - {@link UriRelativity#RESOURCE}
* - Relative URIs should be considered relative to the servlet URI.
*
- {@link UriRelativity#PATH_INFO}
* - Relative URIs should be considered relative to the request URI.
*
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_uriRelativity , value)
.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_uriRelativity
*/
public SerializerBuilder uriRelativity(UriRelativity value) {
return property(SERIALIZER_uriRelativity, value);
}
/**
* Configuration property: Sort arrays and collections alphabetically.
*
*
* - Name:
"Serializer.sortCollections"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_sortCollections , value)
.
* - This introduces a slight performance penalty.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_sortCollections
*/
public SerializerBuilder sortCollections(boolean value) {
return property(SERIALIZER_sortCollections, value);
}
/**
* Configuration property: Sort maps alphabetically.
*
*
* - Name:
"Serializer.sortMaps"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
* Notes:
*
* - This is equivalent to calling
property(SERIALIZER_sortMaps , value)
.
* - This introduces a slight performance penalty.
*
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_sortMaps
*/
public SerializerBuilder sortMaps(boolean value) {
return property(SERIALIZER_sortMaps, value);
}
/**
* Configuration property: Abridged output.
*
*
* - Name:
"Serializer.parserKnowsRootTypes"
* - Data type:
Boolean
* - Default:
false
* - Session-overridable:
true
*
*
*
* When enabled, it is assumed that the parser knows the exact Java POJO type being parsed, and therefore top-level
* type information that might normally be included to determine the data type will not be serialized.
*
*
* For example, when serializing a POJO with a {@link Bean#typeName()} value, a "_type" will be added when
* this setting is disabled, but not added when it is enabled.
*
* @param value The new value for this property.
* @return This object (for method chaining).
* @see Serializer#SERIALIZER_sortMaps
*/
public SerializerBuilder abridged(boolean value) {
return property(SERIALIZER_abridged, value);
}
/**
* Configuration property: Serializer listener.
*
*
* - Name:
"Serializer.listener"
* - Data type:
Class<? extends SerializerListener>
* - Default:
null
* - Session-overridable:
true
*
*
*
* Class used to listen for errors and warnings that occur during serialization.
*
* @param value The new value for this property.
* @return This object (for method chaining).
*/
public SerializerBuilder listener(Class extends SerializerListener> value) {
return property(SERIALIZER_listener, value);
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beansRequireDefaultConstructor(boolean value) {
super.beansRequireDefaultConstructor(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beansRequireSerializable(boolean value) {
super.beansRequireSerializable(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beansRequireSettersForGetters(boolean value) {
super.beansRequireSettersForGetters(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beansRequireSomeProperties(boolean value) {
super.beansRequireSomeProperties(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanMapPutReturnsOldValue(boolean value) {
super.beanMapPutReturnsOldValue(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanConstructorVisibility(Visibility value) {
super.beanConstructorVisibility(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanClassVisibility(Visibility value) {
super.beanClassVisibility(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanFieldVisibility(Visibility value) {
super.beanFieldVisibility(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder methodVisibility(Visibility value) {
super.methodVisibility(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder useJavaBeanIntrospector(boolean value) {
super.useJavaBeanIntrospector(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder useInterfaceProxies(boolean value) {
super.useInterfaceProxies(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder ignoreUnknownBeanProperties(boolean value) {
super.ignoreUnknownBeanProperties(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder ignoreUnknownNullBeanProperties(boolean value) {
super.ignoreUnknownNullBeanProperties(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder ignorePropertiesWithoutSetters(boolean value) {
super.ignorePropertiesWithoutSetters(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder ignoreInvocationExceptionsOnGetters(boolean value) {
super.ignoreInvocationExceptionsOnGetters(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder ignoreInvocationExceptionsOnSetters(boolean value) {
super.ignoreInvocationExceptionsOnSetters(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder sortProperties(boolean value) {
super.sortProperties(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder notBeanPackages(String...values) {
super.notBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder notBeanPackages(Collection values) {
super.notBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setNotBeanPackages(String...values) {
super.setNotBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setNotBeanPackages(Collection values) {
super.setNotBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeNotBeanPackages(String...values) {
super.removeNotBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeNotBeanPackages(Collection values) {
super.removeNotBeanPackages(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder notBeanClasses(Class>...values) {
super.notBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder notBeanClasses(Collection> values) {
super.notBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setNotBeanClasses(Class>...values) {
super.setNotBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setNotBeanClasses(Collection> values) {
super.setNotBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeNotBeanClasses(Class>...values) {
super.removeNotBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeNotBeanClasses(Collection> values) {
super.removeNotBeanClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanFilters(Class>...values) {
super.beanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanFilters(Collection> values) {
super.beanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setBeanFilters(Class>...values) {
super.setBeanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setBeanFilters(Collection> values) {
super.setBeanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeBeanFilters(Class>...values) {
super.removeBeanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeBeanFilters(Collection> values) {
super.removeBeanFilters(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder pojoSwaps(Class>...values) {
super.pojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder pojoSwaps(Collection> values) {
super.pojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setPojoSwaps(Class>...values) {
super.setPojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setPojoSwaps(Collection> values) {
super.setPojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removePojoSwaps(Class>...values) {
super.removePojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removePojoSwaps(Collection> values) {
super.removePojoSwaps(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder implClasses(Map,Class>> values) {
super.implClasses(values);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder implClass(Class interfaceClass, Class extends T> implClass) {
super.implClass(interfaceClass, implClass);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder includeProperties(Map values) {
super.includeProperties(values);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder includeProperties(String beanClassName, String properties) {
super.includeProperties(beanClassName, properties);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder includeProperties(Class> beanClass, String properties) {
super.includeProperties(beanClass, properties);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder excludeProperties(Map values) {
super.excludeProperties(values);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder excludeProperties(String beanClassName, String properties) {
super.excludeProperties(beanClassName, properties);
return this;
}
@Override /* CoreObjectBuilder */
public CoreObjectBuilder excludeProperties(Class> beanClass, String properties) {
super.excludeProperties(beanClass, properties);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanDictionary(Class>...values) {
super.beanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanDictionary(Collection> values) {
super.beanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setBeanDictionary(Class>...values) {
super.setBeanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder setBeanDictionary(Collection> values) {
super.setBeanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeFromBeanDictionary(Class>...values) {
super.removeFromBeanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeFromBeanDictionary(Collection> values) {
super.removeFromBeanDictionary(values);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder beanTypePropertyName(String value) {
super.beanTypePropertyName(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder defaultParser(Class> value) {
super.defaultParser(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder locale(Locale value) {
super.locale(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder timeZone(TimeZone value) {
super.timeZone(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder mediaType(MediaType value) {
super.mediaType(value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder debug() {
super.debug();
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder property(String name, Object value) {
super.property(name, value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder properties(Map properties) {
super.properties(properties);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder addToProperty(String name, Object value) {
super.addToProperty(name, value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder putToProperty(String name, Object key, Object value) {
super.putToProperty(name, key, value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder putToProperty(String name, Object value) {
super.putToProperty(name, value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder removeFromProperty(String name, Object value) {
super.removeFromProperty(name, value);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder classLoader(ClassLoader classLoader) {
super.classLoader(classLoader);
return this;
}
@Override /* CoreObjectBuilder */
public SerializerBuilder apply(PropertyStore copyFrom) {
super.apply(copyFrom);
return this;
}
}