XmlMapper for registering
handlers for XML-specific processing.Note
please do NOT register this directly on XmlMapper: mapper
registers an instance (either one explicitly given in constructor, or, if none,
one it configures) and attempts to re-register is unlikely to work as
you'd expect.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _cfgDefaultUseWrapper
Determination of whether indexed properties (arrays, Lists) that are not explicitly
annotated (with |
| protected String | _cfgNameForTextElement
Name used for pseudo-property used for returning XML Text value (which does not have actual element name to use). |
| protected SerializerFactory | _serializerFactoryOverride
Optional override for |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AnnotationIntrospector | |
| public JacksonXmlModule | overrideSerializerFactory(SerializerFactory factory)
Method to use for overriding default |
| public SerializerFactory | |
| public void | setDefaultUseWrapper(boolean
Whether to enable or disable "use wrapper for non-annotated List properties" state)Method that can be used to define whether |
| public void | setupModule(Module.
Overrides com. Standard implementation handles registration of all configured customizations: it is important that sub-classes call this implementation (usually before additional custom logic) if they choose to override it; otherwise customizations will not be registered. |
| public void | setXMLTextElementName(String
Virtual name to use when exposing XML character data sections name)Method that can be used to define alternate "virtual name" to use for XML CDATA segments; that is, text values. |
| _cfgDefaultUseWrapper | back to summary |
|---|---|
| protected boolean _cfgDefaultUseWrapper Determination of whether indexed properties (arrays, Lists) that are not explicitly
annotated (with Note that JAXB annotation introspector always assumes "do not wrap by default". Jackson annotations have different default due to backwards compatibility.
| |
| _cfgNameForTextElement | back to summary |
|---|---|
| protected String _cfgNameForTextElement Name used for pseudo-property used for returning XML Text value (which does not have actual element name to use). Defaults to empty String, but may be changed for inter-operability reasons: JAXB, for example, uses "value" as name.
| |
| _serializerFactoryOverride | back to summary |
|---|---|
| protected SerializerFactory _serializerFactoryOverride Optional override for
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| JacksonXmlModule | back to summary |
|---|---|
| public JacksonXmlModule() | |
| _constructIntrospector | back to summary |
|---|---|
| protected AnnotationIntrospector _constructIntrospector() | |
| overrideSerializerFactory | back to summary |
|---|---|
| public JacksonXmlModule overrideSerializerFactory(SerializerFactory factory) Method to use for overriding default
| |
| serializerFactoryOverride | back to summary |
|---|---|
public SerializerFactory serializerFactoryOverride()
| |
| setDefaultUseWrapper | back to summary |
|---|---|
| public void setDefaultUseWrapper(boolean state) Method that can be used to define whether Note that method MUST be called before registering the module; otherwise change will not have any effect.
| |
| setupModule | back to summary |
|---|---|
| public void setupModule(Module. Overrides com. Doc from com. Standard implementation handles registration of all configured customizations: it is important that sub-classes call this implementation (usually before additional custom logic) if they choose to override it; otherwise customizations will not be registered.
| |
| setXMLTextElementName | back to summary |
|---|---|
| public void setXMLTextElementName(String name) Method that can be used to define alternate "virtual name" to use for XML CDATA segments; that is, text values. Default name is empty String (""); but some frameworks use other names: JAXB, for example, uses "value". Note that method MUST be called before registering the module; otherwise change will not have any effect.
| |