@Deprecated public class XmlSchemaSerializerBuilder extends XmlSerializerBuilder
Constructor and Description |
---|
XmlSchemaSerializerBuilder()
Deprecated.
Constructor, default settings.
|
XmlSchemaSerializerBuilder(PropertyStore ps)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
XmlSchemaSerializerBuilder |
add(Map<String,Object> properties)
Deprecated.
Adds multiple free-form configuration properties on this object without first clearing out any previous values.
|
XmlSchemaSerializerBuilder |
addBeanTypes()
Deprecated.
|
XmlSchemaSerializerBuilder |
addBeanTypes(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
addNamespaceUrisToRoot()
Deprecated.
|
XmlSchemaSerializerBuilder |
addNamespaceUrisToRoot(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
addRootType()
Deprecated.
|
XmlSchemaSerializerBuilder |
addRootType(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
addTo(String name,
Object value)
Deprecated.
Adds a free-form value to a SET property.
|
XmlSchemaSerializerBuilder |
annotations(Annotation... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
apply(PropertyStore copyFrom)
Deprecated.
Copies the settings from the specified property store into this builder.
|
XmlSchemaSerializerBuilder |
applyAnnotations(AnnotationList al,
VarResolverSession vrs)
Deprecated.
Applies a set of annotations to this property store.
|
XmlSchemaSerializerBuilder |
applyAnnotations(Class<?>... fromClasses)
Deprecated.
Applies any of the various
|
XmlSchemaSerializerBuilder |
applyAnnotations(Method... fromMethods)
Deprecated.
Applies any of the various
|
XmlSchemaSerializerBuilder |
autoDetectNamespaces(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanClassVisibility(Visibility value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanConstructorVisibility(Visibility value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionary(Class<?>... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionary(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionaryRemove(Class<?>... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionaryRemove(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionaryReplace(Class<?>... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanDictionaryReplace(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanFieldVisibility(Visibility value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanFilters(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanFiltersRemove(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanFiltersReplace(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanMapPutReturnsOldValue()
Deprecated.
|
XmlSchemaSerializerBuilder |
beanMapPutReturnsOldValue(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beanMethodVisibility(Visibility value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireDefaultConstructor()
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireDefaultConstructor(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireSerializable()
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireSerializable(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireSettersForGetters()
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireSettersForGetters(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
beansRequireSomeProperties(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
bpi(Class<?> beanClass,
String value)
Deprecated.
Bean property includes.
|
XmlSchemaSerializerBuilder |
bpi(Map<String,Object> values)
Deprecated.
Bean property includes.
|
XmlSchemaSerializerBuilder |
bpi(String beanClassName,
String value)
Deprecated.
Bean property includes.
|
XmlSchemaSerializerBuilder |
bpro(Class<?> beanClass,
String value)
Deprecated.
Read-only bean properties.
|
XmlSchemaSerializerBuilder |
bpro(Map<String,Object> values)
Deprecated.
Read-only bean properties.
|
XmlSchemaSerializerBuilder |
bpro(String beanClassName,
String value)
Deprecated.
Read-only bean properties.
|
XmlSchemaSerializerBuilder |
bpwo(Class<?> beanClass,
String properties)
Deprecated.
Write-only bean properties.
|
XmlSchemaSerializerBuilder |
bpwo(Map<String,Object> values)
Deprecated.
Write-only bean properties.
|
XmlSchemaSerializerBuilder |
bpwo(String beanClassName,
String value)
Deprecated.
Write-only bean properties.
|
XmlSchemaSerializerBuilder |
bpx(Class<?> beanClass,
String properties)
Deprecated.
Bean property excludes.
|
XmlSchemaSerializerBuilder |
bpx(Map<String,Object> values)
Deprecated.
Bean property excludes.
|
XmlSchemaSerializerBuilder |
bpx(String beanClassName,
String value)
Deprecated.
Bean property excludes.
|
XmlSchemaSerializer |
build()
Deprecated.
Build the object.
|
XmlSchemaSerializerBuilder |
debug()
Deprecated.
|
XmlSchemaSerializerBuilder |
defaultNamespace(String value)
Deprecated.
|
XmlSchemaSerializerBuilder |
detectRecursions()
Deprecated.
|
XmlSchemaSerializerBuilder |
detectRecursions(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
dictionary(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
enableNamespaces(boolean value)
Deprecated.
|
<T> XmlSchemaSerializerBuilder |
example(Class<T> c,
T o)
Deprecated.
|
<T> XmlSchemaSerializerBuilder |
exampleJson(Class<T> c,
String value)
Deprecated.
|
XmlSchemaSerializerBuilder |
fileCharset(Charset value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreInvocationExceptionsOnGetters()
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreInvocationExceptionsOnGetters(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreInvocationExceptionsOnSetters()
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreInvocationExceptionsOnSetters(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignorePropertiesWithoutSetters(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreRecursions()
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreRecursions(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreUnknownBeanProperties()
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreUnknownBeanProperties(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ignoreUnknownNullBeanProperties(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
implClass(Class<?> interfaceClass,
Class<?> implClass)
Deprecated.
|
XmlSchemaSerializerBuilder |
implClasses(Map<Class<?>,Class<?>> values)
Deprecated.
|
XmlSchemaSerializerBuilder |
initialDepth(int value)
Deprecated.
|
XmlSchemaSerializerBuilder |
listener(Class<? extends SerializerListener> value)
Deprecated.
|
XmlSchemaSerializerBuilder |
locale(Locale value)
Deprecated.
|
XmlSchemaSerializerBuilder |
maxDepth(int value)
Deprecated.
|
XmlSchemaSerializerBuilder |
maxIndent(int value)
Deprecated.
|
XmlSchemaSerializerBuilder |
mediaType(MediaType value)
Deprecated.
|
XmlSchemaSerializerBuilder |
namespaces(Namespace... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
notBeanClasses(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
notBeanPackages(Object... values)
Deprecated.
|
XmlSchemaSerializerBuilder |
quoteChar(char value)
Deprecated.
|
XmlSchemaSerializerBuilder |
removeFrom(String name,
Object value)
Deprecated.
Removes a free-form value from a SET, LIST, or MAP property.
|
XmlSchemaSerializerBuilder |
set(Map<String,Object> properties)
Deprecated.
Sets multiple free-form configuration properties on this object replacing all previous values.
|
XmlSchemaSerializerBuilder |
set(String name,
Object value)
Deprecated.
Sets a free-form configuration property on this object.
|
XmlSchemaSerializerBuilder |
sortCollections()
Deprecated.
|
XmlSchemaSerializerBuilder |
sortCollections(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
sortMaps()
Deprecated.
|
XmlSchemaSerializerBuilder |
sortMaps(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
sortProperties()
Deprecated.
|
XmlSchemaSerializerBuilder |
sortProperties(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
sq()
Deprecated.
|
XmlSchemaSerializerBuilder |
streamCharset(Charset value)
Deprecated.
|
XmlSchemaSerializerBuilder |
timeZone(TimeZone value)
Deprecated.
|
XmlSchemaSerializerBuilder |
trimEmptyCollections()
Deprecated.
|
XmlSchemaSerializerBuilder |
trimEmptyCollections(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
trimEmptyMaps()
Deprecated.
|
XmlSchemaSerializerBuilder |
trimEmptyMaps(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
trimNullProperties(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
trimStrings()
Deprecated.
|
XmlSchemaSerializerBuilder |
trimStrings(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
uriContext(UriContext value)
Deprecated.
|
XmlSchemaSerializerBuilder |
uriRelativity(UriRelativity value)
Deprecated.
|
XmlSchemaSerializerBuilder |
uriResolution(UriResolution value)
Deprecated.
|
XmlSchemaSerializerBuilder |
useEnumNames()
Deprecated.
|
XmlSchemaSerializerBuilder |
useEnumNames(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
useInterfaceProxies(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
useJavaBeanIntrospector()
Deprecated.
|
XmlSchemaSerializerBuilder |
useJavaBeanIntrospector(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
useWhitespace()
Deprecated.
|
XmlSchemaSerializerBuilder |
useWhitespace(boolean value)
Deprecated.
|
XmlSchemaSerializerBuilder |
ws()
Deprecated.
|
XmlSchemaSerializerBuilder |
xsNamespace(Namespace value)
Deprecated.
|
appendTo, beanInterceptor, beansDontRequireSomeProperties, dictionaryOn, dontAutoDetectNamespaces, dontIgnorePropertiesWithoutSetters, dontIgnoreTransientFields, dontIgnoreUnknownNullBeanProperties, dontUseInterfaceProxies, enableNamespaces, fluentSetters, fluentSetters, interfaceClass, interfaces, keepNullProperties, namespaces, ns, prependTo, propertyNamer, propertyNamer, putAllTo, putTo, sortProperties, stopClass, swaps, typeName, typePropertyName, typePropertyName, xsNamespace
dontTrimNullProperties, keepNullProperties
debug, excludeProperties, excludeProperties, excludeProperties, fluentSetters, ignoreTransientFields, includeProperties, includeProperties, includeProperties, pojoSwaps, pojoSwapsRemove, pojoSwapsReplace
build, getPropertyStore, getPropertyStoreBuilder, peek, peek
public XmlSchemaSerializerBuilder()
public XmlSchemaSerializerBuilder(PropertyStore ps)
ps
- The initial configuration settings for this builder.public XmlSchemaSerializer build()
ContextBuilder
build
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder addNamespaceUrisToRoot(boolean value)
XmlSerializerBuilder
XmlSerializerBuilder.addNamespaceUrisToRoot()
addNamespaceUrisToRoot
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder addNamespaceUrisToRoot()
XmlSerializerBuilder
Shortcut for calling addNamespaceUrisToRoot(
.
addNamespaceUrisToRoot
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder autoDetectNamespaces(boolean value)
XmlSerializerBuilder
XmlSerializerBuilder.dontAutoDetectNamespaces()
autoDetectNamespaces
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder defaultNamespace(String value)
XmlSerializerBuilder
Specifies the default namespace URI for this document.
defaultNamespace
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder enableNamespaces(boolean value)
XmlSerializerBuilder
XmlSerializerBuilder.enableNamespaces()
enableNamespaces
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder namespaces(Namespace... values)
XmlSerializerBuilder
The default list of namespaces associated with this serializer.
namespaces
in class XmlSerializerBuilder
values
- The new value for this property.public XmlSchemaSerializerBuilder xsNamespace(Namespace value)
XmlSerializerBuilder
Specifies the namespace for the XmlSchemaSerializer
class.
xsNamespace
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder fileCharset(Charset value)
WriterSerializerBuilder
The character set to use for writing
Used when passing in files to Serializer.serialize(Object, Object)
.
fileCharset
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder maxIndent(int value)
WriterSerializerBuilder
Specifies the maximum indentation level in the serialized document.
maxIndent
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder quoteChar(char value)
WriterSerializerBuilder
Specifies the character to use for quoting attributes and values.
quoteChar
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder sq()
WriterSerializerBuilder
Specifies to use single quotes for quoting attributes and values.
sq
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder streamCharset(Charset value)
WriterSerializerBuilder
The character set to use when writing to
Used when passing in output streams and byte arrays to Serializer.serialize(Object, Object)
.
streamCharset
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder useWhitespace(boolean value)
WriterSerializerBuilder
WriterSerializerBuilder.useWhitespace()
useWhitespace
in class WriterSerializerBuilder
public XmlSchemaSerializerBuilder useWhitespace()
WriterSerializerBuilder
When enabled, whitespace is added to the output to improve readability.
useWhitespace
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder ws()
WriterSerializerBuilder
When enabled, whitespace is added to the output to improve readability.
ws
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder addBeanTypes(boolean value)
SerializerBuilder
SerializerBuilder.addBeanTypes()
addBeanTypes
in class SerializerBuilder
public XmlSchemaSerializerBuilder addBeanTypes()
SerializerBuilder
When enabled,
This is used to recreate the correct objects during parsing if the object types cannot be inferred.
For example, when serializing a
Note the differences between the following settings:
SerializerBuilder.addRootType()
- Affects whether SerializerBuilder.addBeanTypes()
- Affects whether
addBeanTypes
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder addRootType(boolean value)
SerializerBuilder
SerializerBuilder.addRootType()
addRootType
in class SerializerBuilder
public XmlSchemaSerializerBuilder addRootType()
SerializerBuilder
When enabled,
When disabled, 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 top-level POJO with a @Bean(typeName)
value, a
Note the differences between the following settings:
SerializerBuilder.addRootType()
- Affects whether SerializerBuilder.addBeanTypes()
- Affects whether
addRootType
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder detectRecursions(boolean value)
BeanTraverseBuilder
BeanTraverseBuilder.detectRecursions()
detectRecursions
in class BeanTraverseBuilder
public XmlSchemaSerializerBuilder detectRecursions()
BeanTraverseBuilder
When enabled, specifies that recursions should be checked for during traversal.
Recursions can occur when traversing models that aren't true trees but rather contain loops.
In general, unchecked recursions cause stack-overflow-errors.
These show up as BeanRecursionException
with the message
detectRecursions
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder ignoreRecursions(boolean value)
BeanTraverseBuilder
BeanTraverseBuilder.ignoreRecursions()
ignoreRecursions
in class BeanTraverseBuilder
public XmlSchemaSerializerBuilder ignoreRecursions()
BeanTraverseBuilder
When enabled, when we encounter the same object when traversing a tree, we set the value to
For example, if a model contains the links A->B->C->A, then the JSON generated will look like
the following when
{A:{B:{C:
ignoreRecursions
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder initialDepth(int value)
BeanTraverseBuilder
The initial indentation level at the root.
Useful when constructing document fragments that need to be indented at a certain level when whitespace is enabled.
initialDepth
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder listener(Class<? extends SerializerListener> value)
SerializerBuilder
Class used to listen for errors and warnings that occur during serialization.
listener
in class XmlSerializerBuilder
value
- The new value for this property.public XmlSchemaSerializerBuilder maxDepth(int value)
BeanTraverseBuilder
When enabled, abort traversal 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 traverse models with recursive references.
maxDepth
in class XmlSerializerBuilder
value
- The new value for this property.
public XmlSchemaSerializerBuilder sortCollections(boolean value)
SerializerBuilder
SerializerBuilder.sortCollections()
sortCollections
in class SerializerBuilder
public XmlSchemaSerializerBuilder sortCollections()
SerializerBuilder
When enabled, copies and sorts the contents of arrays and collections before serializing them.
Note that this introduces a performance penalty since it requires copying the existing collection.
sortCollections
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder sortMaps(boolean value)
SerializerBuilder
SerializerBuilder.sortMaps()
sortMaps
in class SerializerBuilder
public XmlSchemaSerializerBuilder sortMaps()
SerializerBuilder
When enabled, copies and sorts the contents of maps by their keys before serializing them.
Note that this introduces a performance penalty.
sortMaps
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder trimEmptyCollections(boolean value)
SerializerBuilder
SerializerBuilder.trimEmptyCollections()
trimEmptyCollections
in class SerializerBuilder
public XmlSchemaSerializerBuilder trimEmptyCollections()
SerializerBuilder
When enabled, empty lists and arrays will not be serialized.
Note that enabling this setting has the following effects on parsing:
trimEmptyCollections
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder trimEmptyMaps(boolean value)
SerializerBuilder
SerializerBuilder.trimEmptyMaps()
trimEmptyMaps
in class SerializerBuilder
public XmlSchemaSerializerBuilder trimEmptyMaps()
SerializerBuilder
When enabled, empty map values will not be serialized to the output.
Note that enabling this setting has the following effects on parsing:
trimEmptyMaps
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder trimNullProperties(boolean value)
SerializerBuilder
SerializerBuilder.keepNullProperties()
trimNullProperties
in class SerializerBuilder
public XmlSchemaSerializerBuilder trimStrings(boolean value)
SerializerBuilder
SerializerBuilder.trimStrings()
trimStrings
in class SerializerBuilder
public XmlSchemaSerializerBuilder trimStrings()
SerializerBuilder
When enabled, string values will be trimmed of whitespace using String.trim()
before being serialized.
trimStrings
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder uriContext(UriContext value)
SerializerBuilder
Bean used for resolution of URIs to absolute or root-relative form.
uriContext
in class XmlSerializerBuilder
value
- The new value for this property.public XmlSchemaSerializerBuilder uriRelativity(UriRelativity value)
SerializerBuilder
Defines what relative URIs are relative to when serializing any of the following:
Possible values are:
UriRelativity.RESOURCE
- Relative URIs should be considered relative to the servlet URI.
UriRelativity.PATH_INFO
- Relative URIs should be considered relative to the request URI.
See SerializerBuilder.uriContext(UriContext)
for examples.
uriRelativity
in class XmlSerializerBuilder
value
- The new value for this property.
UriRelativity.RESOURCE
public XmlSchemaSerializerBuilder uriResolution(UriResolution value)
SerializerBuilder
Defines the resolution level for URIs when serializing any of the following:
Possible values are:
UriResolution.ABSOLUTE
- Resolve to an absolute URL (e.g. UriResolution.ROOT_RELATIVE
- Resolve to a root-relative URL (e.g. UriResolution.NONE
- Don't do any URL resolution.
See SerializerBuilder.uriContext(UriContext)
for examples.
uriResolution
in class XmlSerializerBuilder
value
- The new value for this property.
UriResolution.NONE
public XmlSchemaSerializerBuilder annotations(Annotation... values)
BeanContextBuilder
Defines annotations to apply to specific classes and methods.
Allows you to dynamically apply Juneau annotations typically applied directly to classes and methods. Useful in cases where you want to use the functionality of the annotation on beans and bean properties but do not have access to the code to do so.
As a rule, any Juneau annotation with an
The following example shows the equivalent methods for applying the @Bean
annotation:
In general, the underlying framework uses this method when it finds dynamically applied annotations on config annotations. However, concrete implementations of annotations are also provided that can be passed directly into builder classes like so:
The following is the list of concrete annotations provided that can be constructed and passed into the builder class:
BeanAnnotation
BeancAnnotation
BeanIgnoreAnnotation
BeanpAnnotation
ExampleAnnotation
NamePropertyAnnotation
ParentPropertyAnnotation
SwapAnnotation
UriAnnotation
CsvAnnotation
HtmlAnnotation
JsoAnnotation
JsonAnnotation
SchemaAnnotation
MsgPackAnnotation
OpenApiAnnotation
PlainTextAnnotation
SoapXmlAnnotation
UonAnnotation
UrlEncodingAnnotation
XmlAnnotation
The syntax for the
annotations
in class XmlSerializerBuilder
values
- The values to add to this property.public XmlSchemaSerializerBuilder beanClassVisibility(Visibility value)
BeanContextBuilder
Classes are not considered beans unless they meet the minimum visibility requirements.
For example, if the visibility is
@Bean
annotation can be used on a non-public bean class to override this setting.
@BeanIgnore
annotation can also be used on a public bean class to ignore it as a bean.
beanClassVisibility
in class XmlSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public XmlSchemaSerializerBuilder beanConstructorVisibility(Visibility value)
BeanContextBuilder
Only look for constructors with the specified minimum visibility.
This setting affects the logic for finding no-arg constructors for bean. Normally, only
@Beanc
annotation can also be used to expose a non-public constructor.
@BeanIgnore
annotation can also be used on a public bean constructor to ignore it.
beanConstructorVisibility
in class XmlSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.@Deprecated public XmlSchemaSerializerBuilder beanDictionary(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionary
in class BeanContextBuilder
@Deprecated public XmlSchemaSerializerBuilder beanDictionary(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionary
in class BeanContextBuilder
values
- The values to add to this property.@Deprecated public XmlSchemaSerializerBuilder beanDictionaryReplace(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionaryReplace
in class BeanContextBuilder
@Deprecated public XmlSchemaSerializerBuilder beanDictionaryReplace(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionaryReplace
in class BeanContextBuilder
@Deprecated public XmlSchemaSerializerBuilder beanDictionaryRemove(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionaryRemove
in class BeanContextBuilder
@Deprecated public XmlSchemaSerializerBuilder beanDictionaryRemove(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
beanDictionaryRemove
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beanFieldVisibility(Visibility value)
BeanContextBuilder
Only look for bean fields with the specified minimum visibility.
This affects which fields on a bean class are considered bean properties. Normally only
Bean fields can be ignored as properties entirely by setting the value to Visibility.NONE
@Beanp
annotation can also be used to expose a non-public field.
@BeanIgnore
annotation can also be used on a public bean field to ignore it as a bean property.
beanFieldVisibility
in class XmlSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public XmlSchemaSerializerBuilder beanFilters(Object... values)
BeanContextBuilder
BeanConfig.interfaces()
and other methods.
beanFilters
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beanFiltersReplace(Object... values)
BeanContextBuilder
BeanConfig.interfaces()
and other methods.
beanFiltersReplace
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beanFiltersRemove(Object... values)
BeanContextBuilder
BeanConfig.interfaces()
and other methods.
beanFiltersRemove
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beanMapPutReturnsOldValue(boolean value)
BeanContextBuilder
BeanContextBuilder.beanMapPutReturnsOldValue()
beanMapPutReturnsOldValue
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beanMapPutReturnsOldValue()
BeanContextBuilder
When enabled, then the BeanMap.put()
method will return old property
values. Otherwise, it returns
Disabled by default because it introduces a slight performance penalty during serialization.
beanMapPutReturnsOldValue
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder beanMethodVisibility(Visibility value)
BeanContextBuilder
Only look for bean methods with the specified minimum visibility.
This affects which methods are detected as getters and setters on a bean class. Normally only
@Beanp
annotation can also be used to expose a non-public method.
@BeanIgnore
annotation can also be used on a public bean getter/setter to ignore it as a bean property.
beanMethodVisibility
in class XmlSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
public XmlSchemaSerializerBuilder beansRequireDefaultConstructor(boolean value)
BeanContextBuilder
BeanContextBuilder.beansRequireDefaultConstructor()
beansRequireDefaultConstructor
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beansRequireDefaultConstructor()
BeanContextBuilder
When enabled, a Java class must implement a default no-arg constructor to be considered a bean.
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
@Bean
annotation can be used on a bean class to override this setting.
@BeanIgnore
annotation can also be used on a class to ignore it as a bean.
beansRequireDefaultConstructor
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder beansRequireSerializable(boolean value)
BeanContextBuilder
BeanContextBuilder.beansRequireSerializable()
beansRequireSerializable
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beansRequireSerializable()
BeanContextBuilder
When enabled, a Java class must implement the Serializable
interface to be considered a bean.
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
@Bean
annotation can be used on a bean class to override this setting.
@BeanIgnore
annotation can also be used on a class to ignore it as a bean.
beansRequireSerializable
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder beansRequireSettersForGetters(boolean value)
BeanContextBuilder
BeanContextBuilder.beansRequireSettersForGetters()
beansRequireSettersForGetters
in class BeanContextBuilder
public XmlSchemaSerializerBuilder beansRequireSettersForGetters()
BeanContextBuilder
When enabled, ignore read-only properties (properties with getters but not setters).
@Beanp
annotation can be used on the getter to override this setting.
@BeanIgnore
annotation can also be used on getters to ignore them as bean properties.
beansRequireSettersForGetters
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder beansRequireSomeProperties(boolean value)
BeanContextBuilder
BeanContextBuilder.beansDontRequireSomeProperties()
beansRequireSomeProperties
in class BeanContextBuilder
public XmlSchemaSerializerBuilder bpi(Class<?> beanClass, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
For example, BeanContextBuilder.ignoreUnknownBeanProperties()
has been called.
This value is entirely optional if you simply want to expose all the getters and public fields on a class as bean properties. However, it's useful if you want certain getters to be ignored or you want the properties to be serialized in a particular order. Note that on IBM JREs, the property order is the same as the order in the source code, whereas on Oracle JREs, the order is entirely random.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code:
builder.annotations(
Bean.bpi()
- On an annotation on the bean class itself.
BeanConfig.bpi()
- On a bean config annotation (see BeanContextBuilder.annotations(Annotation...)
).
bpi
in class XmlSerializerBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpi(Map<String,Object> values)
BeanContextBuilder
Specifies the set and order of names of properties associated with bean classes.
For example, BeanContextBuilder.ignoreUnknownBeanProperties()
has been called.
This value is entirely optional if you simply want to expose all the getters and public fields on a class as bean properties. However, it's useful if you want certain getters to be ignored or you want the properties to be serialized in a particular order. Note that on IBM JREs, the property order is the same as the order in the source code, whereas on Oracle JREs, the order is entirely random.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code for each entry:
builder.annotations(
Bean.bpi()
- On an annotation on the bean class itself.
BeanConfig.bpi()
- On a bean config annotation (see BeanContextBuilder.annotations(Annotation...)
).
bpi
in class XmlSerializerBuilder
values
- The values to add to this builder.
public XmlSchemaSerializerBuilder bpi(String beanClassName, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
For example, BeanContextBuilder.ignoreUnknownBeanProperties()
has been called.
This value is entirely optional if you simply want to expose all the getters and public fields on a class as bean properties. However, it's useful if you want certain getters to be ignored or you want the properties to be serialized in a particular order. Note that on IBM JREs, the property order is the same as the order in the source code, whereas on Oracle JREs, the order is entirely random.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code:
builder.annotations(
Bean.bpi()
- On an annotation on the bean class itself.
BeanConfig.bpi()
- On a bean config annotation (see BeanContextBuilder.annotations(Annotation...)
).
bpi
in class XmlSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpx(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean class.
Same as BeanContextBuilder.bpi(Class, String)
except you specify a list of bean property names that you want to exclude from
serialization.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code:
builder.annotations(
bpx
in class XmlSerializerBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpx(Map<String,Object> values)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean classes.
Same as BeanContextBuilder.bpi(Map)
except you specify a list of bean property names that you want to exclude from
serialization.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code for each entry:
builder.annotations(
bpx
in class XmlSerializerBuilder
values
- The values to add to this builder.
public XmlSchemaSerializerBuilder bpx(String beanClassName, String value)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean class.
Same as BeanContextBuilder.bpx(String, String)
except you specify a list of bean property names that you want to exclude from
serialization.
Setting applies to specified class and all subclasses.
This method is functionally equivalent to the following code:
builder.annotations(
bpx
in class XmlSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpro(Class<?> beanClass, String value)
BeanContextBuilder
Specifies one or more properties on a bean that are read-only despite having valid getters.
Serializers will serialize such properties as usual, but parsers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code:
builder.annotations(
bpro
in class XmlSerializerBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpro(Map<String,Object> values)
BeanContextBuilder
Specifies one or more properties on beans that are read-only despite having valid getters.
Serializers will serialize such properties as usual, but parsers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code for each entry:
builder.annotations(
bpro
in class XmlSerializerBuilder
values
- The values to add to this builder.
public XmlSchemaSerializerBuilder bpro(String beanClassName, String value)
BeanContextBuilder
Specifies one or more properties on a bean that are read-only despite having valid getters.
Serializers will serialize such properties as usual, but parsers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code:
builder.annotations(
bpro
in class XmlSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpwo(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies one or more properties on a bean that are write-only despite having valid setters.
Parsers will parse such properties as usual, but serializers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code:
builder.annotations(
bpwo
in class XmlSerializerBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder bpwo(Map<String,Object> values)
BeanContextBuilder
Specifies one or more properties on a bean that are write-only despite having valid setters.
Parsers will parse such properties as usual, but serializers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code for each entry:
builder.annotations(
bpwo
in class XmlSerializerBuilder
values
- The values to add to this builder.
public XmlSchemaSerializerBuilder bpwo(String beanClassName, String value)
BeanContextBuilder
Specifies one or more properties on a bean that are write-only despite having valid setters.
Parsers will parse such properties as usual, but serializers will silently ignore them.
Note that this is different from the
This method is functionally equivalent to the following code:
builder.annotations(
bpwo
in class XmlSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public XmlSchemaSerializerBuilder debug()
ContextBuilder
Enables the following additional information during serialization:
BeanTraverseContext.BEANTRAVERSE_detectRecursions
.
Enables the following additional information during parsing:
debug
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder dictionary(Object... values)
BeanContextBuilder
The list of classes that make up the bean dictionary in this bean context.
A dictionary is a name/class mapping used to find class types during parsing when they cannot be inferred
through reflection. The names are defined through the @Bean(typeName)
annotation defined
on the bean class. For example, if a class
This setting tells the parsers which classes to look for when resolving
Values can consist of any of the following types:
@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.
Another option is to use the Bean.dictionary()
annotation on the POJO class itself:
A typical usage is to allow for HTML documents to be parsed back into HTML beans:
dictionary
in class XmlSerializerBuilder
values
- The values to add to this property.public <T> XmlSchemaSerializerBuilder example(Class<T> c, T o)
BeanContextBuilder
Specifies an example of the specified class.
Examples are used in cases such as POJO examples in Swagger documents.
Setting applies to specified class and all subclasses.
POJO examples can also be defined on classes via the following:
@Example
.
@Example
with zero arguments or one BeanSession
argument.
BeanSession
argument.
example
in class XmlSerializerBuilder
c
- The POJO class.o
- An instance of the POJO class used for examples.public <T> XmlSchemaSerializerBuilder exampleJson(Class<T> c, String value)
BeanContextBuilder
Specifies an example in JSON of the specified class.
Examples are used in cases such as POJO examples in Swagger documents.
Setting applies to specified class and all subclasses.
POJO examples can also be defined on classes via the following:
@Example
.
@Example
with zero arguments or one BeanSession
argument.
BeanSession
argument.
exampleJson
in class XmlSerializerBuilder
T
- The POJO class type.c
- The POJO class.value
- The simple JSON representation of the example.public XmlSchemaSerializerBuilder ignoreInvocationExceptionsOnGetters(boolean value)
BeanContextBuilder
BeanContextBuilder.ignoreInvocationExceptionsOnGetters()
ignoreInvocationExceptionsOnGetters
in class BeanContextBuilder
public XmlSchemaSerializerBuilder ignoreInvocationExceptionsOnGetters()
BeanContextBuilder
When enabled, errors thrown when calling bean getter methods will silently be ignored.
Otherwise, a BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnGetters
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder ignoreInvocationExceptionsOnSetters(boolean value)
BeanContextBuilder
BeanContextBuilder.ignoreInvocationExceptionsOnSetters()
ignoreInvocationExceptionsOnSetters
in class BeanContextBuilder
public XmlSchemaSerializerBuilder ignoreInvocationExceptionsOnSetters()
BeanContextBuilder
When enabled, errors thrown when calling bean setter methods will silently be ignored.
Otherwise, a BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnSetters
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder ignorePropertiesWithoutSetters(boolean value)
BeanContextBuilder
BeanContextBuilder.dontIgnorePropertiesWithoutSetters()
ignorePropertiesWithoutSetters
in class BeanContextBuilder
public XmlSchemaSerializerBuilder ignoreUnknownBeanProperties(boolean value)
BeanContextBuilder
BeanContextBuilder.ignoreUnknownBeanProperties()
ignoreUnknownBeanProperties
in class BeanContextBuilder
public XmlSchemaSerializerBuilder ignoreUnknownBeanProperties()
BeanContextBuilder
When enabled, trying to set a value on a non-existent bean property will silently be ignored.
Otherwise, a BeanRuntimeException
is thrown.
ignoreUnknownBeanProperties
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder ignoreUnknownNullBeanProperties(boolean value)
BeanContextBuilder
BeanContextBuilder.dontIgnoreUnknownNullBeanProperties()
ignoreUnknownNullBeanProperties
in class BeanContextBuilder
public XmlSchemaSerializerBuilder implClass(Class<?> interfaceClass, Class<?> implClass)
BeanContextBuilder
For 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).
implClass
in class XmlSerializerBuilder
interfaceClass
- The interface class.implClass
- The implementation class.public XmlSchemaSerializerBuilder implClasses(Map<Class<?>,Class<?>> values)
BeanContextBuilder
For 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 XmlSerializerBuilder
values
- The new value for this property.public XmlSchemaSerializerBuilder locale(Locale value)
ContextBuilder
Specifies the default locale for serializer and parser sessions when not specified via SessionArgs.locale(Locale)
.
Typically used for POJO swaps that need to deal with locales such as swaps that convert PojoSwap.swap(BeanSession, Object)
and
PojoSwap.unswap(BeanSession, Object, ClassMeta, String)
methods.
locale
in class XmlSerializerBuilder
value
- The new value for this property.public XmlSchemaSerializerBuilder mediaType(MediaType value)
ContextBuilder
Specifies the default media type for serializer and parser sessions when not specified via SessionArgs.mediaType(MediaType)
.
Typically used for POJO swaps that need to serialize the same POJO classes differently depending on
the specific requested media type. For example, a swap could handle a request for media types
mediaType
in class XmlSerializerBuilder
value
- The new value for this property.public XmlSchemaSerializerBuilder 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
Values can consist of any of the following types:
@BeanIgnore
annotation can also be used on classes to prevent them from being recognized as beans.
notBeanClasses
in class XmlSerializerBuilder
values
- The values to add to this property.
public XmlSchemaSerializerBuilder notBeanPackages(Object... values)
BeanContextBuilder
Used as a convenient way of defining the BeanContextBuilder.notBeanClasses(Object...)
property for entire packages.
Any classes within these packages will be serialized to strings using Object.toString()
.
Note that you can specify suffix patterns to include all subpackages.
Values can consist of any of the following types:
notBeanPackages
in class XmlSerializerBuilder
values
- The values to add to this property.
Package
objects.
public XmlSchemaSerializerBuilder sortProperties(boolean value)
BeanContextBuilder
BeanContextBuilder.sortProperties()
sortProperties
in class BeanContextBuilder
public XmlSchemaSerializerBuilder sortProperties()
BeanContextBuilder
When enabled, all bean properties will be serialized and access in alphabetical order. Otherwise, the natural order of the bean properties is used which is dependent on the JVM vendor. On IBM JVMs, the bean properties are ordered based on their ordering in the Java file. On Oracle JVMs, the bean properties are not ordered (which follows the official JVM specs).
This property is disabled by default so that IBM JVM users don't have to use @Bean
annotations
to force bean properties to be in a particular order and can just alter the order of the fields/methods
in the Java file.
@Bean.sort()
annotation can also be used to sort properties on just a single class.
sortProperties
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder timeZone(TimeZone value)
ContextBuilder
Specifies the default time zone for serializer and parser sessions when not specified via SessionArgs.timeZone(TimeZone)
.
Typically used for POJO swaps that need to deal with timezones such as swaps that convert PojoSwap.swap(BeanSession, Object)
and
PojoSwap.unswap(BeanSession, Object, ClassMeta, String)
methods.
timeZone
in class XmlSerializerBuilder
value
- The new value for this property.public XmlSchemaSerializerBuilder useEnumNames(boolean value)
BeanContextBuilder
BeanContextBuilder.useEnumNames()
useEnumNames
in class BeanContextBuilder
public XmlSchemaSerializerBuilder useEnumNames()
BeanContextBuilder
When enabled, enums are always serialized by name, not using Object.toString()
.
useEnumNames
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder useInterfaceProxies(boolean value)
BeanContextBuilder
BeanContextBuilder.dontUseInterfaceProxies()
useInterfaceProxies
in class BeanContextBuilder
public XmlSchemaSerializerBuilder useJavaBeanIntrospector(boolean value)
BeanContextBuilder
BeanContextBuilder.useJavaBeanIntrospector()
useJavaBeanIntrospector
in class BeanContextBuilder
public XmlSchemaSerializerBuilder useJavaBeanIntrospector()
BeanContextBuilder
Using the built-in Java bean introspector will not pick up fields or non-standard getters/setters.
Most @Bean
annotations will be ignored.
useJavaBeanIntrospector
in class XmlSerializerBuilder
public XmlSchemaSerializerBuilder set(String name, Object value)
ContextBuilder
Provides the ability to specify configuration property values in a generic fashion.
Property names must have the following format that identify their datatype...
...where the parts consist of the following...
For example,
Property values get 'normalized' when they get set.
For example, calling PropertyStore
class to be comparable
and useful in determining whether a cached instance of a context object can be returned.
As a general rule, builders don't typically have "unsetter" methods. For example, once you've set strict
mode on the
set
in class XmlSerializerBuilder
name
- The property name.value
- The property value.
public XmlSchemaSerializerBuilder set(Map<String,Object> properties)
ContextBuilder
Identical in function to ContextBuilder.set(String, Object)
but allows you to specify multiple values at once.
set
in class XmlSerializerBuilder
properties
- The properties to set on this class.
public XmlSchemaSerializerBuilder add(Map<String,Object> properties)
ContextBuilder
Identical in function to ContextBuilder.set(String, Object)
but allows you to specify multiple values at once.
add
in class XmlSerializerBuilder
properties
- The properties to set on this class.
public XmlSchemaSerializerBuilder addTo(String name, Object value)
ContextBuilder
SET properties are those properties with one of the following type parts:
For example, the BeanContext.BEAN_notBeanClasses
property which has the value
addTo
in class XmlSerializerBuilder
name
- The property name.value
- The new value to add to the SET property.
public XmlSchemaSerializerBuilder removeFrom(String name, Object value)
ContextBuilder
removeFrom
in class XmlSerializerBuilder
name
- The property name.value
- The property value in the SET/LIST/MAP property.public XmlSchemaSerializerBuilder apply(PropertyStore copyFrom)
ContextBuilder
apply
in class XmlSerializerBuilder
copyFrom
- The property store whose settings are being copied.public XmlSchemaSerializerBuilder applyAnnotations(AnnotationList al, VarResolverSession vrs)
ContextBuilder
The AnnotationList
object is an ordered list of annotations and the classes/methods/packages they were found on.
applyAnnotations
in class XmlSerializerBuilder
al
- The list of all annotations annotated with PropertyStoreApply
.vrs
- The string resolver for resolving variables in annotation values.public XmlSchemaSerializerBuilder applyAnnotations(Class<?>... fromClasses)
ContextBuilder
Any annotations found that themselves are annotated with PropertyStoreApply
will be resolved and
applied as properties to this builder. These annotations include:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations on classes are appended in the following order:
The default var resolver VarResolver.DEFAULT
is used to resolve any variables in annotation field values.
applyAnnotations
in class XmlSerializerBuilder
fromClasses
- The classes on which the annotations are defined.public XmlSchemaSerializerBuilder applyAnnotations(Method... fromMethods)
ContextBuilder
Any annotations found that themselves are annotated with PropertyStoreApply
will be resolved and
applied as properties to this builder. These annotations include:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations on methods are appended in the following order:
The default var resolver VarResolver.DEFAULT
is used to resolve any variables in annotation field values.
applyAnnotations
in class XmlSerializerBuilder
fromMethods
- The methods on which the annotations are defined.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.