public class OutputStreamSerializerBuilder extends SerializerBuilder
psb| Constructor and Description |
|---|
OutputStreamSerializerBuilder()
Constructor, default settings.
|
OutputStreamSerializerBuilder(PropertyStore ps)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStreamSerializerBuilder |
add(Map<String,Object> properties)
Adds multiple configuration properties on this object.
|
OutputStreamSerializerBuilder |
addTo(String name,
Object value)
Adds a value to a SET or LIST property.
|
OutputStreamSerializerBuilder |
addTo(String name,
String key,
Object value)
Adds or overwrites a value to a SET, LIST, or MAP property.
|
OutputStreamSerializerBuilder |
apply(PropertyStore copyFrom)
Copies the settings from the specified property store into this builder.
|
OutputStreamSerializerBuilder |
applyAnnotations(AnnotationList al,
VarResolverSession vrs)
Applies a set of annotations to this property store.
|
OutputStreamSerializerBuilder |
applyAnnotations(Class<?> fromClass)
Applies any of the various
|
OutputStreamSerializerBuilder |
applyAnnotations(Method fromMethod)
Applies any of the various
|
OutputStreamSerializerBuilder |
beanClassVisibility(Visibility value)
Configuration property: Minimum bean class visibility.
|
OutputStreamSerializerBuilder |
beanConstructorVisibility(Visibility value)
Configuration property: Minimum bean constructor visibility.
|
OutputStreamSerializerBuilder |
beanDictionary(Class<?>... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanDictionary(Object... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanDictionaryRemove(Class<?>... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanDictionaryRemove(Object... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanDictionaryReplace(Class<?>... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanDictionaryReplace(Object... values)
Deprecated.
|
OutputStreamSerializerBuilder |
beanFieldVisibility(Visibility value)
Configuration property: Minimum bean field visibility.
|
OutputStreamSerializerBuilder |
beanFilters(Class<?>... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanFilters(Object... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanFiltersRemove(Class<?>... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanFiltersRemove(Object... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanFiltersReplace(Class<?>... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanFiltersReplace(Object... values)
Configuration property: Bean filters.
|
OutputStreamSerializerBuilder |
beanMapPutReturnsOldValue()
Configuration property: BeanMap.put() returns old property value.
|
OutputStreamSerializerBuilder |
beanMapPutReturnsOldValue(boolean value)
Configuration property: BeanMap.put() returns old property value.
|
OutputStreamSerializerBuilder |
beanMethodVisibility(Visibility value)
Configuration property: Minimum bean method visibility.
|
OutputStreamSerializerBuilder |
beansRequireDefaultConstructor()
Configuration property: Beans require no-arg constructors.
|
OutputStreamSerializerBuilder |
beansRequireDefaultConstructor(boolean value)
Configuration property: Beans require no-arg constructors.
|
OutputStreamSerializerBuilder |
beansRequireSerializable()
Configuration property: Beans require Serializable interface.
|
OutputStreamSerializerBuilder |
beansRequireSerializable(boolean value)
Configuration property: Beans require Serializable interface.
|
OutputStreamSerializerBuilder |
beansRequireSettersForGetters()
Configuration property: Beans require setters for getters.
|
OutputStreamSerializerBuilder |
beansRequireSettersForGetters(boolean value)
Configuration property: Beans require setters for getters.
|
OutputStreamSerializerBuilder |
beansRequireSomeProperties(boolean value)
Configuration property: Beans require at least one property.
|
OutputStreamSerializerBuilder |
beanTypePropertyName(String value)
Configuration property: Bean type property name.
|
OutputStreamSerializerBuilder |
binaryFormat(BinaryFormat value)
Configuration property: Binary output format.
|
OutputStreamSerializerBuilder |
binaryFormat(String value)
Configuration property: Binary output format.
|
OutputStreamSerializerBuilder |
bpi(Class<?> beanClass,
String value)
Configuration property: Bean property includes.
|
OutputStreamSerializerBuilder |
bpi(Map<String,String> values)
Configuration property: Bean property includes.
|
OutputStreamSerializerBuilder |
bpi(String beanClassName,
String value)
Configuration property: Bean property includes.
|
OutputStreamSerializerBuilder |
bpro(Class<?> beanClass,
String value)
Configuration property: Read-only bean properties.
|
OutputStreamSerializerBuilder |
bpro(Map<String,String> values)
Configuration property: Read-only bean properties.
|
OutputStreamSerializerBuilder |
bpro(String beanClassName,
String value)
Configuration property: Read-only bean properties.
|
OutputStreamSerializerBuilder |
bpwo(Class<?> beanClass,
String properties)
Configuration property: Write-only bean properties.
|
OutputStreamSerializerBuilder |
bpwo(Map<String,String> values)
Configuration property: Write-only bean properties.
|
OutputStreamSerializerBuilder |
bpwo(String beanClassName,
String value)
Configuration property: Write-only bean properties.
|
OutputStreamSerializerBuilder |
bpx(Class<?> beanClass,
String properties)
Configuration property: Bean property excludes.
|
OutputStreamSerializerBuilder |
bpx(Map<String,String> values)
Configuration property: Bean property excludes.
|
OutputStreamSerializerBuilder |
bpx(String beanClassName,
String value)
Configuration property: Bean property excludes.
|
OutputStreamSerializer |
build()
Build the object.
|
OutputStreamSerializerBuilder |
debug()
Configuration property: Debug mode.
|
OutputStreamSerializerBuilder |
dictionary(Class<?>... values)
Configuration property: Bean dictionary.
|
OutputStreamSerializerBuilder |
dictionary(Object... values)
Configuration property: Bean dictionary.
|
OutputStreamSerializerBuilder |
dictionaryRemove(Class<?>... values)
Configuration property: Bean dictionary.
|
OutputStreamSerializerBuilder |
dictionaryRemove(Object... values)
Configuration property: Bean dictionary.
|
OutputStreamSerializerBuilder |
dictionaryReplace(Class<?>... values)
Configuration property: Bean dictionary.
|
OutputStreamSerializerBuilder |
dictionaryReplace(Object... values)
Configuration property: Bean dictionary.
|
<T> OutputStreamSerializerBuilder |
example(Class<T> c,
T o)
Configuration property: POJO example.
|
<T> OutputStreamSerializerBuilder |
exampleJson(Class<T> c,
String value)
Configuration property: POJO example.
|
OutputStreamSerializerBuilder |
ignoreInvocationExceptionsOnGetters()
Configuration property: Ignore invocation errors on getters.
|
OutputStreamSerializerBuilder |
ignoreInvocationExceptionsOnGetters(boolean value)
Configuration property: Ignore invocation errors on getters.
|
OutputStreamSerializerBuilder |
ignoreInvocationExceptionsOnSetters()
Configuration property: Ignore invocation errors on setters.
|
OutputStreamSerializerBuilder |
ignoreInvocationExceptionsOnSetters(boolean value)
Configuration property: Ignore invocation errors on setters.
|
OutputStreamSerializerBuilder |
ignorePropertiesWithoutSetters(boolean value)
Configuration property: Ignore properties without setters.
|
OutputStreamSerializerBuilder |
ignoreUnknownBeanProperties()
Configuration property: Ignore unknown properties.
|
OutputStreamSerializerBuilder |
ignoreUnknownBeanProperties(boolean value)
Configuration property: Ignore unknown properties.
|
OutputStreamSerializerBuilder |
ignoreUnknownNullBeanProperties(boolean value)
Configuration property: Ignore unknown properties with null values.
|
OutputStreamSerializerBuilder |
implClass(Class<?> interfaceClass,
Class<?> implClass)
Configuration property: Implementation classes.
|
OutputStreamSerializerBuilder |
implClasses(Map<String,Class<?>> values)
Configuration property: Implementation classes.
|
OutputStreamSerializerBuilder |
locale(Locale value)
Configuration property: Locale.
|
OutputStreamSerializerBuilder |
mediaType(MediaType value)
Configuration property: Media type.
|
OutputStreamSerializerBuilder |
notBeanClasses(Class<?>... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanClasses(Object... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanClassesRemove(Class<?>... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanClassesRemove(Object... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanClassesReplace(Class<?>... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanClassesReplace(Object... values)
Configuration property: Bean class exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackages(Object... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackages(String... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackagesRemove(Object... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackagesRemove(String... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackagesReplace(Object... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
notBeanPackagesReplace(String... values)
Configuration property: Bean package exclusions.
|
OutputStreamSerializerBuilder |
pojoSwaps(Class<?>... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
pojoSwaps(Object... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
pojoSwapsRemove(Class<?>... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
pojoSwapsRemove(Object... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
pojoSwapsReplace(Class<?>... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
pojoSwapsReplace(Object... values)
Configuration property: POJO swaps.
|
OutputStreamSerializerBuilder |
removeFrom(String name,
Object value)
Removes a value from a SET, LIST, or MAP property.
|
OutputStreamSerializerBuilder |
set(Map<String,Object> properties)
Sets multiple configuration properties on this object.
|
OutputStreamSerializerBuilder |
set(String name,
Object value)
Sets a configuration property on this object.
|
OutputStreamSerializerBuilder |
sortProperties()
Configuration property: Sort bean properties.
|
OutputStreamSerializerBuilder |
sortProperties(boolean value)
Configuration property: Sort bean properties.
|
OutputStreamSerializerBuilder |
timeZone(TimeZone value)
Configuration property: TimeZone.
|
OutputStreamSerializerBuilder |
useEnumNames()
Configuration property: Use enum names.
|
OutputStreamSerializerBuilder |
useEnumNames(boolean value)
Configuration property: Use enum names.
|
OutputStreamSerializerBuilder |
useInterfaceProxies(boolean value)
Configuration property: Use interface proxies.
|
OutputStreamSerializerBuilder |
useJavaBeanIntrospector()
Configuration property: Use Java Introspector.
|
OutputStreamSerializerBuilder |
useJavaBeanIntrospector(boolean value)
Configuration property: Use Java Introspector.
|
addBeanTypes, addBeanTypes, addRootType, addRootType, detectRecursions, detectRecursions, ignoreRecursions, ignoreRecursions, initialDepth, listener, maxDepth, sortCollections, sortCollections, sortMaps, sortMaps, trimEmptyCollections, trimEmptyCollections, trimEmptyMaps, trimEmptyMaps, trimNullProperties, trimStrings, trimStrings, uriContext, uriContext, uriRelativity, uriRelativity, uriResolution, uriResolutiondebug, examples, excludeProperties, excludeProperties, excludeProperties, fluentSetters, fluentSetters, includeProperties, includeProperties, includeProperties, propertyNamerbuild, getPropertyStore, getPropertyStoreBuilder, peek, peekpublic OutputStreamSerializerBuilder()
public OutputStreamSerializerBuilder(PropertyStore ps)
ps - The initial configuration settings for this builder.public OutputStreamSerializerBuilder binaryFormat(BinaryFormat value)
When using the Serializer.serializeToString(Object) method on stream-based serializers, this defines the format to use
when converting the resulting byte array to a string.
value - The new value for this property.
BinaryFormat.HEX.public OutputStreamSerializerBuilder binaryFormat(String value)
When using the Serializer.serializeToString(Object) method on stream-based serializers, this defines the format to use
when converting the resulting byte array to a string.
value - The new value for this property.
BinaryFormat.HEX.public OutputStreamSerializerBuilder beanClassVisibility(Visibility value)
BeanContextBuilderClasses are not considered beans unless they meet the minimum visibility requirements.
For example, if the visibility is
beanClassVisibility in class SerializerBuildervalue - The new value for this property.
Visibility.PUBLIC.public OutputStreamSerializerBuilder beanConstructorVisibility(Visibility value)
BeanContextBuilderOnly look for constructors with the specified minimum visibility.
beanConstructorVisibility in class SerializerBuildervalue - The new value for this property.
Visibility.PUBLIC.@Deprecated public OutputStreamSerializerBuilder beanDictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but takes in an array of classes.
beanDictionary in class SerializerBuildervalues - The values to add to this property.@Deprecated public OutputStreamSerializerBuilder beanDictionary(Object... values)
BeanContextBuilderAdds to the list of classes that make up the bean dictionary in this bean context.
beanDictionary in class SerializerBuildervalues - The values to add to this property.@Deprecated public OutputStreamSerializerBuilder beanDictionaryReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
beanDictionaryReplace in class SerializerBuildervalues - The new values for this property.@Deprecated public OutputStreamSerializerBuilder beanDictionaryReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
beanDictionaryReplace in class SerializerBuildervalues - The new values for this property.@Deprecated public OutputStreamSerializerBuilder beanDictionaryRemove(Class<?>... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove in class SerializerBuildervalues - The values to remove from this property.@Deprecated public OutputStreamSerializerBuilder beanDictionaryRemove(Object... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove in class SerializerBuildervalues - The values to remove from this property.public OutputStreamSerializerBuilder beanFieldVisibility(Visibility value)
BeanContextBuilderOnly look for bean fields with the specified minimum visibility.
beanFieldVisibility in class SerializerBuildervalue - The new value for this property.
Visibility.PUBLIC.public OutputStreamSerializerBuilder beanFilters(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...) but takes in an array of classes.
beanFilters in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder beanFilters(Object... values)
BeanContextBuilder
This is a programmatic equivalent to the @Bean annotation.
It's useful when you want to use the Bean annotation functionality, but you don't have the ability to alter
the bean classes.
beanFilters in class SerializerBuildervalues - The values to add to this property.
@Bean(typeName).
BeanDictionaryList containing a collection of bean classes with type name annotations.
BeanDictionaryMap containing a mapping of type names to classes without type name annotations.
public OutputStreamSerializerBuilder beanFiltersReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...) but replaces the existing values.
beanFiltersReplace in class SerializerBuildervalues - The new values for this property.
@Bean(typeName).
BeanDictionaryList containing a collection of bean classes with type name annotations.
BeanDictionaryMap containing a mapping of type names to classes without type name annotations.
public OutputStreamSerializerBuilder beanFiltersReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...) but replaces the existing values.
beanFiltersReplace in class SerializerBuildervalues - The new values for this property.
@Bean(typeName).
BeanDictionaryList containing a collection of bean classes with type name annotations.
BeanDictionaryMap containing a mapping of type names to classes without type name annotations.
public OutputStreamSerializerBuilder beanFiltersRemove(Class<?>... values)
BeanContextBuilderRemoves from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove in class SerializerBuildervalues - The values to remove from this property.
@Bean(typeName).
BeanDictionaryList containing a collection of bean classes with type name annotations.
BeanDictionaryMap containing a mapping of type names to classes without type name annotations.
public OutputStreamSerializerBuilder beanFiltersRemove(Object... values)
BeanContextBuilderRemoves from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove in class SerializerBuildervalues - The values to remove from this property.
@Bean(typeName).
BeanDictionaryList containing a collection of bean classes with type name annotations.
BeanDictionaryMap containing a mapping of type names to classes without type name annotations.
public OutputStreamSerializerBuilder beanMapPutReturnsOldValue(boolean value)
BeanContextBuilder
If BeanMap.put() method will return old property
values.
Otherwise, it returns
beanMapPutReturnsOldValue in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder beanMapPutReturnsOldValue()
BeanContextBuilder
Shortcut for calling beanMapPutReturnsOldValue(.
beanMapPutReturnsOldValue in class SerializerBuilderpublic OutputStreamSerializerBuilder beanMethodVisibility(Visibility value)
BeanContextBuilderOnly look for bean methods with the specified minimum visibility.
beanMethodVisibility in class SerializerBuildervalue - The new value for this property.
Visibility.PUBLICpublic OutputStreamSerializerBuilder beansRequireDefaultConstructor(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString() method.
beansRequireDefaultConstructor in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder beansRequireDefaultConstructor()
BeanContextBuilder
Shortcut for calling beansRequireDefaultConstructor(.
beansRequireDefaultConstructor in class SerializerBuilderpublic OutputStreamSerializerBuilder beansRequireSerializable(boolean value)
BeanContextBuilder
If Serializable interface to be considered a bean.
Otherwise, the bean will be serialized as a string using the Object.toString() method.
beansRequireSerializable in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder beansRequireSerializable()
BeanContextBuilder
Shortcut for calling beansRequireSerializable(.
beansRequireSerializable in class SerializerBuilderpublic OutputStreamSerializerBuilder beansRequireSettersForGetters(boolean value)
BeanContextBuilder
If
Otherwise, they will be ignored.
beansRequireSettersForGetters in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder beansRequireSettersForGetters()
BeanContextBuilder
Shortcut for calling beansRequireSettersForGetters(.
beansRequireSettersForGetters in class SerializerBuilderpublic OutputStreamSerializerBuilder beansRequireSomeProperties(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString() method.
beansRequireSomeProperties in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder beanTypePropertyName(String value)
BeanContextBuilderThis specifies the name of the bean property used to store the dictionary name of a bean type so that the parser knows the data type to reconstruct.
beanTypePropertyName in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder bpi(Class<?> beanClass, String value)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class SerializerBuilderbeanClass - The bean class.value - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpi(Map<String,String> values)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder bpi(String beanClassName, String value)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class SerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpx(Class<?> beanClass, String properties)
BeanContextBuilderSpecifies to exclude the specified list of properties for the specified bean class.
bpx in class SerializerBuilderbeanClass - The bean class.properties - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpx(Map<String,String> values)
BeanContextBuilderSpecifies to exclude the specified list of properties for the specified bean classes.
bpx in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder bpx(String beanClassName, String value)
BeanContextBuilderbpx in class SerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpro(Class<?> beanClass, String value)
BeanContextBuilderSpecifies the read-only properties for the specified bean class.
bpro in class SerializerBuilderbeanClass - The bean class.value - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpro(Map<String,String> values)
BeanContextBuilderSpecifies the read-only properties for the specified bean classes.
bpro in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder bpro(String beanClassName, String value)
BeanContextBuilderSpecifies the read-only properties for the specified bean class.
bpro in class SerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpwo(Class<?> beanClass, String properties)
BeanContextBuilderSpecifies the write-only properties for the specified bean class.
bpwo in class SerializerBuilderbeanClass - The bean class.properties - Comma-delimited list of property names.public OutputStreamSerializerBuilder bpwo(Map<String,String> values)
BeanContextBuilderSpecifies the write-only properties for the specified bean classes.
bpwo in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder bpwo(String beanClassName, String value)
BeanContextBuilderSpecifies the write-only properties for the specified bean class.
bpwo in class SerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public OutputStreamSerializerBuilder debug()
BeanContextBuilder
Shortcut for calling debug(.
debug in class SerializerBuilderpublic OutputStreamSerializerBuilder dictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but takes in an array of classes.
dictionary in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder dictionary(Object... values)
BeanContextBuilderAdds to the list of classes that make up the bean dictionary in this bean context.
dictionary in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder dictionaryReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
dictionaryReplace in class SerializerBuildervalues - The new values for this property.public OutputStreamSerializerBuilder dictionaryReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
dictionaryReplace in class SerializerBuildervalues - The new values for this property.public OutputStreamSerializerBuilder dictionaryRemove(Class<?>... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove in class SerializerBuildervalues - The values to remove from this property.public OutputStreamSerializerBuilder dictionaryRemove(Object... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove in class SerializerBuildervalues - The values to remove from this property.public <T> OutputStreamSerializerBuilder example(Class<T> c, T o)
BeanContextBuilderSpecifies an example of the specified class.
example in class SerializerBuilderc - The POJO class.o - An instance of the POJO class used for examples.public <T> OutputStreamSerializerBuilder exampleJson(Class<T> c, String value)
BeanContextBuilderSpecifies an example of the specified class.
exampleJson in class SerializerBuilderT - The POJO class type.c - The POJO class.value - The simple JSON representation of the example.public OutputStreamSerializerBuilder ignoreInvocationExceptionsOnGetters(boolean value)
BeanContextBuilder
If BeanRuntimeException is thrown.
ignoreInvocationExceptionsOnGetters in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder ignoreInvocationExceptionsOnGetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnGetters(.
ignoreInvocationExceptionsOnGetters in class SerializerBuilderpublic OutputStreamSerializerBuilder ignoreInvocationExceptionsOnSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreInvocationExceptionsOnSetters in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder ignoreInvocationExceptionsOnSetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnSetters(.
ignoreInvocationExceptionsOnSetters in class SerializerBuilderpublic OutputStreamSerializerBuilder ignorePropertiesWithoutSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignorePropertiesWithoutSetters in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder ignoreUnknownBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreUnknownBeanProperties in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder ignoreUnknownBeanProperties()
BeanContextBuilder
Shortcut for calling ignoreUnknownBeanProperties(.
ignoreUnknownBeanProperties in class SerializerBuilderpublic OutputStreamSerializerBuilder ignoreUnknownNullBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreUnknownNullBeanProperties in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder implClass(Class<?> interfaceClass, Class<?> implClass)
BeanContextBuilderimplClass in class SerializerBuilderinterfaceClass - The interface class.implClass - The implementation class.public OutputStreamSerializerBuilder implClasses(Map<String,Class<?>> values)
BeanContextBuilderFor interfaces and abstract classes this method can be used to specify an implementation class for the interface/abstract class so that instances of the implementation class are used when instantiated (e.g. during a parse).
implClasses in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder locale(Locale value)
BeanContextBuilderSpecifies a default locale for serializer and parser sessions.
locale in class SerializerBuildervalue - The new value for this property.public OutputStreamSerializerBuilder mediaType(MediaType value)
BeanContextBuilderSpecifies a default media type value for serializer and parser sessions.
mediaType in class SerializerBuildervalue - The new value for this property.public OutputStreamSerializerBuilder notBeanClasses(Class<?>... values)
BeanContextBuilder
List of classes that should not be treated as beans even if they appear to be bean-like.
Not-bean classes are converted to
notBeanClasses in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder notBeanClasses(Object... values)
BeanContextBuilder
List of classes that should not be treated as beans even if they appear to be bean-like.
Not-bean classes are converted to
notBeanClasses in class SerializerBuildervalues - The values to add to this property.
public OutputStreamSerializerBuilder notBeanClassesReplace(Class<?>... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace in class SerializerBuildervalues - The new value for this property.public OutputStreamSerializerBuilder notBeanClassesReplace(Object... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace in class SerializerBuildervalues - The new value for this property.
public OutputStreamSerializerBuilder notBeanClassesRemove(Class<?>... values)
BeanContextBuildernotBeanClassesRemove in class SerializerBuildervalues - The values to remove from this property.public OutputStreamSerializerBuilder notBeanClassesRemove(Object... values)
BeanContextBuildernotBeanClassesRemove in class SerializerBuildervalues - The values to remove from this property.
public OutputStreamSerializerBuilder notBeanPackages(Object... values)
BeanContextBuildernotBeanPackages in class SerializerBuildervalues - The values to add to this property.
public OutputStreamSerializerBuilder notBeanPackages(String... values)
BeanContextBuildernotBeanPackages in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder notBeanPackagesReplace(String... values)
BeanContextBuildernotBeanPackagesReplace in class SerializerBuildervalues - public OutputStreamSerializerBuilder notBeanPackagesReplace(Object... values)
BeanContextBuildernotBeanPackagesReplace in class SerializerBuildervalues - public OutputStreamSerializerBuilder notBeanPackagesRemove(String... values)
BeanContextBuildernotBeanPackagesRemove in class SerializerBuildervalues - The values to remove from this property.public OutputStreamSerializerBuilder notBeanPackagesRemove(Object... values)
BeanContextBuildernotBeanPackagesRemove in class SerializerBuildervalues - public OutputStreamSerializerBuilder pojoSwaps(Class<?>... values)
BeanContextBuilderpojoSwaps in class SerializerBuildervalues - The values to add to this property.public OutputStreamSerializerBuilder pojoSwaps(Object... values)
BeanContextBuilderpojoSwaps in class SerializerBuildervalues - The values to add to this property.
PojoSwap.
SurrogateSwap.
public OutputStreamSerializerBuilder pojoSwapsReplace(Class<?>... values)
BeanContextBuilderpojoSwapsReplace in class SerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public OutputStreamSerializerBuilder pojoSwapsReplace(Object... values)
BeanContextBuilderpojoSwapsReplace in class SerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public OutputStreamSerializerBuilder pojoSwapsRemove(Class<?>... values)
BeanContextBuilderpojoSwapsRemove in class SerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public OutputStreamSerializerBuilder pojoSwapsRemove(Object... values)
BeanContextBuilderpojoSwapsRemove in class SerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public OutputStreamSerializerBuilder sortProperties(boolean value)
BeanContextBuilder
When
sortProperties in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder sortProperties()
BeanContextBuilder
Shortcut for calling sortProperties(.
sortProperties in class SerializerBuilderpublic OutputStreamSerializerBuilder timeZone(TimeZone value)
BeanContextBuildertimeZone in class SerializerBuildervalue - The new value for this property.public OutputStreamSerializerBuilder useEnumNames(boolean value)
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString().
useEnumNames in class SerializerBuildervalue - The property value.public OutputStreamSerializerBuilder useEnumNames()
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString().
useEnumNames in class SerializerBuilderpublic OutputStreamSerializerBuilder useInterfaceProxies(boolean value)
BeanContextBuilder
If InvocationHandler if there is no other way of instantiating them.
useInterfaceProxies in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder useJavaBeanIntrospector(boolean value)
BeanContextBuilderUsing the built-in Java bean introspector will not pick up fields or non-standard getters/setters.
@Bean annotations will be ignored if you enable this setting.
useJavaBeanIntrospector in class SerializerBuildervalue - The new value for this property.
public OutputStreamSerializerBuilder useJavaBeanIntrospector()
BeanContextBuilder
Shortcut for calling useJavaBeanIntrospector(.
useJavaBeanIntrospector in class SerializerBuilderpublic OutputStreamSerializerBuilder set(String name, Object value)
ContextBuilderset in class SerializerBuildername - The property name.value - The property value.PropertyStoreBuilder.set(String, Object)public OutputStreamSerializerBuilder set(Map<String,Object> properties)
ContextBuilderset in class SerializerBuilderproperties - The properties to set on this class.PropertyStoreBuilder.set(java.util.Map)public OutputStreamSerializerBuilder add(Map<String,Object> properties)
ContextBuilderadd in class SerializerBuilderproperties - The properties to set on this class.PropertyStoreBuilder.add(java.util.Map)public OutputStreamSerializerBuilder addTo(String name, Object value)
ContextBuilderaddTo in class SerializerBuildername - The property name.value - The new value to add to the SET property.public OutputStreamSerializerBuilder addTo(String name, String key, Object value)
ContextBuilderaddTo in class SerializerBuildername - The property name.key - The property value map key.value - The property value map value.public OutputStreamSerializerBuilder removeFrom(String name, Object value)
ContextBuilderremoveFrom in class SerializerBuildername - The property name.value - The property value in the SET property.public OutputStreamSerializerBuilder apply(PropertyStore copyFrom)
ContextBuilderapply in class SerializerBuildercopyFrom - The factory whose settings are being copied.public OutputStreamSerializerBuilder applyAnnotations(AnnotationList al, VarResolverSession vrs)
ContextBuilderapplyAnnotations in class SerializerBuilderal - The list of all annotations annotated with PropertyStoreApply.vrs - The string resolver for resolving variables in annotation values.public OutputStreamSerializerBuilder applyAnnotations(Class<?> fromClass)
ContextBuilderApplies any of the following annotations:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations are appended in the following order:
applyAnnotations in class SerializerBuilderfromClass - The class on which the annotations are defined.public OutputStreamSerializerBuilder applyAnnotations(Method fromMethod)
ContextBuilderApplies any of the following annotations:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations are appended in the following orders:
applyAnnotations in class SerializerBuilderfromMethod - The method on which the annotations are defined.public OutputStreamSerializer build()
ContextBuilderbuild in class SerializerBuilderCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.