Class XmlAnnotationIntrospector.JaxbWrapper
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector.JaxbWrapper
-
- All Implemented Interfaces:
XmlAnnotationIntrospector
- Enclosing interface:
- XmlAnnotationIntrospector
public static class XmlAnnotationIntrospector.JaxbWrapper extends java.lang.Object implements XmlAnnotationIntrospector
Wrapper we need to adaptJaxbAnnotationIntrospectorasXmlAnnotationIntrospector: something we can not (alas!) do in JAXB module because of dependency direction (JAXB module has no knowledge of this module).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector_intr
-
Constructor Summary
Constructors Constructor Description JaxbWrapper(com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)Method that can be called to figure out generic namespace property for an annotated object.java.lang.BooleanisOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it be output as an XML attribute or not (as element)java.lang.BooleanisOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.java.lang.BooleanisOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be serialized as text, without element wrapper.voidsetDefaultUseWrapper(boolean b)
-
-
-
Method Detail
-
findNamespace
public java.lang.String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospectorMethod that can be called to figure out generic namespace property for an annotated object.- Specified by:
findNamespacein interfaceXmlAnnotationIntrospector- Returns:
- Null if annotated thing does not define any namespace information; non-null namespace (which may be empty String) otherwise
-
isOutputAsAttribute
public java.lang.Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospectorMethod used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it be output as an XML attribute or not (as element)- Specified by:
isOutputAsAttributein interfaceXmlAnnotationIntrospector
-
isOutputAsText
public java.lang.Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospectorMethod used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be serialized as text, without element wrapper.- Specified by:
isOutputAsTextin interfaceXmlAnnotationIntrospector
-
isOutputAsCData
public java.lang.Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospectorMethod used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.- Specified by:
isOutputAsCDatain interfaceXmlAnnotationIntrospector
-
setDefaultUseWrapper
public void setDefaultUseWrapper(boolean b)
- Specified by:
setDefaultUseWrapperin interfaceXmlAnnotationIntrospector
-
-