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 (as of 2.4) it should be possible to override this name
| Modifier and Type | Field and Description |
|---|---|
| protected final JsonDeserializer | |
| protected final JsonSerializer | |
| protected final boolean | |
| protected final String | |
| protected JsonInclude. | _nonNillableInclusion
Inclusion value to return for properties annotated with
|
| protected final TypeFactory | |
| 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 | |
| public | |
| public | JaxbAnnotationIntrospector(TypeFactory
Type factory used for resolving type information typeFactory, 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 | |
| protected TypeResolverBuilder | |
| private boolean | |
| private final XmlAdapter | |
| 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 Class | |
| 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(AnnotatedClass
Annotated class to introspect ac, VisibilityChecker<?> Default visibility settings in effect before any override checker)Overrides com. Method for checking if annotations indicate changes to minimum visibility levels needed for auto-detecting property elements (fields, methods, constructors). |
| public Object | findContentDeserializer(Annotated a)
Overrides com. Method for getting a deserializer definition for content (values) of
associated |
| public Object | findContentSerializer(Annotated a)
Overrides com. Method for getting a serializer definition for content (values) of
associated |
| public Object | findDeserializationContentConverter(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Method for finding |
| public Object | findDeserializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Method for finding |
| public Object | findDeserializer(Annotated am)
Overrides com. Method for getting a deserializer definition on specified method or field. |
| public String[] | findEnumValues(Class<?>
Type of Enumeration enumType, Enum<?>[] Values of enumeration enumValues, String[] Matching declared names of enumeration values (with indexes
matching names)enumValues entries)Overrides com.
Deprecated
Method for efficiently figuring out which if given set of |
| public String[] | findEnumValues(MapperConfig<?>
the mapper configuration to use config, AnnotatedClass the annotated class for which to find the explicit names annotatedClass, Enum<?>[] the set of enumValues, String[] Enum values to find the explicit names forthe matching declared names of enumeration values (with indexes matching
names)enumValues entries)Overrides com. Finds the explicitly defined name of the given set of |
| public JsonFormat. | findFormat(Annotated m)
Overrides com. Method for finding format annotations for property or class. |
| public String | findImplicitPropertyName(AnnotatedMember m)
Overrides com. Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. |
| private PropertyName | |
| public Object | findKeyDeserializer(Annotated am)
Overrides com. Method for getting a deserializer definition for keys of
associated |
| public PropertyName | findNameForDeserialization(Annotated
Annotated entity to check a)Overrides com. 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(Annotated
Property accessor to check a)Overrides com. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
| public String | findNamespace(MapperConfig<?>
Configuration settings in effect config, Annotated Annotated entity to introspect ann)Implements com. Method that can be called to figure out generic namespace property for an annotated object. |
| public ObjectIdInfo | findObjectIdInfo(Annotated
Annotated entity to introspect ann)Overrides com. 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(Annotated
Annotated entity to introspect ann, ObjectIdInfo (optional) Base Object Id information, if any; base)null if noneOverrides com. Method for figuring out additional properties of an Object Identity reference |
| public TypeResolverBuilder | findPropertyContentTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Type of property for which resolver is to be found (must be a container type) containerType)Overrides com. Method for checking if given structured property entity (field or method that has nominal value of Map, Collection or array type) has annotations that indicate that specific type resolver is to be used for handling type information of contained values. |
| public JsonInclude. | findPropertyInclusion(Annotated a)
Overrides com. Method for checking inclusion criteria for a type (Class) or property (yes, method name is bit unfortunate -- not just for properties!). |
| public TypeResolverBuilder | findPropertyTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Base java type of property for which resolver is to be found baseType)Overrides com. Method for checking if given property entity (field or method) has annotations that indicate that specific type resolver is to be used for handling instances. |
| private XmlRootElement | |
| public PropertyName | findRootName(AnnotatedClass
Annotated class to introspect ac)Overrides com. 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(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Method for finding |
| public Object | findSerializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Method for finding |
| public String[] | findSerializationPropertyOrder(AnnotatedClass ac)
Overrides com. Method for accessing defined property serialization order (which may be partial). |
| public Boolean | findSerializationSortAlphabetically(Annotated ann)
Overrides com. Method for checking whether an annotation indicates that serialized properties for which no explicit is defined should be alphabetically (lexicograpically) ordered |
| public JsonSerializer | findSerializer(Annotated am)
Overrides com. Method for getting a serializer definition on specified method or field. |
| public List | findSubtypes(Annotated
Annotated entity (class, field/method) to check for annotations a)Overrides com. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
| public String | findTypeName(AnnotatedClass
Class to check for type name annotations ac)Overrides com. Method for checking if specified type has explicit name. |
| public TypeResolverBuilder | findTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedClass Annotated class to check for annotations ac, JavaType Base java type of value for which resolver is to be found baseType)Overrides com. Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances. |
| public PropertyName | findWrapperName(Annotated ann)
Overrides com. 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. | |
| protected final TypeFactory | |
| public boolean | hasAsValueAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public boolean | hasIgnoreMarker(AnnotatedMember m)
Overrides com. Method called to check whether given property is marked to be ignored. |
| public Boolean | hasRequiredMarker(AnnotatedMember m)
Overrides com. 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(AnnotatedClass
Annotated class to introspect ac)Overrides com. 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<?>
Configuration settings in effect config, Annotated Annotated entity to introspect ann)Implements com. Here we assume fairly simple logic; if there is |
| public Boolean | isOutputAsCData(MapperConfig<?>
Configuration settings in effect config, Annotated Annotated entity to introspect ann)Implements com. 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<?>
Configuration settings in effect config, Annotated Annotated entity to introspect ann)Implements com. 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 com. 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 com. 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 com. Implements com. Method that will return version information stored in and read from jar that contains this class. |