Top Description Methods
com.fasterxml.jackson.dataformat.xml.annotation

public @Interface JacksonXmlProperty

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, FIELD, METHOD, PARAMETER
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Annotation that can be used to provide XML-specific configuration for properties, above and beyond what com.fasterxml.jackson.annotation.JsonProperty contains. It is mainly an alternative to using JAXB annotations.

Note that annotation may be used on

but it can NOT be used on argument/parameter of setter methods (or rather while compiler allows that, will have no effect) -- setter method itself needs to be annotated.

Note that since 2.12 there is no need to use this property over com.fasterxml.jackson.annotation.JsonProperty just to define XML namespace, as @JsonProperty has namespace property.

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
public String
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

isAttributeback to summary
public boolean isAttribute()
localNameback to summary
public String localName()
namespaceback to summary
public String namespace()