com.fasterxml.jackson.xml
Interface XmlAnnotationIntrospector

All Known Implementing Classes:
JacksonXmlAnnotationIntrospector, XmlAnnotationIntrospector.Pair, XmlJaxbAnnotationIntrospector

public interface XmlAnnotationIntrospector

Additional extension interface used above and beyond AnnotationIntrospector to handle XML-specific configuration.

Since:
1.7

Nested Class Summary
static class XmlAnnotationIntrospector.Pair
          Extension of AnnotationIntrospector.Pair that can also dispatch 'XmlAnnotationIntrospector' methods.
 
Method Summary
 String findNamespace(org.codehaus.jackson.map.introspect.Annotated ann)
          Method that can be called to figure out generic namespace property for an annotated object.
 QName findWrapperElement(org.codehaus.jackson.map.introspect.Annotated ann)
          Method to check if specified property has annotation that indicates that it should be wrapped in an element; and if so, name to use.
 Boolean isOutputAsAttribute(org.codehaus.jackson.map.introspect.Annotated ann)
          Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggest it be output as an XML attribute or not (as element)
 

Method Detail

findNamespace

String findNamespace(org.codehaus.jackson.map.introspect.Annotated ann)
Method that can be called to figure out generic namespace property for an annotated object.

Returns:
Null if annotated thing does not define any namespace information; non-null namespace (which may be empty String) otherwise

isOutputAsAttribute

Boolean isOutputAsAttribute(org.codehaus.jackson.map.introspect.Annotated ann)
Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggest it be output as an XML attribute or not (as element)


findWrapperElement

QName findWrapperElement(org.codehaus.jackson.map.introspect.Annotated ann)
Method to check if specified property has annotation that indicates that it should be wrapped in an element; and if so, name to use. Note: local name of "" is used to indicate that name should default to using name (local name and namespace) of property itself.



Copyright © 2011 fasterxml.com. All Rights Reserved.