|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.AnnotationIntrospector
com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
com.fasterxml.jackson.dataformat.xml.jaxb.XmlJaxbAnnotationIntrospector
public class XmlJaxbAnnotationIntrospector
Alternative AnnotationIntrospector
implementation that
builds on introspector from Jackson XC package that uses JAXB annotations,
not Jackson annotations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector |
|---|
com.fasterxml.jackson.databind.AnnotationIntrospector.Pair, com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty |
| Nested classes/interfaces inherited from interface com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector |
|---|
XmlAnnotationIntrospector.Pair |
| Field Summary |
|---|
| Fields inherited from class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector |
|---|
_dataHandlerDeserializer, _dataHandlerSerializer, _jaxbPackageName, _typeFactory, MARKER_FOR_DEFAULT |
| Constructor Summary | |
|---|---|
XmlJaxbAnnotationIntrospector()
|
|
| Method Summary | ||
|---|---|---|
protected
|
findAnnotation(Class<A> annotationClass,
com.fasterxml.jackson.databind.introspect.Annotated annotated,
boolean includePackage,
boolean includeClass,
boolean includeSuperclasses)
|
|
String |
findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
Method that can be called to figure out generic namespace property for an annotated object. |
|
QName |
findRootElement(com.fasterxml.jackson.databind.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. |
|
QName |
findWrapperElement(com.fasterxml.jackson.databind.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(com.fasterxml.jackson.databind.introspect.Annotated ann)
Here we assume fairly simple logic; if there is XmlAttribute to be found,
we consider it an attibute; if XmlElement, not-an-attribute; and otherwise
we will consider there to be no information. |
|
Boolean |
isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
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. |
|
| Methods inherited from class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector |
|---|
_doFindDeserializationType, _findContentAdapter, _typeResolverFromXmlElements, findAccessType, findAutoDetectVisibility, findContentDeserializer, findContentSerializer, findDeserializationContentType, findDeserializationName, findDeserializationName, findDeserializationName, findDeserializationType, findDeserializer, findEnumValue, findIgnoreUnknownProperties, findKeyDeserializer, findObjectIdInfo, findPropertyContentTypeResolver, findPropertyTypeResolver, findRootName, findSerializationInclusion, findSerializationName, findSerializationName, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializer, findSubtypes, findTypeName, findTypeResolver, hasAnySetterAnnotation, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isHandled, isIgnorableType, version |
| Methods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector |
|---|
allIntrospectors, allIntrospectors, findDeserializationKeyType, findFilterId, findFormat, findInjectableValueId, findKeySerializer, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findReferenceType, findSerializationContentType, findSerializationKeyType, findSerializationTyping, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetterAnnotation, isAnnotationBundle, isTypeId, nopInstance, pair |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlJaxbAnnotationIntrospector()
| Method Detail |
|---|
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
findNamespace in interface XmlAnnotationIntrospectorpublic QName findWrapperElement(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
findWrapperElement in interface XmlAnnotationIntrospectorpublic QName findRootElement(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
findRootElement in interface XmlAnnotationIntrospectorpublic Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAttribute to be found,
we consider it an attibute; if XmlElement, not-an-attribute; and otherwise
we will consider there to be no information.
Caller is likely to default to considering things as elements.
isOutputAsAttribute in interface XmlAnnotationIntrospectorpublic Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsText in interface XmlAnnotationIntrospector
protected <A extends Annotation> A findAnnotation(Class<A> annotationClass,
com.fasterxml.jackson.databind.introspect.Annotated annotated,
boolean includePackage,
boolean includeClass,
boolean includeSuperclasses)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||