public class XmlJaxbAnnotationIntrospector extends com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector implements XmlAnnotationIntrospector
AnnotationIntrospector
implementation that
builds on introspector from Jackson XC package that uses JAXB annotations,
not Jackson annotations.com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
XmlAnnotationIntrospector.Pair
Constructor and Description |
---|
XmlJaxbAnnotationIntrospector()
Deprecated.
|
XmlJaxbAnnotationIntrospector(com.fasterxml.jackson.databind.type.TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
protected <A extends Annotation> |
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.
|
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.
|
_converter, _doFindDeserializationType, _findContentAdapter, _fullDeserializationType, _fullSerializationType, _propertyNameToString, _rawDeserializationType, _rawSerializationType, _typeResolverFromXmlElements, findAccessType, findAutoDetectVisibility, findContentDeserializer, findContentSerializer, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationName, findDeserializationName, findDeserializationType, findDeserializer, findEnumValue, findIgnoreUnknownProperties, findKeyDeserializer, findNameForDeserialization, findNameForSerialization, findObjectIdInfo, findObjectReferenceInfo, findPropertyContentTypeResolver, findPropertyTypeResolver, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationInclusion, findSerializationName, findSerializationName, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializer, findSubtypes, findTypeName, findTypeResolver, findWrapperName, getTypeFactory, hasAnySetterAnnotation, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isIgnorableType, isJAXBAnnotation, version
allIntrospectors, allIntrospectors, findDeserializationKeyType, findDeserializationName, findFilterId, findFilterId, findFormat, findInjectableValueId, findKeySerializer, findNamingStrategy, findNullSerializer, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertyDescription, findReferenceType, findSerializationContentType, findSerializationKeyType, findSerializationTyping, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetterAnnotation, isAnnotationBundle, isTypeId, nopInstance, pair
@Deprecated public XmlJaxbAnnotationIntrospector()
public XmlJaxbAnnotationIntrospector(com.fasterxml.jackson.databind.type.TypeFactory typeFactory)
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
findNamespace
in interface XmlAnnotationIntrospector
findNamespace
in class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
public 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 XmlAnnotationIntrospector
isOutputAsAttribute
in class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
public Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsText
in interface XmlAnnotationIntrospector
isOutputAsText
in class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
protected <A extends Annotation> A findAnnotation(Class<A> annotationClass, com.fasterxml.jackson.databind.introspect.Annotated annotated, boolean includePackage, boolean includeClass, boolean includeSuperclasses)
Copyright © 2012–2014 FasterXML. All rights reserved.