|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.AnnotationIntrospector
org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospector
com.fasterxml.jackson.xml.JacksonXmlAnnotationIntrospector
public class JacksonXmlAnnotationIntrospector
Extension of JacksonAnnotationIntrospector that is needed to support
additional xml-specific annotation that Jackson provides. Note, however, that
there is no JAXB annotation support here; that is provided with
separate introspector (see JaxbAnnotationIntrospector).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.jackson.map.AnnotationIntrospector |
|---|
org.codehaus.jackson.map.AnnotationIntrospector.Pair, org.codehaus.jackson.map.AnnotationIntrospector.ReferenceProperty |
| Nested classes/interfaces inherited from interface com.fasterxml.jackson.xml.XmlAnnotationIntrospector |
|---|
XmlAnnotationIntrospector.Pair |
| Constructor Summary | |
|---|---|
JacksonXmlAnnotationIntrospector()
|
|
| Method Summary | |
|---|---|
protected org.codehaus.jackson.map.jsontype.impl.StdTypeResolverBuilder |
_constructStdTypeResolverBuilder()
We will override this method so that we can return instance that cleans up type id property name to be a valid xml name. |
String |
findDeserializablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedField af)
|
String |
findNamespace(org.codehaus.jackson.map.introspect.Annotated ann)
Method that can be called to figure out generic namespace property for an annotated object. |
String |
findPropertyNameForParam(org.codehaus.jackson.map.introspect.AnnotatedParameter ap)
|
QName |
findRootElement(org.codehaus.jackson.map.introspect.Annotated ann)
Method used to find out name to use for the outermost (root) XML element name when serializing (since there is no property that would define it); this overrides default name based on type of object. |
String |
findSerializablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedField af)
|
String |
findSettablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedMethod am)
|
QName |
findWrapperElement(org.codehaus.jackson.map.introspect.Annotated ann)
Method used 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) |
| Methods inherited from class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospector |
|---|
_findTypeResolver, _isIgnorable, findAutoDetectVisibility, findCachability, findContentDeserializer, findContentSerializer, findDeserializationContentType, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findFilterId, findGettablePropertyName, findIgnoreUnknownProperties, findKeyDeserializer, findKeySerializer, findPropertiesToIgnore, findPropertyContentTypeResolver, findPropertyTypeResolver, findReferenceType, findRootName, findSerializationContentType, findSerializationInclusion, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializationViews, findSerializer, findSubtypes, findTypeName, findTypeResolver, hasAnyGetterAnnotation, hasAnySetterAnnotation, hasAsValueAnnotation, hasCreatorAnnotation, isHandled, isIgnorableConstructor, isIgnorableField, isIgnorableMethod, isIgnorableType |
| Methods inherited from class org.codehaus.jackson.map.AnnotationIntrospector |
|---|
allIntrospectors, allIntrospectors, findDeserializer, findSerializer, nopInstance, pair |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JacksonXmlAnnotationIntrospector()
| Method Detail |
|---|
public Boolean isOutputAsAttribute(org.codehaus.jackson.map.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsAttribute in interface XmlAnnotationIntrospectorpublic String findNamespace(org.codehaus.jackson.map.introspect.Annotated ann)
XmlAnnotationIntrospector
findNamespace in interface XmlAnnotationIntrospectorpublic QName findWrapperElement(org.codehaus.jackson.map.introspect.Annotated ann)
XmlAnnotationIntrospector
findWrapperElement in interface XmlAnnotationIntrospectorpublic QName findRootElement(org.codehaus.jackson.map.introspect.Annotated ann)
XmlAnnotationIntrospector
findRootElement in interface XmlAnnotationIntrospectorpublic String findSerializablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedField af)
findSerializablePropertyName in class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospectorpublic String findSettablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedMethod am)
findSettablePropertyName in class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospectorpublic String findDeserializablePropertyName(org.codehaus.jackson.map.introspect.AnnotatedField af)
findDeserializablePropertyName in class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospectorpublic String findPropertyNameForParam(org.codehaus.jackson.map.introspect.AnnotatedParameter ap)
findPropertyNameForParam in class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospectorprotected org.codehaus.jackson.map.jsontype.impl.StdTypeResolverBuilder _constructStdTypeResolverBuilder()
_constructStdTypeResolverBuilder in class org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||