XmlAnyAttribute not supported; possible (if unlikely) to be used
(as an alias for @JsonAnySetter)
XmlAnyElement not supported; unlikely to ever be supported.
javax.xml.bind.annotation.XmlAttachmentRef : JSON does not support external attachments
XmlElementDecl
XmlElementRefs because Jackson doesn't have any support for 'named' collection items;
some parts could theoretically be supported
javax.xml.bind.annotation.XmlInlineBinaryData since the underlying concepts
(like XOP) do not exist in JSON -- Jackson will always use inline base64 encoding as the method
javax.xml.bind.annotation.XmlList because JSON does not have (or necessarily need)
method of serializing list of values as space-separated Strings
javax.xml.bind.annotation.XmlMimeType
javax.xml.bind.annotation.XmlMixed since JSON has no concept of mixed content
XmlRegistry not supported, unlikely to ever be.
XmlSchema not supported, unlikely to ever be.
XmlSchemaType not supported, unlikely to ever be.
XmlSchemaTypes not supported, unlikely to ever be.
XmlSeeAlso not supported.
XmlValue will have implicit property named 'value' on
its JSON object; although it should be possible to override this name
| Modifier and Type | Field and Description |
|---|---|
| protected final ValueDeserializer | |
| protected final ValueSerializer | |
| protected final boolean | |
| protected final String | |
| protected JsonInclude. | _nonNillableInclusion
Inclusion value to return for properties annotated with
|
| protected String | _xmlValueName
When using |
| protected static final boolean | |
| protected static final String | |
| protected static final JsonFormat. | |
| protected static final JsonFormat. | |
| protected static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JaxbAnnotationIntrospector(boolean
Whether ignoreXmlIDREF)XmlIDREF annotation should be processed
JAXB style (meaning that references are always serialized using id), or
not (first reference as full POJO, others as ids)
|
| Modifier and Type | Method and Description |
|---|---|
| private static PropertyName | |
| protected Converter | |
| protected String | |
| protected Class | |
| private final Boolean | |
| protected XmlAdapter | |
| protected JavaType | |
| protected JavaType | |
| protected Class | |
| protected String | |
| protected String | |
| protected String | |
| protected Class | |
| protected Class | |
| pack-priv JsonInclude. | |
| protected String | |
| private boolean | |
| private final XmlAdapter | checkAdapter(MapperConfig<?> config, XmlJavaTypeAdapter adapterInfo, Class<?> typeNeeded, boolean forSerialization)
|
| protected XmlAccessType | findAccessType(Annotated ac)
Method for locating JAXB |
| private XmlAdapter | Returns: The adapter, or null if none.The annotated element. am, boolean If true, adapter for serialization; if false, for deserialization forSerialization, Class<?> type)Finds the XmlAdapter for the specified annotation. |
| private XmlAdapter | |
| private <A extends Annotation> A | Returns: The annotation, or null if not found.the annotation class. annotationClass, Annotated The annotated element. annotated, boolean Whether the annotation can be found on the package of the annotated element. includePackage, boolean Whether the annotation can be found on the class of the annotated element. includeClass, boolean Whether the annotation can be found on any superclasses of the class of the annotated element. includeSuperclasses)Finds an annotation associated with given annotatable thing; or if not found, a default annotation it may have (from super class, package and so on) |
| public VisibilityChecker | findAutoDetectVisibility(MapperConfig<?> config, AnnotatedClass ac, VisibilityChecker checker)
Overrides tools. Method for checking if annotations indicate changes to minimum visibility levels needed for auto-detecting property elements (fields, methods, constructors). |
| public Object | findContentDeserializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a deserializer definition for content (values) of
associated |
| public Object | findContentSerializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a serializer definition for content (values) of
associated |
| public Object | findDeserializationContentConverter(MapperConfig<?> config, AnnotatedMember a)
Overrides tools. Method for finding |
| public Object | findDeserializationConverter(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding |
| public Object | findDeserializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a deserializer definition on specified method or field. |
| public String[] | findEnumValues(MapperConfig<?> config, AnnotatedClass annotatedClass, Enum<?>[] enumValues, String[] names)
Overrides tools. Finds the explicitly defined name of the given set of |
| public JsonFormat. | findFormat(MapperConfig<?> config, Annotated m)
Overrides tools. Method for finding format annotations for property or class. |
| public String | findImplicitPropertyName(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. |
| private PropertyName | |
| public Object | findKeyDeserializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a deserializer definition for keys of
associated |
| public PropertyName | findNameForDeserialization(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for deserialization (reading JSON into POJOs). |
| public PropertyName | findNameForSerialization(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
| public String | findNamespace(MapperConfig<?> config, Annotated ann)
Implements tools. Method that can be called to figure out generic namespace property for an annotated object. |
| public ObjectIdInfo | findObjectIdInfo(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for checking whether given annotated thing (type, or accessor) indicates that values referenced (values of type of annotated class, or values referenced by annotated property; latter having precedence) should include Object Identifier, and if so, specify details of Object Identity used. |
| public ObjectIdInfo | findObjectReferenceInfo(MapperConfig<?> config, Annotated ann, ObjectIdInfo base)
Overrides tools. Method for figuring out additional properties of an Object Identity reference |
| public JsonTypeInfo. | findPolymorphicTypeInfo(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for checking whether given Class or Property Accessor specifies polymorphic type-handling information, to indicate need for polymorphic handling. |
| public JsonInclude. | findPropertyInclusion(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking inclusion criteria for a type (Class) or property (yes, method name is bit unfortunate -- not just for properties!). |
| private XmlRootElement | |
| public PropertyName | findRootName(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for locating name used as "root name" (for use by some serializers when outputting root-level object -- mostly for XML compatibility purposes) for given class, if one is defined. |
| public Object | findSerializationContentConverter(MapperConfig<?> config, AnnotatedMember a)
Overrides tools. Method for finding |
| public Object | findSerializationConverter(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding |
| public String[] | findSerializationPropertyOrder(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for accessing defined property serialization order (which may be partial). |
| public Boolean | findSerializationSortAlphabetically(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for checking whether an annotation indicates that serialized properties for which no explicit is defined should be alphabetically (lexicograpically) ordered |
| public ValueSerializer | findSerializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a serializer definition on specified method or field. |
| public List | findSubtypes(MapperConfig<?> config, Annotated a)
Overrides tools. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
| public String | findTypeName(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for checking if specified type has explicit name. |
| public PropertyName | findWrapperName(MapperConfig<?> config, Annotated ann)
Overrides tools. 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. |
| public String | getNameUsedForXmlValue()
Accessor for getting currently configured placeholder named
used for property annotated with |
| public JsonInclude. | |
| public boolean | hasIgnoreMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method called to check whether given property is marked to be ignored. |
| public Boolean | hasRequiredMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method that can be called to check whether this member has an annotation that suggests whether value for matching property is required or not. |
| private boolean | isContainerType(Class<?> raw)
Helper method used to distinguish structured types (arrays, Lists, Maps), which with JAXB use different rules for defining content types. |
| private boolean | Returns: Whether the type is assignable to class javax.activation.DataHandlerThe type. type)Determines whether the type is assignable to class javax.activation.DataHandler without requiring that class to be on the classpath. |
| public Boolean | isIgnorableType(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for checking whether properties that have specified type (class, not generics aware) should be completely ignored for serialization and deserialization purposes. |
| protected boolean | Returns: Whether the annotation is in the JAXB package.The annotation. ann)An annotation is handled if it's in the same package as @XmlElement, including subpackages. |
| public Boolean | isOutputAsAttribute(MapperConfig<?> config, Annotated ann)
Implements tools. Here we assume fairly simple logic; if there is |
| public Boolean | isOutputAsCData(MapperConfig<?> config, Annotated ann)
Implements tools. Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag. |
| public Boolean | isOutputAsText(MapperConfig<?> config, Annotated ann)
Implements tools. 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. |
| private boolean | Returns: Whether the field is invisible.The field. f)Whether the specified field is invisible, per the JAXB visibility rules. |
| private boolean | |
| public JavaType | refineDeserializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides tools. Method called to find out possible type refinements to use for deserialization. |
| public JavaType | refineSerializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides tools. Method called to find out possible type refinements to use for deserialization, including not just value itself but key and/or content type, if type has those. |
| public void | setNameUsedForXmlValue(String name)
Configuration method that can be used to change default name
("value") used for properties annotated with |
| public JaxbAnnotationIntrospector | setNonNillableInclusion(JsonInclude.
Method to call to change inclusion criteria used for property annotated
with |
| public Version | version()
Implements abstract tools. Implements tools. Method that will return version information stored in and read from jar that contains this class. |