Class XmlJaxbAnnotationIntrospector

All Implemented Interfaces:
Versioned, AnnotationIntrospector.XmlExtensions, XmlAnnotationIntrospector, Serializable

@Deprecated public class XmlJaxbAnnotationIntrospector extends NopAnnotationIntrospector implements XmlAnnotationIntrospector
Deprecated.
Since 2.12 (as per above notes): broken since 2.13
Alternative AnnotationIntrospector implementation that that USED TO build on JaxbAnnotationIntrospector from jackson-module-jaxb-annotatins package. But as of Jackson 2.13, SHOULD NOT BE USED as it DOES NOT WORK. Removal was necessary because XML format package does not (and can not) depend on JAXB annotations. Class WILL BE REMOVED from Jackson 2.14 or later on.

See Also:
  • Constructor Details

    • XmlJaxbAnnotationIntrospector

      @Deprecated public XmlJaxbAnnotationIntrospector()
      Deprecated.
    • XmlJaxbAnnotationIntrospector

      public XmlJaxbAnnotationIntrospector(TypeFactory typeFactory)
      Deprecated.
  • Method Details

    • findNamespace

      public String findNamespace(MapperConfig<?> config, Annotated ann)
      Deprecated.
      Description copied from interface: AnnotationIntrospector.XmlExtensions
      Method that can be called to figure out generic namespace property for an annotated object.
      Specified by:
      findNamespace in interface AnnotationIntrospector.XmlExtensions
      Parameters:
      config - Configuration settings in effect
      ann - Annotated entity to introspect
      Returns:
      Null if annotated thing does not define any namespace information; non-null namespace (which may be empty String) otherwise.
    • isOutputAsAttribute

      public Boolean isOutputAsAttribute(MapperConfig<?> config, Annotated ann)
      Deprecated.
      Description copied from interface: AnnotationIntrospector.XmlExtensions
      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 (if not, then as element)
      Specified by:
      isOutputAsAttribute in interface AnnotationIntrospector.XmlExtensions
      Parameters:
      config - Configuration settings in effect
      ann - Annotated entity to introspect
      Returns:
      Null if no indicator found; True or False otherwise
    • isOutputAsText

      public Boolean isOutputAsText(MapperConfig<?> config, Annotated ann)
      Deprecated.
      Description copied from interface: AnnotationIntrospector.XmlExtensions
      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.
      Specified by:
      isOutputAsText in interface AnnotationIntrospector.XmlExtensions
      Parameters:
      config - Configuration settings in effect
      ann - Annotated entity to introspect
      Returns:
      Null if no indicator found; True or False otherwise
    • isOutputAsCData

      public Boolean isOutputAsCData(MapperConfig<?> config, Annotated ann)
      Deprecated.
      Description copied from interface: AnnotationIntrospector.XmlExtensions
      Method 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:
      isOutputAsCData in interface AnnotationIntrospector.XmlExtensions
      Parameters:
      config - Configuration settings in effect
      ann - Annotated entity to introspect
      Returns:
      Null if no indicator found; True or False otherwise