Class JacksonXmlPropertyMapper

java.lang.Object
io.micronaut.serde.processor.xml.JacksonXmlPropertyMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper

public final class JacksonXmlPropertyMapper extends Object implements io.micronaut.inject.annotation.NamedAnnotationMapper
Maps Jackson XML's tools.jackson.dataformat.xml.annotation.JacksonXmlProperty.
Since:
3.2
  • Constructor Details

    • JacksonXmlPropertyMapper

      public JacksonXmlPropertyMapper()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • map

      public List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Maps @JacksonXmlProperty to SerdeConfig, handling attribute and element representation, a custom localName and an optional XML namespace.
      Specified by:
      map in interface io.micronaut.inject.annotation.AnnotationMapper<Annotation>
      Parameters:
      annotation - The @JacksonXmlProperty annotation values
      visitorContext - The context that is being visited
      Returns:
      A singleton list containing the resulting SerdeConfig annotation