diff --git a/docs/javadoc/2.10/allclasses-frame.html b/docs/javadoc/2.10/allclasses-frame.html new file mode 100644 index 000000000..70c4abe43 --- /dev/null +++ b/docs/javadoc/2.10/allclasses-frame.html @@ -0,0 +1,66 @@ + + + +
+ + +public class DefaultingXmlTypeResolverBuilder +extends com.fasterxml.jackson.databind.ObjectMapper.DefaultTypeResolverBuilder +implements Serializable+
StdTypeResolverBuilder
specifically used with
+ Default Typing.
+
+ Composition/sub-classing gets quite tricky here: ideally we would just
+ extend XmlTypeResolverBuilder
but unfortunately inheritance hierarchy
+ does not allow this.
_appliesFor, _subtypeValidator
_customIdResolver, _defaultImpl, _idType, _includeAs, _typeIdVisible, _typeProperty
Constructor and Description | +
---|
DefaultingXmlTypeResolverBuilder(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping t,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.jsontype.TypeIdResolver |
+idResolver(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
+ com.fasterxml.jackson.databind.JavaType baseType,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator,
+ Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes,
+ boolean forSer,
+ boolean forDeser) |
+
com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
+init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType,
+ com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes) |
+
com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
+typeProperty(String typeIdPropName) |
+
buildTypeDeserializer, buildTypeSerializer, construct, subTypeValidator, useForType
defaultImpl, defineDefaultImpl, getDefaultImpl, getTypeProperty, inclusion, isTypeIdVisible, noTypeInfoBuilder, reportInvalidBaseType, typeIdVisibility, verifyBaseTypeValidity
public DefaultingXmlTypeResolverBuilder(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping t, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv)+
public com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType, + com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes)+
init
in interface com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder>
init
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
public com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder typeProperty(String typeIdPropName)+
typeProperty
in interface com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder>
typeProperty
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
protected com.fasterxml.jackson.databind.jsontype.TypeIdResolver idResolver(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, + com.fasterxml.jackson.databind.JavaType baseType, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator, + Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes, + boolean forSer, + boolean forDeser)+
idResolver
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlAnnotationIntrospector.html new file mode 100644 index 000000000..0e345dfcd --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlAnnotationIntrospector.html @@ -0,0 +1,619 @@ + + + + + + +public class JacksonXmlAnnotationIntrospector +extends com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector +implements XmlAnnotationIntrospector+
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
).com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
Modifier and Type | +Field and Description | +
---|---|
protected boolean |
+_cfgDefaultUseWrapper |
+
static boolean |
+DEFAULT_USE_WRAPPER
+For backwards compatibility with 2.0, the default behavior is
+ to assume use of List wrapper if no annotations are used.
+ |
+
_annotationsInside, _cfgConstructorPropertiesImpliesCreator
Constructor and Description | +
---|
JacksonXmlAnnotationIntrospector() |
+
JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.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.
+ |
+
protected com.fasterxml.jackson.databind.PropertyName |
+_findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a) |
+
com.fasterxml.jackson.databind.PropertyName |
+findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
+
com.fasterxml.jackson.databind.PropertyName |
+findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
+
String |
+findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
+Method that can be called to figure out generic namespace
+ property for an annotated object.
+ |
+
com.fasterxml.jackson.databind.PropertyName |
+findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac) |
+
com.fasterxml.jackson.databind.PropertyName |
+findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann) |
+
Boolean |
+isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)
+Method used to check whether given annotated element
+ (field, method, constructor parameter) has indicator that suggests
+ it be output as an XML attribute or not (as element)
+ |
+
Boolean |
+isOutputAsCData(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 wrapped in a CDATA tag.
+ |
+
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.
+ |
+
void |
+setDefaultUseWrapper(boolean b) |
+
_classIfExplicit, _classIfExplicit, _constructNoTypeResolverBuilder, _constructVirtualProperty, _constructVirtualProperty, _findConstructorName, _findTypeResolver, _isIgnorable, _propertyName, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, readResolve, refineDeserializationType, refineSerializationType, resolveSetterConflict, setConstructorPropertiesImpliesCreator, version
_findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findIgnoreUnknownProperties, findPropertiesToIgnore, findPropertiesToIgnore, findSerializationInclusion, findSerializationInclusionForContent, nopInstance, pair
public static final boolean DEFAULT_USE_WRAPPER+
protected boolean _cfgDefaultUseWrapper+
public JacksonXmlAnnotationIntrospector()+
public JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper)+
public com.fasterxml.jackson.databind.PropertyName findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann)+
findWrapperName
in class com.fasterxml.jackson.databind.AnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac)+
findRootName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
findNamespace
in interface XmlAnnotationIntrospector
public Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsAttribute
in interface XmlAnnotationIntrospector
public Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsText
in interface XmlAnnotationIntrospector
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsCData
in interface XmlAnnotationIntrospector
public void setDefaultUseWrapper(boolean b)+
setDefaultUseWrapper
in interface XmlAnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a)+
findNameForSerialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a)+
findNameForDeserialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder _constructStdTypeResolverBuilder()+
_constructStdTypeResolverBuilder
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.PropertyName _findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlModule.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlModule.html new file mode 100644 index 000000000..bf2fcc7d1 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/JacksonXmlModule.html @@ -0,0 +1,482 @@ + + + + + + +public class JacksonXmlModule +extends com.fasterxml.jackson.databind.module.SimpleModule +implements Serializable+
com.fasterxml.jackson.databind.Module.SetupContext
Modifier and Type | +Field and Description | +
---|---|
protected boolean |
+_cfgDefaultUseWrapper
+Determination of whether indexed properties (arrays, Lists) that are not explicitly
+ annotated (with
+JacksonXmlElementWrapper
+ or equivalent) should default to using implicit wrapper (with same name as property) or not. |
+
protected String |
+_cfgNameForTextElement
+Name used for pseudo-property used for returning XML Text value (which does
+ not have actual element name to use).
+ |
+
_abstractTypes, _deserializerModifier, _deserializers, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version
Constructor and Description | +
---|
JacksonXmlModule() |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
+_constructIntrospector() |
+
void |
+setDefaultUseWrapper(boolean state)
+Method that can be used to define whether
+AnnotationIntrospector
+ we register will use wrapper for indexed (List, array) properties or not,
+ if there are no explicit annotations. |
+
void |
+setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) |
+
void |
+setXMLTextElementName(String name)
+Method that can be used to define alternate "virtual name" to use
+ for XML CDATA segments; that is, text values.
+ |
+
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setValueInstantiators, version
getDependencies
protected boolean _cfgDefaultUseWrapper+
JacksonXmlElementWrapper
+ or equivalent) should default to using implicit wrapper (with same name as property) or not.
+ If enabled, wrapping is used by default; if false, it is not.
++ Note that JAXB annotation introspector always assumes "do not wrap by default". + Jackson annotations have different default due to backwards compatibility.
protected String _cfgNameForTextElement+
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)+
setupModule
in class com.fasterxml.jackson.databind.module.SimpleModule
public void setDefaultUseWrapper(boolean state)+
AnnotationIntrospector
+ we register will use wrapper for indexed (List, array) properties or not,
+ if there are no explicit annotations.
+ See JacksonXmlElementWrapper
+ for details.
++ Note that method MUST be called before registering the module; otherwise change + will not have any effect.
state
- Whether to enable or disable "use wrapper for non-annotated List properties"public void setXMLTextElementName(String name)+
+ Note that method MUST be called before registering the module; otherwise change + will not have any effect.
name
- Virtual name to use when exposing XML character data sectionsprotected com.fasterxml.jackson.databind.AnnotationIntrospector _constructIntrospector()+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/PackageVersion.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/PackageVersion.html new file mode 100644 index 000000000..f90b04a2e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/PackageVersion.html @@ -0,0 +1,321 @@ + + + + + + +public final class PackageVersion +extends Object +implements com.fasterxml.jackson.core.Versioned+
Modifier and Type | +Field and Description | +
---|---|
static com.fasterxml.jackson.core.Version |
+VERSION |
+
Constructor and Description | +
---|
PackageVersion() |
+
Modifier and Type | +Method and Description | +
---|---|
com.fasterxml.jackson.core.Version |
+version() |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.JaxbWrapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.JaxbWrapper.html new file mode 100644 index 000000000..d376ad5fe --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.JaxbWrapper.html @@ -0,0 +1,443 @@ + + + + + + +public static class XmlAnnotationIntrospector.JaxbWrapper +extends Object +implements XmlAnnotationIntrospector+
JaxbAnnotationIntrospector
as
+ XmlAnnotationIntrospector
: something we can not (alas!)
+ do in JAXB module because of dependency direction (JAXB module
+ has no knowledge of this module).XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
Modifier and Type | +Field and Description | +
---|---|
protected com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector |
+_intr |
+
Constructor and Description | +
---|
JaxbWrapper(com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector i) |
+
Modifier and Type | +Method and Description | +
---|---|
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)
+Method used to check whether given annotated element
+ (field, method, constructor parameter) has indicator that suggests
+ it be output as an XML attribute or not (as element)
+ |
+
Boolean |
+isOutputAsCData(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 wrapped in a CDATA tag.
+ |
+
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.
+ |
+
void |
+setDefaultUseWrapper(boolean b) |
+
protected final com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector _intr+
public JaxbWrapper(com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector i)+
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
findNamespace
in interface XmlAnnotationIntrospector
public Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsAttribute
in interface XmlAnnotationIntrospector
public Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsText
in interface XmlAnnotationIntrospector
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsCData
in interface XmlAnnotationIntrospector
public void setDefaultUseWrapper(boolean b)+
setDefaultUseWrapper
in interface XmlAnnotationIntrospector
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.Pair.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.Pair.html new file mode 100644 index 000000000..5044bf3a6 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.Pair.html @@ -0,0 +1,513 @@ + + + + + + +public static class XmlAnnotationIntrospector.Pair +extends com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair +implements XmlAnnotationIntrospector+
AnnotationIntrospector.Pair
that can
+ also dispatch 'XmlAnnotationIntrospector' methods.com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
Modifier and Type | +Field and Description | +
---|---|
protected XmlAnnotationIntrospector |
+_xmlPrimary |
+
protected XmlAnnotationIntrospector |
+_xmlSecondary |
+
_primary, _secondary
Constructor and Description | +
---|
Pair(com.fasterxml.jackson.databind.AnnotationIntrospector p,
+ com.fasterxml.jackson.databind.AnnotationIntrospector s) |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
+Method that can be called to figure out generic namespace
+ property for an annotated object.
+ |
+
static XmlAnnotationIntrospector.Pair |
+instance(com.fasterxml.jackson.databind.AnnotationIntrospector a1,
+ com.fasterxml.jackson.databind.AnnotationIntrospector a2) |
+
Boolean |
+isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)
+Method used to check whether given annotated element
+ (field, method, constructor parameter) has indicator that suggests
+ it be output as an XML attribute or not (as element)
+ |
+
Boolean |
+isOutputAsCData(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 wrapped in a CDATA tag.
+ |
+
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.
+ |
+
void |
+setDefaultUseWrapper(boolean b) |
+
_explicitClassOrOb, _isExplicitClassOrOb, allIntrospectors, allIntrospectors, create, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findIgnoreUnknownProperties, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRootName, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationInclusion, findSerializationInclusionForContent, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, refineDeserializationType, refineSerializationType, resolveSetterConflict, version
_findAnnotation, _hasAnnotation, _hasOneOf, nopInstance, pair
protected final XmlAnnotationIntrospector _xmlPrimary+
protected final XmlAnnotationIntrospector _xmlSecondary+
public Pair(com.fasterxml.jackson.databind.AnnotationIntrospector p, + com.fasterxml.jackson.databind.AnnotationIntrospector s)+
public static XmlAnnotationIntrospector.Pair instance(com.fasterxml.jackson.databind.AnnotationIntrospector a1, + com.fasterxml.jackson.databind.AnnotationIntrospector a2)+
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
findNamespace
in interface XmlAnnotationIntrospector
public Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsAttribute
in interface XmlAnnotationIntrospector
public Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsText
in interface XmlAnnotationIntrospector
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsCData
in interface XmlAnnotationIntrospector
public void setDefaultUseWrapper(boolean b)+
setDefaultUseWrapper
in interface XmlAnnotationIntrospector
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.html new file mode 100644 index 000000000..3239430a8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlAnnotationIntrospector.html @@ -0,0 +1,348 @@ + + + + + + +public interface XmlAnnotationIntrospector
+AnnotationIntrospector
to handle XML-specific configuration.Modifier and Type | +Interface and Description | +
---|---|
static class |
+XmlAnnotationIntrospector.JaxbWrapper
+Wrapper we need to adapt
+JaxbAnnotationIntrospector as
+ XmlAnnotationIntrospector : something we can not (alas!)
+ do in JAXB module because of dependency direction (JAXB module
+ has no knowledge of this module). |
+
static class |
+XmlAnnotationIntrospector.Pair
+Extension of
+AnnotationIntrospector.Pair that can
+ also dispatch 'XmlAnnotationIntrospector' methods. |
+
Modifier and Type | +Method and Description | +
---|---|
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)
+Method used to check whether given annotated element
+ (field, method, constructor parameter) has indicator that suggests
+ it be output as an XML attribute or not (as element)
+ |
+
Boolean |
+isOutputAsCData(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 wrapped in a CDATA tag.
+ |
+
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.
+ |
+
void |
+setDefaultUseWrapper(boolean b) |
+
String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)+
Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)+
Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)+
Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)+
void setDefaultUseWrapper(boolean b)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactory.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactory.html new file mode 100644 index 000000000..257cbbf8f --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactory.html @@ -0,0 +1,1519 @@ + + + + + + +public class XmlFactory
+extends com.fasterxml.jackson.core.JsonFactory
+FromXmlParser
and ToXmlGenerator
+ instances.
+
+ Implements JsonFactory
since interface for constructing XML backed
+ parsers and generators is quite similar to dealing with JSON.
com.fasterxml.jackson.core.JsonFactory.Feature
Modifier and Type | +Field and Description | +
---|---|
protected String |
+_cfgNameForTextElement |
+
protected String |
+_jdkXmlInFactory
+Hiding place for JDK-serialization unthawed factories...
+ |
+
protected String |
+_jdkXmlOutFactory
+Hiding place for JDK-serialization unthawed factories...
+ |
+
protected int |
+_xmlGeneratorFeatures |
+
protected XMLInputFactory |
+_xmlInputFactory |
+
protected XMLOutputFactory |
+_xmlOutputFactory |
+
protected int |
+_xmlParserFeatures |
+
static String |
+FORMAT_NAME_XML
+Name used to identify XML format
+ (and returned by
+getFormatName() |
+
_byteSymbolCanonicalizer, _characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON
Modifier | +Constructor and Description | +
---|---|
|
+XmlFactory()
+Default constructor used to create factory instances.
+ |
+
|
+XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc) |
+
protected |
+XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc,
+ int xpFeatures,
+ int xgFeatures,
+ XMLInputFactory xmlIn,
+ XMLOutputFactory xmlOut,
+ String nameForTextElem) |
+
|
+XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc,
+ XMLInputFactory xmlIn,
+ XMLOutputFactory xmlOut) |
+
protected |
+XmlFactory(XmlFactoryBuilder b)
+Constructors used by
+JsonFactoryBuilder for instantiation. |
+
protected |
+XmlFactory(XmlFactory src,
+ com.fasterxml.jackson.core.ObjectCodec oc) |
+
|
+XmlFactory(XMLInputFactory xmlIn) |
+
|
+XmlFactory(XMLInputFactory xmlIn,
+ XMLOutputFactory xmlOut) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.core.JsonGenerator |
+_createGenerator(Writer out,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected FromXmlParser |
+_createParser(byte[] data,
+ int offset,
+ int len,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected FromXmlParser |
+_createParser(char[] data,
+ int offset,
+ int len,
+ com.fasterxml.jackson.core.io.IOContext ctxt,
+ boolean recycleBuffer) |
+
protected FromXmlParser |
+_createParser(InputStream in,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected FromXmlParser |
+_createParser(Reader r,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected XMLStreamWriter |
+_createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt,
+ OutputStream out) |
+
protected XMLStreamWriter |
+_createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt,
+ Writer w) |
+
protected OutputStream |
+_decorate(com.fasterxml.jackson.core.io.IOContext ioCtxt,
+ OutputStream out) |
+
protected Writer |
+_decorate(com.fasterxml.jackson.core.io.IOContext ioCtxt,
+ Writer out) |
+
protected void |
+_initFactories(XMLInputFactory xmlIn,
+ XMLOutputFactory xmlOut) |
+
protected XMLStreamReader |
+_initializeXmlReader(XMLStreamReader sr) |
+
protected XMLStreamWriter |
+_initializeXmlWriter(XMLStreamWriter sw) |
+
static XmlFactoryBuilder |
+builder() |
+
boolean |
+canUseCharArrays()
+As of 2.4, we do have actual capability for passing char arrays
+ efficiently, but unfortunately
+ have no working mechanism for recycling buffers.
+ |
+
XmlFactory |
+configure(FromXmlParser.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML parser feature.
+ |
+
XmlFactory |
+configure(ToXmlGenerator.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML generator feature.
+ |
+
XmlFactory |
+copy()
+Note: compared to base implementation by
+JsonFactory ,
+ here the copy will actually share underlying XML input and
+ output factories, as there is no way to make copies of those. |
+
ToXmlGenerator |
+createGenerator(File f,
+ com.fasterxml.jackson.core.JsonEncoding enc) |
+
ToXmlGenerator |
+createGenerator(OutputStream out) |
+
ToXmlGenerator |
+createGenerator(OutputStream out,
+ com.fasterxml.jackson.core.JsonEncoding enc) |
+
ToXmlGenerator |
+createGenerator(Writer out) |
+
ToXmlGenerator |
+createGenerator(XMLStreamWriter sw)
+Factory method that wraps given
+XMLStreamWriter , usually to allow
+ incremental serialization to compose large output by serializing a sequence
+ of individual objects. |
+
com.fasterxml.jackson.core.JsonParser |
+createParser(String content)
+Overridden just to prevent trying to optimize access via char array;
+ while nice idea, problem is that we don't have proper hooks to ensure
+ that temporary buffer gets recycled; so let's just use StringReader.
+ |
+
FromXmlParser |
+createParser(XMLStreamReader sr)
+Factory method that wraps given
+XMLStreamReader , usually to allow
+ partial data-binding. |
+
XmlFactory |
+disable(FromXmlParser.Feature f)
+Method for disabling specified XML parser feature.
+ |
+
XmlFactory |
+disable(ToXmlGenerator.Feature f)
+Method for disabling specified XML generator feature.
+ |
+
XmlFactory |
+enable(FromXmlParser.Feature f)
+Method for enabling specified XML parser feature.
+ |
+
XmlFactory |
+enable(ToXmlGenerator.Feature f)
+Method for enabling specified XML generator feature.
+ |
+
int |
+getFormatGeneratorFeatures() |
+
String |
+getFormatName()
+Method that returns short textual id identifying format
+ this factory supports.
+ |
+
int |
+getFormatParserFeatures() |
+
Class<FromXmlParser.Feature> |
+getFormatReadFeatureType() |
+
Class<ToXmlGenerator.Feature> |
+getFormatWriteFeatureType() |
+
XMLInputFactory |
+getXMLInputFactory() |
+
XMLOutputFactory |
+getXMLOutputFactory() |
+
String |
+getXMLTextElementName() |
+
com.fasterxml.jackson.core.format.MatchStrength |
+hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) |
+
static com.fasterxml.jackson.core.format.MatchStrength |
+hasXMLFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
+Method that tries to figure out if content seems to be in some kind
+ of XML format.
+ |
+
boolean |
+isEnabled(FromXmlParser.Feature f)
+Checked whether specified XML parser feature is enabled.
+ |
+
boolean |
+isEnabled(ToXmlGenerator.Feature f)
+Check whether specified XML generator feature is enabled.
+ |
+
protected Object |
+readResolve()
+Method that we need to override to actually make restoration go
+ through constructors etc.
+ |
+
XmlFactoryBuilder |
+rebuild() |
+
boolean |
+requiresCustomCodec()
+XML format does require support from custom
+ObjectCodec
+ (that is, XmlMapper ), so need to return true here. |
+
void |
+setXMLInputFactory(XMLInputFactory f) |
+
void |
+setXMLOutputFactory(XMLOutputFactory f) |
+
void |
+setXMLTextElementName(String name) |
+
com.fasterxml.jackson.core.Version |
+version() |
+
_checkInvalidCopy, _createContext, _createNonBlockingContext, _createParser, _createUTF8Generator, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, canHandleBinaryNatively, canParseAsync, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, requiresPropertyOrdering, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparator
_createDataOutputWrapper, _optimizedStreamFromURL
public static final String FORMAT_NAME_XML+
getFormatName()
protected int _xmlParserFeatures+
protected int _xmlGeneratorFeatures+
protected transient XMLInputFactory _xmlInputFactory+
protected transient XMLOutputFactory _xmlOutputFactory+
protected String _cfgNameForTextElement+
protected transient String _jdkXmlInFactory+
protected transient String _jdkXmlOutFactory+
public XmlFactory()+
public XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc)+
public XmlFactory(XMLInputFactory xmlIn)+
public XmlFactory(XMLInputFactory xmlIn, + XMLOutputFactory xmlOut)+
public XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, + XMLInputFactory xmlIn, + XMLOutputFactory xmlOut)+
protected XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, + int xpFeatures, + int xgFeatures, + XMLInputFactory xmlIn, + XMLOutputFactory xmlOut, + String nameForTextElem)+
protected XmlFactory(XmlFactory src, + com.fasterxml.jackson.core.ObjectCodec oc)+
protected XmlFactory(XmlFactoryBuilder b)+
JsonFactoryBuilder
for instantiation.public static XmlFactoryBuilder builder()+
public XmlFactoryBuilder rebuild()+
rebuild
in class com.fasterxml.jackson.core.JsonFactory
protected void _initFactories(XMLInputFactory xmlIn, + XMLOutputFactory xmlOut)+
public XmlFactory copy()+
JsonFactory
,
+ here the copy will actually share underlying XML input and
+ output factories, as there is no way to make copies of those.copy
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.Version version()+
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.JsonFactory
protected Object readResolve()+
readResolve
in class com.fasterxml.jackson.core.JsonFactory
public void setXMLTextElementName(String name)+
public String getXMLTextElementName()+
public final XmlFactory configure(FromXmlParser.Feature f, + boolean state)+
public XmlFactory enable(FromXmlParser.Feature f)+
public XmlFactory disable(FromXmlParser.Feature f)+
public final boolean isEnabled(FromXmlParser.Feature f)+
public int getFormatParserFeatures()+
getFormatParserFeatures
in class com.fasterxml.jackson.core.JsonFactory
public int getFormatGeneratorFeatures()+
getFormatGeneratorFeatures
in class com.fasterxml.jackson.core.JsonFactory
public final XmlFactory configure(ToXmlGenerator.Feature f, + boolean state)+
public XmlFactory enable(ToXmlGenerator.Feature f)+
public XmlFactory disable(ToXmlGenerator.Feature f)+
public final boolean isEnabled(ToXmlGenerator.Feature f)+
public XMLInputFactory getXMLInputFactory()+
public void setXMLInputFactory(XMLInputFactory f)+
public XMLOutputFactory getXMLOutputFactory()+
public void setXMLOutputFactory(XMLOutputFactory f)+
public String getFormatName()+
+ Note: sub-classes should override this method; default + implementation will return null for all sub-classes
getFormatName
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) + throws IOException+
hasFormat
in class com.fasterxml.jackson.core.JsonFactory
IOException
public boolean requiresCustomCodec()+
ObjectCodec
+ (that is, XmlMapper
), so need to return true here.requiresCustomCodec
in class com.fasterxml.jackson.core.JsonFactory
public boolean canUseCharArrays()+
canUseCharArrays
in class com.fasterxml.jackson.core.JsonFactory
public Class<FromXmlParser.Feature> getFormatReadFeatureType()+
getFormatReadFeatureType
in class com.fasterxml.jackson.core.JsonFactory
public Class<ToXmlGenerator.Feature> getFormatWriteFeatureType()+
getFormatWriteFeatureType
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.JsonParser createParser(String content) + throws IOException+
createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
public ToXmlGenerator createGenerator(OutputStream out) + throws IOException+
createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
public ToXmlGenerator createGenerator(OutputStream out, + com.fasterxml.jackson.core.JsonEncoding enc) + throws IOException+
createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
public ToXmlGenerator createGenerator(Writer out) + throws IOException+
createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
public ToXmlGenerator createGenerator(File f, + com.fasterxml.jackson.core.JsonEncoding enc) + throws IOException+
createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
public FromXmlParser createParser(XMLStreamReader sr) + throws IOException+
XMLStreamReader
, usually to allow
+ partial data-binding.IOException
public ToXmlGenerator createGenerator(XMLStreamWriter sw) + throws IOException+
XMLStreamWriter
, usually to allow
+ incremental serialization to compose large output by serializing a sequence
+ of individual objects.IOException
protected FromXmlParser _createParser(InputStream in, + com.fasterxml.jackson.core.io.IOContext ctxt) + throws IOException+
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected FromXmlParser _createParser(Reader r, + com.fasterxml.jackson.core.io.IOContext ctxt) + throws IOException+
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected FromXmlParser _createParser(char[] data, + int offset, + int len, + com.fasterxml.jackson.core.io.IOContext ctxt, + boolean recycleBuffer) + throws IOException+
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected FromXmlParser _createParser(byte[] data, + int offset, + int len, + com.fasterxml.jackson.core.io.IOContext ctxt) + throws IOException+
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected com.fasterxml.jackson.core.JsonGenerator _createGenerator(Writer out, + com.fasterxml.jackson.core.io.IOContext ctxt) + throws IOException+
_createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, + OutputStream out) + throws IOException+
IOException
protected XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, + Writer w) + throws IOException+
IOException
protected final XMLStreamWriter _initializeXmlWriter(XMLStreamWriter sw) + throws IOException+
IOException
protected final XMLStreamReader _initializeXmlReader(XMLStreamReader sr) + throws IOException+
IOException
public static com.fasterxml.jackson.core.format.MatchStrength hasXMLFormat(com.fasterxml.jackson.core.format.InputAccessor acc) + throws IOException+
IOException
protected OutputStream _decorate(com.fasterxml.jackson.core.io.IOContext ioCtxt, + OutputStream out) + throws IOException+
IOException
protected Writer _decorate(com.fasterxml.jackson.core.io.IOContext ioCtxt, + Writer out) + throws IOException+
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactoryBuilder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactoryBuilder.html new file mode 100644 index 000000000..a6d0ba04d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlFactoryBuilder.html @@ -0,0 +1,706 @@ + + + + + + +public class XmlFactoryBuilder +extends com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>+
TSFBuilder
+ implementation for constructing XmlFactory
+ instances.Modifier and Type | +Field and Description | +
---|---|
protected int |
+_formatGeneratorFeatures
+Set of
+ToXmlGenerator.Feature s enabled, as bitmask. |
+
protected int |
+_formatParserFeatures
+Set of
+FromXmlParser.Feature s enabled, as bitmask. |
+
protected String |
+_nameForTextElement
+In cases where a start element has both attributes and non-empty textual
+ value, we have to create a bogus property; we will use this as
+ the property name.
+ |
+
protected XMLInputFactory |
+_xmlInputFactory
+Stax factory for creating underlying input stream readers;
+ `null` for "use default instance with default settings"
+ |
+
protected XMLOutputFactory |
+_xmlOutputFactory
+Stax factory for creating underlying output stream writers;
+ `null` for "use default instance with default settings"
+ |
+
_factoryFeatures, _inputDecorator, _outputDecorator, _streamReadFeatures, _streamWriteFeatures, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS
Modifier | +Constructor and Description | +
---|---|
protected |
+XmlFactoryBuilder() |
+
|
+XmlFactoryBuilder(XmlFactory base) |
+
_legacyDisable, _legacyDisable, _legacyEnable, _legacyEnable, _this, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, streamReadFeatures, streamWriteFeatures
protected int _formatParserFeatures+
FromXmlParser.Feature
s enabled, as bitmask.protected int _formatGeneratorFeatures+
ToXmlGenerator.Feature
s enabled, as bitmask.protected XMLInputFactory _xmlInputFactory+
protected XMLOutputFactory _xmlOutputFactory+
protected String _nameForTextElement+
+ Name used for pseudo-property used for returning XML Text value (which does + not have actual element name to use). Defaults to empty String, but + may be changed for inter-operability reasons: JAXB, for example, uses + "value" as name.
protected XmlFactoryBuilder()+
public XmlFactoryBuilder(XmlFactory base)+
public int formatParserFeaturesMask()+
public int formatGeneratorFeaturesMask()+
public String nameForTextElement()+
public XMLInputFactory xmlInputFactory()+
protected static XMLInputFactory defaultInputFactory()+
public XMLOutputFactory xmlOutputFactory()+
protected static XMLOutputFactory defaultOutputFactory()+
public XmlFactoryBuilder enable(FromXmlParser.Feature f)+
public XmlFactoryBuilder enable(FromXmlParser.Feature first, + FromXmlParser.Feature... other)+
public XmlFactoryBuilder disable(FromXmlParser.Feature f)+
public XmlFactoryBuilder disable(FromXmlParser.Feature first, + FromXmlParser.Feature... other)+
public XmlFactoryBuilder configure(FromXmlParser.Feature f, + boolean state)+
public XmlFactoryBuilder enable(ToXmlGenerator.Feature f)+
public XmlFactoryBuilder enable(ToXmlGenerator.Feature first, + ToXmlGenerator.Feature... other)+
public XmlFactoryBuilder disable(ToXmlGenerator.Feature f)+
public XmlFactoryBuilder disable(ToXmlGenerator.Feature first, + ToXmlGenerator.Feature... other)+
public XmlFactoryBuilder configure(ToXmlGenerator.Feature f, + boolean state)+
public XmlFactoryBuilder nameForTextElement(String name)+
public XmlFactoryBuilder inputFactory(XMLInputFactory xmlIn)+
public XmlFactoryBuilder outputFactory(XMLOutputFactory xmlOut)+
public XmlFactory build()+
build
in class com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.Builder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.Builder.html new file mode 100644 index 000000000..8c9189cd8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.Builder.html @@ -0,0 +1,404 @@ + + + + + + +public static class XmlMapper.Builder +extends com.fasterxml.jackson.databind.cfg.MapperBuilder<XmlMapper,XmlMapper.Builder>+
XmlMapper
instances._mapper
Constructor and Description | +
---|
Builder(XmlMapper m) |
+
Modifier and Type | +Method and Description | +
---|---|
XmlMapper.Builder |
+configure(FromXmlParser.Feature feature,
+ boolean state) |
+
XmlMapper.Builder |
+configure(ToXmlGenerator.Feature feature,
+ boolean state) |
+
XmlMapper.Builder |
+defaultUseWrapper(boolean state) |
+
XmlMapper.Builder |
+disable(FromXmlParser.Feature... features) |
+
XmlMapper.Builder |
+disable(ToXmlGenerator.Feature... features) |
+
XmlMapper.Builder |
+enable(FromXmlParser.Feature... features) |
+
XmlMapper.Builder |
+enable(ToXmlGenerator.Feature... features) |
+
XmlMapper.Builder |
+nameForTextElement(String name) |
+
_this, activateDefaultTyping, activateDefaultTyping, activateDefaultTyping, activateDefaultTypingAsProperty, addHandler, addMixIn, addModule, addModules, addModules, annotationIntrospector, build, clearProblemHandlers, configure, configure, configure, configure, configure, configure, configure, deactivateDefaultTyping, defaultBase64Variant, defaultDateFormat, defaultLeniency, defaultLocale, defaultMergeable, defaultPrettyPrinter, defaultSetterInfo, defaultTimeZone, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, filterProvider, findAndAddModules, findModules, findModules, handlerInstantiator, injectableValues, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, nodeFactory, polymorphicTypeValidator, propertyNamingStrategy, registerSubtypes, registerSubtypes, registerSubtypes, serializationInclusion, serializerFactory, streamFactory, subtypeResolver, typeFactory, visibility, visibility
public XmlMapper.Builder enable(FromXmlParser.Feature... features)+
public XmlMapper.Builder disable(FromXmlParser.Feature... features)+
public XmlMapper.Builder configure(FromXmlParser.Feature feature, + boolean state)+
public XmlMapper.Builder enable(ToXmlGenerator.Feature... features)+
public XmlMapper.Builder disable(ToXmlGenerator.Feature... features)+
public XmlMapper.Builder configure(ToXmlGenerator.Feature feature, + boolean state)+
public XmlMapper.Builder nameForTextElement(String name)+
public XmlMapper.Builder defaultUseWrapper(boolean state)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.html new file mode 100644 index 000000000..e92df11eb --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlMapper.html @@ -0,0 +1,860 @@ + + + + + + +public class XmlMapper
+extends com.fasterxml.jackson.databind.ObjectMapper
+ObjectMapper
that will read and write XML instead of JSON,
+ using XML-backed JsonFactory
+ implementation (XmlFactory
).
++ Mapper itself overrides some aspects of functionality to try to handle + data binding aspects as similar to JAXB as possible. +
+ Note that most of configuration should be done by pre-constructing
+ JacksonXmlModule
explicitly, instead of relying on default settings.
Modifier and Type | +Class and Description | +
---|---|
static class |
+XmlMapper.Builder
+Builder implementation for constructing
+XmlMapper instances. |
+
com.fasterxml.jackson.databind.ObjectMapper.DefaultTypeResolverBuilder, com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping
Modifier and Type | +Field and Description | +
---|---|
protected JacksonXmlModule |
+_xmlModule |
+
protected static JacksonXmlModule |
+DEFAULT_XML_MODULE |
+
protected static DefaultXmlPrettyPrinter |
+DEFAULT_XML_PRETTY_PRINTER |
+
_configOverrides, _deserializationConfig, _deserializationContext, _injectableValues, _jsonFactory, _mixIns, _registeredModuleTypes, _rootDeserializers, _serializationConfig, _serializerFactory, _serializerProvider, _subtypeResolver, _typeFactory, DEFAULT_ANNOTATION_INTROSPECTOR, DEFAULT_BASE
Modifier | +Constructor and Description | +
---|---|
|
+XmlMapper() |
+
|
+XmlMapper(JacksonXmlModule module) |
+
|
+XmlMapper(XmlFactory xmlFactory) |
+
|
+XmlMapper(XmlFactory xmlFactory,
+ JacksonXmlModule module) |
+
|
+XmlMapper(XMLInputFactory inputF) |
+
|
+XmlMapper(XMLInputFactory inputF,
+ XMLOutputFactory outF) |
+
protected |
+XmlMapper(XmlMapper src) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<?> |
+_constructDefaultTypeResolverBuilder(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping applicability,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv) |
+
static XmlMapper.Builder |
+builder() |
+
static XmlMapper.Builder |
+builder(XmlFactory streamFactory) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+configure(FromXmlParser.Feature f,
+ boolean state) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
XmlMapper |
+copy() |
+
com.fasterxml.jackson.databind.ObjectMapper |
+disable(FromXmlParser.Feature f) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+disable(ToXmlGenerator.Feature f) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+enable(FromXmlParser.Feature f) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+enable(ToXmlGenerator.Feature f) |
+
XmlFactory |
+getFactory() |
+
<T> T |
+readValue(XMLStreamReader r,
+ Class<T> valueType)
+Method for reading a single XML value from given XML-specific input
+ source; useful for incremental data-binding, combining traversal using
+ basic Stax
+XMLStreamReader with data-binding by Jackson. |
+
<T> T |
+readValue(XMLStreamReader r,
+ com.fasterxml.jackson.databind.JavaType valueType)
+Method for reading a single XML value from given XML-specific input
+ source; useful for incremental data-binding, combining traversal using
+ basic Stax
+XMLStreamReader with data-binding by Jackson. |
+
<T> T |
+readValue(XMLStreamReader r,
+ com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
+Method for reading a single XML value from given XML-specific input
+ source; useful for incremental data-binding, combining traversal using
+ basic Stax
+XMLStreamReader with data-binding by Jackson. |
+
XmlMapper |
+setDefaultUseWrapper(boolean state)
+Deprecated.
+
+Since 2.10 use
+XmlMapper.Builder.defaultUseWrapper(boolean) instead |
+
protected void |
+setXMLTextElementName(String name)
+Deprecated.
+
+Since 2.10 use
+XmlMapper.Builder.nameForTextElement(String) instead |
+
com.fasterxml.jackson.core.Version |
+version() |
+
void |
+writeValue(XMLStreamWriter w0,
+ Object value)
+Method for serializing given value using specific
+XMLStreamReader :
+ useful when building large XML files by binding individual items, one at
+ a time. |
+
static XmlMapper.Builder |
+xmlBuilder() |
+
_assertNotNull, _checkInvalidCopy, _configAndWriteValue, _convert, _findRootDeserializer, _initForReading, _initForReading, _newReader, _newReader, _newWriter, _newWriter, _newWriter, _readMapAndClose, _readTreeAndClose, _readValue, _serializerProvider, _unwrapAndDeserialize, _verifyNoTrailingTokens, _verifySchemaType, acceptJsonFormatVisitor, acceptJsonFormatVisitor, activateDefaultTyping, activateDefaultTyping, activateDefaultTyping, activateDefaultTypingAsProperty, addHandler, addMixIn, addMixInAnnotations, canDeserialize, canDeserialize, canSerialize, canSerialize, clearProblemHandlers, configOverride, configure, configure, configure, configure, configure, constructType, convertValue, convertValue, convertValue, createArrayNode, createDeserializationContext, createObjectNode, deactivateDefaultTyping, defaultClassIntrospector, disable, disable, disable, disable, disable, disable, disable, disableDefaultTyping, enable, enable, enable, enable, enable, enable, enable, enableDefaultTyping, enableDefaultTyping, enableDefaultTyping, enableDefaultTypingAsProperty, findAndRegisterModules, findMixInClassFor, findModules, findModules, generateJsonSchema, getDateFormat, getDeserializationConfig, getDeserializationContext, getInjectableValues, getJsonFactory, getNodeFactory, getPolymorphicTypeValidator, getPropertyNamingStrategy, getRegisteredModuleIds, getSerializationConfig, getSerializerFactory, getSerializerProvider, getSerializerProviderInstance, getSubtypeResolver, getTypeFactory, getVisibilityChecker, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, missingNode, mixInCount, nullNode, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, readerFor, readerFor, readerFor, readerForUpdating, readerWithView, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValues, readValues, readValues, readValues, registerModule, registerModules, registerModules, registerSubtypes, registerSubtypes, registerSubtypes, setAnnotationIntrospector, setAnnotationIntrospectors, setBase64Variant, setConfig, setConfig, setDateFormat, setDefaultLeniency, setDefaultMergeable, setDefaultPrettyPrinter, setDefaultPropertyInclusion, setDefaultPropertyInclusion, setDefaultSetterInfo, setDefaultTyping, setDefaultVisibility, setFilterProvider, setFilters, setHandlerInstantiator, setInjectableValues, setLocale, setMixInAnnotations, setMixInResolver, setMixIns, setNodeFactory, setPolymorphicTypeValidator, setPropertyInclusion, setPropertyNamingStrategy, setSerializationInclusion, setSerializerFactory, setSerializerProvider, setSubtypeResolver, setTimeZone, setTypeFactory, setVisibility, setVisibility, setVisibilityChecker, tokenStreamFactory, treeAsTokens, treeToValue, updateValue, valueToTree, writer, writer, writer, writer, writer, writer, writer, writer, writer, writer, writerFor, writerFor, writerFor, writerWithDefaultPrettyPrinter, writerWithType, writerWithType, writerWithType, writerWithView, writeTree, writeTree, writeValue, writeValue, writeValue, writeValue, writeValue, writeValueAsBytes, writeValueAsString
protected static final JacksonXmlModule DEFAULT_XML_MODULE+
protected static final DefaultXmlPrettyPrinter DEFAULT_XML_PRETTY_PRINTER+
protected final JacksonXmlModule _xmlModule+
public XmlMapper()+
public XmlMapper(XMLInputFactory inputF, + XMLOutputFactory outF)+
public XmlMapper(XMLInputFactory inputF)+
public XmlMapper(XmlFactory xmlFactory)+
public XmlMapper(JacksonXmlModule module)+
public XmlMapper(XmlFactory xmlFactory, + JacksonXmlModule module)+
protected XmlMapper(XmlMapper src)+
public XmlMapper copy()+
copy
in class com.fasterxml.jackson.databind.ObjectMapper
public static XmlMapper.Builder xmlBuilder()+
public static XmlMapper.Builder builder()+
public static XmlMapper.Builder builder(XmlFactory streamFactory)+
public com.fasterxml.jackson.core.Version version()+
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.databind.ObjectMapper
protected com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<?> _constructDefaultTypeResolverBuilder(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping applicability, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv)+
_constructDefaultTypeResolverBuilder
in class com.fasterxml.jackson.databind.ObjectMapper
@Deprecated +protected void setXMLTextElementName(String name)+
XmlMapper.Builder.nameForTextElement(String)
insteadJacksonXmlModule
to pass configuration
+ information to XmlFactory
, during registration; NOT
+ exposed as public method since configuration should be done
+ via JacksonXmlModule
.@Deprecated +public XmlMapper setDefaultUseWrapper(boolean state)+
XmlMapper.Builder.defaultUseWrapper(boolean)
insteadpublic XmlFactory getFactory()+
getFactory
in class com.fasterxml.jackson.databind.ObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper configure(ToXmlGenerator.Feature f, + boolean state)+
public com.fasterxml.jackson.databind.ObjectMapper configure(FromXmlParser.Feature f, + boolean state)+
public com.fasterxml.jackson.databind.ObjectMapper enable(ToXmlGenerator.Feature f)+
public com.fasterxml.jackson.databind.ObjectMapper enable(FromXmlParser.Feature f)+
public com.fasterxml.jackson.databind.ObjectMapper disable(ToXmlGenerator.Feature f)+
public com.fasterxml.jackson.databind.ObjectMapper disable(FromXmlParser.Feature f)+
public <T> T readValue(XMLStreamReader r, + Class<T> valueType) + throws IOException+
XMLStreamReader
with data-binding by Jackson.IOException
public <T> T readValue(XMLStreamReader r, + com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) + throws IOException+
XMLStreamReader
with data-binding by Jackson.IOException
public <T> T readValue(XMLStreamReader r, + com.fasterxml.jackson.databind.JavaType valueType) + throws IOException+
XMLStreamReader
with data-binding by Jackson.IOException
public void writeValue(XMLStreamWriter w0, + Object value) + throws IOException+
XMLStreamReader
:
+ useful when building large XML files by binding individual items, one at
+ a time.IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlPrettyPrinter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlPrettyPrinter.html new file mode 100644 index 000000000..1333c2076 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlPrettyPrinter.html @@ -0,0 +1,604 @@ + + + + + + +public interface XmlPrettyPrinter
+extends com.fasterxml.jackson.core.PrettyPrinter
+DEFAULT_ROOT_VALUE_SEPARATOR, DEFAULT_SEPARATORS
Modifier and Type | +Method and Description | +
---|---|
void |
+writeEndElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int nrOfEntries)
+Method for forcibly writing an end element, without going
+ through Jackson generator (and thus, without updating currently
+ active element stack)
+ |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ BigDecimal value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ BigInteger value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ boolean value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ byte[] data,
+ int offset,
+ int len) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ char[] buffer,
+ int offset,
+ int len,
+ boolean isCData) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ double value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ float value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ int value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ long value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ String text,
+ boolean isCData) |
+
void |
+writeLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName) |
+
void |
+writePrologLinefeed(org.codehaus.stax2.XMLStreamWriter2 sw)
+Method for trying to write a linefeed to separate entities outside of the
+ root element (that is, in prolog or epilog), most often called to separate
+ XML declaration from the root element.
+ |
+
void |
+writeStartElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName)
+Method for forcibly writing a start element, without going
+ through Jackson generator (and thus, without updating currently
+ active element stack)
+ |
+
beforeArrayValues, beforeObjectEntries, writeArrayValueSeparator, writeEndArray, writeEndObject, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
void writeStartElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName) + throws XMLStreamException+
XMLStreamException
void writeEndElement(org.codehaus.stax2.XMLStreamWriter2 sw, + int nrOfEntries) + throws XMLStreamException+
XMLStreamException
void writePrologLinefeed(org.codehaus.stax2.XMLStreamWriter2 sw) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + String text, + boolean isCData) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + char[] buffer, + int offset, + int len, + boolean isCData) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + boolean value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + int value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + long value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + double value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + float value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + BigInteger value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + BigDecimal value) + throws XMLStreamException+
XMLStreamException
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + byte[] data, + int offset, + int len) + throws XMLStreamException+
XMLStreamException
void writeLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName) + throws XMLStreamException+
XMLStreamException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlClassNameIdResolver.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlClassNameIdResolver.html new file mode 100644 index 000000000..b82f6f4ac --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlClassNameIdResolver.html @@ -0,0 +1,361 @@ + + + + + + +protected static class XmlTypeResolverBuilder.XmlClassNameIdResolver
+extends com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
+_subTypeValidator
_baseType, _typeFactory
Constructor and Description | +
---|
XmlClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType,
+ com.fasterxml.jackson.databind.type.TypeFactory typeFactory,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv) |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+idFromValue(Object value) |
+
com.fasterxml.jackson.databind.JavaType |
+typeFromId(com.fasterxml.jackson.databind.DatabindContext context,
+ String id) |
+
_idFrom, _typeFromId, construct, getDescForKnownTypeIds, getMechanism, idFromValueAndType, registerSubtype
idFromBaseType, init
public XmlClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType, + com.fasterxml.jackson.databind.type.TypeFactory typeFactory, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv)+
public String idFromValue(Object value)+
idFromValue
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
idFromValue
in class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, + String id) + throws IOException+
typeFromId
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
typeFromId
in class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html new file mode 100644 index 000000000..21be880c5 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html @@ -0,0 +1,380 @@ + + + + + + +protected static class XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver
+extends com.fasterxml.jackson.databind.jsontype.impl.MinimalClassNameIdResolver
+_basePackageName, _basePackagePrefix
_subTypeValidator
_baseType, _typeFactory
Constructor and Description | +
---|
XmlMinimalClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType,
+ com.fasterxml.jackson.databind.type.TypeFactory typeFactory,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv) |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+idFromValue(Object value) |
+
com.fasterxml.jackson.databind.JavaType |
+typeFromId(com.fasterxml.jackson.databind.DatabindContext context,
+ String id) |
+
_typeFromId, construct, getMechanism
_idFrom, getDescForKnownTypeIds, idFromValueAndType, registerSubtype
idFromBaseType, init
public XmlMinimalClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType, + com.fasterxml.jackson.databind.type.TypeFactory typeFactory, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator ptv)+
public String idFromValue(Object value)+
idFromValue
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
idFromValue
in class com.fasterxml.jackson.databind.jsontype.impl.MinimalClassNameIdResolver
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, + String id) + throws IOException+
typeFromId
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
typeFromId
in class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.html new file mode 100644 index 000000000..fd5ab2df2 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.html @@ -0,0 +1,420 @@ + + + + + + +public class XmlTypeResolverBuilder
+extends com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
+StdTypeResolverBuilder
; needed so that
+ type id property name can be modified as necessary to make it legal
+ XML element or attribute name.Modifier and Type | +Class and Description | +
---|---|
protected static class |
+XmlTypeResolverBuilder.XmlClassNameIdResolver |
+
protected static class |
+XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver |
+
_customIdResolver, _defaultImpl, _idType, _includeAs, _typeIdVisible, _typeProperty
Constructor and Description | +
---|
XmlTypeResolverBuilder() |
+
Modifier and Type | +Method and Description | +
---|---|
protected static String |
+decodeXmlClassName(String className)
+Helper method for decoding "XML safe" Java class name back into
+ actual class name
+ |
+
protected static String |
+encodeXmlClassName(String className)
+Helper method for encoding regular Java class name in form that
+ can be used as XML element name.
+ |
+
protected com.fasterxml.jackson.databind.jsontype.TypeIdResolver |
+idResolver(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
+ com.fasterxml.jackson.databind.JavaType baseType,
+ com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator,
+ Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes,
+ boolean forSer,
+ boolean forDeser) |
+
com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
+init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType,
+ com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes) |
+
com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
+typeProperty(String typeIdPropName) |
+
buildTypeDeserializer, buildTypeSerializer, defaultImpl, defineDefaultImpl, getDefaultImpl, getTypeProperty, inclusion, isTypeIdVisible, noTypeInfoBuilder, reportInvalidBaseType, subTypeValidator, typeIdVisibility, verifyBaseTypeValidity
public XmlTypeResolverBuilder()+
public com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType, + com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes)+
init
in interface com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder>
init
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
public com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder typeProperty(String typeIdPropName)+
typeProperty
in interface com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder>
typeProperty
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
protected com.fasterxml.jackson.databind.jsontype.TypeIdResolver idResolver(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, + com.fasterxml.jackson.databind.JavaType baseType, + com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator, + Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes, + boolean forSer, + boolean forDeser)+
idResolver
in class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
protected static String encodeXmlClassName(String className)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlCData.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlCData.html new file mode 100644 index 000000000..9b4bd1ba0 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlCData.html @@ -0,0 +1,226 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlElementWrapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlElementWrapper.html new file mode 100644 index 000000000..e0186561f --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlElementWrapper.html @@ -0,0 +1,321 @@ + + + + + + +@Target(value={FIELD,METHOD}) + @Retention(value=RUNTIME) +public @interface JacksonXmlElementWrapper+
javax.xml.bind.annotation.XmlElementWrapper
,
+ to indicate wrapper element to use (if any) for Collection types (arrays,
+ java.util.Collection
). If defined, a separate container (wrapper) element
+ is used; if not, entries are written without wrapping.Modifier and Type | +Fields and Description | +
---|---|
static String |
+USE_PROPERTY_NAME
+Marker value (empty String) that denotes that the underlying property
+ name should also be used as the wrapper name, effectively "doubling"
+ start and end elements.
+ |
+
Modifier and Type | +Optional Element and Description | +
---|---|
String |
+localName |
+
String |
+namespace |
+
boolean |
+useWrapping
+Optional property that can be used to explicitly disable wrapping,
+ usually via mix-ins, or when using
+AnnotationIntrospector
+ pairs. |
+
public static final String USE_PROPERTY_NAME+
public abstract String namespace+
public abstract boolean useWrapping+
AnnotationIntrospector
+ pairs.Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlProperty.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlProperty.html new file mode 100644 index 000000000..37c15d186 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlProperty.html @@ -0,0 +1,263 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlRootElement.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlRootElement.html new file mode 100644 index 000000000..0214c1210 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlRootElement.html @@ -0,0 +1,242 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlText.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlText.html new file mode 100644 index 000000000..efa55d4fb --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/JacksonXmlText.html @@ -0,0 +1,232 @@ + + + + + + +@Target(value={FIELD,METHOD}) + @Retention(value=RUNTIME) +public @interface JacksonXmlText+
XmlValue
+ in that it can be used on one (and only one!) property of a POJO.
+ It will result in value of the property be serialized without element wrapper,
+ as long as there are no element-wrapped other properties (attribute-valued
+ properties are acceptable).
+ It is also similar to core Jackson JsonValue
annotation; but
+ has to be separate as JsonValue
does not allow any other
+ properties.Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlCData.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlCData.html new file mode 100644 index 000000000..c8e7786f8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlCData.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlElementWrapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlElementWrapper.html new file mode 100644 index 000000000..4bf51fbc1 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlElementWrapper.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlProperty.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlProperty.html new file mode 100644 index 000000000..3b920bb25 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlProperty.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlRootElement.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlRootElement.html new file mode 100644 index 000000000..aaec94991 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlRootElement.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlText.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlText.html new file mode 100644 index 000000000..47d6bbc54 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/class-use/JacksonXmlText.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-frame.html new file mode 100644 index 000000000..c55b67bd5 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +See: Description
+Annotation Type | +Description | +
---|---|
JacksonXmlCData | +
+ Adding this annotation will result in value of the property to be serialized
+ within a CData tag.
+ |
+
JacksonXmlElementWrapper | +
+ Annotation that is similar to JAXB
+javax.xml.bind.annotation.XmlElementWrapper ,
+ to indicate wrapper element to use (if any) for Collection types (arrays,
+ java.util.Collection ). |
+
JacksonXmlProperty | +
+ Annotation that can be used to provide XML-specific configuration
+ for properties, above and beyond what
+
+JsonProperty contains. |
+
JacksonXmlRootElement | +
+ Annotation that can be used to define name of root element used
+ for the root-level object when serialized, which normally uses
+ name of the type (class).
+ |
+
JacksonXmlText | +
+ Interface that is loosely similar to
+XmlValue
+ in that it can be used on one (and only one!) property of a POJO. |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-tree.html new file mode 100644 index 000000000..4abbf191b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-use.html new file mode 100644 index 000000000..2297e73e8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/annotation/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/DefaultingXmlTypeResolverBuilder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/DefaultingXmlTypeResolverBuilder.html new file mode 100644 index 000000000..ed872d994 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/DefaultingXmlTypeResolverBuilder.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlAnnotationIntrospector.html new file mode 100644 index 000000000..419b9073b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlAnnotationIntrospector.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlModule.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlModule.html new file mode 100644 index 000000000..8d12ddc24 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/JacksonXmlModule.html @@ -0,0 +1,189 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Modifier and Type | +Field and Description | +
---|---|
protected JacksonXmlModule |
+XmlMapper._xmlModule |
+
protected static JacksonXmlModule |
+XmlMapper.DEFAULT_XML_MODULE |
+
Constructor and Description | +
---|
XmlMapper(JacksonXmlModule module) |
+
XmlMapper(XmlFactory xmlFactory,
+ JacksonXmlModule module) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/PackageVersion.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/PackageVersion.html new file mode 100644 index 000000000..923c93590 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/PackageVersion.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.JaxbWrapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.JaxbWrapper.html new file mode 100644 index 000000000..c3089be19 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.JaxbWrapper.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.Pair.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.Pair.html new file mode 100644 index 000000000..666dc9a65 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.Pair.html @@ -0,0 +1,171 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static XmlAnnotationIntrospector.Pair |
+XmlAnnotationIntrospector.Pair.instance(com.fasterxml.jackson.databind.AnnotationIntrospector a1,
+ com.fasterxml.jackson.databind.AnnotationIntrospector a2) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.html new file mode 100644 index 000000000..fe9791b3d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlAnnotationIntrospector.html @@ -0,0 +1,232 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.jaxb | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+JacksonXmlAnnotationIntrospector
+Extension of
+JacksonAnnotationIntrospector that is needed to support
+ additional xml-specific annotation that Jackson provides. |
+
static class |
+XmlAnnotationIntrospector.JaxbWrapper
+Wrapper we need to adapt
+JaxbAnnotationIntrospector as
+ XmlAnnotationIntrospector : something we can not (alas!)
+ do in JAXB module because of dependency direction (JAXB module
+ has no knowledge of this module). |
+
static class |
+XmlAnnotationIntrospector.Pair
+Extension of
+AnnotationIntrospector.Pair that can
+ also dispatch 'XmlAnnotationIntrospector' methods. |
+
Modifier and Type | +Field and Description | +
---|---|
protected XmlAnnotationIntrospector |
+XmlAnnotationIntrospector.Pair._xmlPrimary |
+
protected XmlAnnotationIntrospector |
+XmlAnnotationIntrospector.Pair._xmlSecondary |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+XmlJaxbAnnotationIntrospector
+Alternative
+AnnotationIntrospector
+ implementation that
+ builds on JaxbAnnotationIntrospector . |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactory.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactory.html new file mode 100644 index 000000000..d68cf464a --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactory.html @@ -0,0 +1,255 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
XmlFactory |
+XmlFactoryBuilder.build() |
+
XmlFactory |
+XmlFactory.configure(FromXmlParser.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML parser feature.
+ |
+
XmlFactory |
+XmlFactory.configure(ToXmlGenerator.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML generator feature.
+ |
+
XmlFactory |
+XmlFactory.copy()
+Note: compared to base implementation by
+JsonFactory ,
+ here the copy will actually share underlying XML input and
+ output factories, as there is no way to make copies of those. |
+
XmlFactory |
+XmlFactory.disable(FromXmlParser.Feature f)
+Method for disabling specified XML parser feature.
+ |
+
XmlFactory |
+XmlFactory.disable(ToXmlGenerator.Feature f)
+Method for disabling specified XML generator feature.
+ |
+
XmlFactory |
+XmlFactory.enable(FromXmlParser.Feature f)
+Method for enabling specified XML parser feature.
+ |
+
XmlFactory |
+XmlFactory.enable(ToXmlGenerator.Feature f)
+Method for enabling specified XML generator feature.
+ |
+
XmlFactory |
+XmlMapper.getFactory() |
+
Modifier and Type | +Method and Description | +
---|---|
static XmlMapper.Builder |
+XmlMapper.builder(XmlFactory streamFactory) |
+
Constructor and Description | +
---|
XmlFactory(XmlFactory src,
+ com.fasterxml.jackson.core.ObjectCodec oc) |
+
XmlFactoryBuilder(XmlFactory base) |
+
XmlMapper(XmlFactory xmlFactory) |
+
XmlMapper(XmlFactory xmlFactory,
+ JacksonXmlModule module) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactoryBuilder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactoryBuilder.html new file mode 100644 index 000000000..5cb685e45 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlFactoryBuilder.html @@ -0,0 +1,245 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Constructor and Description | +
---|
XmlFactory(XmlFactoryBuilder b)
+Constructors used by
+JsonFactoryBuilder for instantiation. |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.Builder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.Builder.html new file mode 100644 index 000000000..b01088f5e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.Builder.html @@ -0,0 +1,212 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static XmlMapper.Builder |
+XmlMapper.builder() |
+
static XmlMapper.Builder |
+XmlMapper.builder(XmlFactory streamFactory) |
+
XmlMapper.Builder |
+XmlMapper.Builder.configure(FromXmlParser.Feature feature,
+ boolean state) |
+
XmlMapper.Builder |
+XmlMapper.Builder.configure(ToXmlGenerator.Feature feature,
+ boolean state) |
+
XmlMapper.Builder |
+XmlMapper.Builder.defaultUseWrapper(boolean state) |
+
XmlMapper.Builder |
+XmlMapper.Builder.disable(FromXmlParser.Feature... features) |
+
XmlMapper.Builder |
+XmlMapper.Builder.disable(ToXmlGenerator.Feature... features) |
+
XmlMapper.Builder |
+XmlMapper.Builder.enable(FromXmlParser.Feature... features) |
+
XmlMapper.Builder |
+XmlMapper.Builder.enable(ToXmlGenerator.Feature... features) |
+
XmlMapper.Builder |
+XmlMapper.Builder.nameForTextElement(String name) |
+
static XmlMapper.Builder |
+XmlMapper.xmlBuilder() |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.html new file mode 100644 index 000000000..6bc19e869 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlMapper.html @@ -0,0 +1,192 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
XmlMapper |
+XmlMapper.copy() |
+
XmlMapper |
+XmlMapper.setDefaultUseWrapper(boolean state)
+Deprecated.
+
+Since 2.10 use
+XmlMapper.Builder.defaultUseWrapper(boolean) instead |
+
Constructor and Description | +
---|
Builder(XmlMapper m) |
+
XmlMapper(XmlMapper src) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlPrettyPrinter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlPrettyPrinter.html new file mode 100644 index 000000000..1d48ab22d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlPrettyPrinter.html @@ -0,0 +1,193 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.ser | ++ |
com.fasterxml.jackson.dataformat.xml.util | ++ |
Modifier and Type | +Field and Description | +
---|---|
protected XmlPrettyPrinter |
+ToXmlGenerator._xmlPrettyPrinter
+We may need to use XML-specific indentation as well
+ |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+DefaultXmlPrettyPrinter
+Indentation to use with XML is different from JSON, because JSON
+ requires use of separator characters and XML just basic whitespace.
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlClassNameIdResolver.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlClassNameIdResolver.html new file mode 100644 index 000000000..6eafc72b8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlClassNameIdResolver.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html new file mode 100644 index 000000000..231808b01 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.html new file mode 100644 index 000000000..1f8dcf86e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/class-use/XmlTypeResolverBuilder.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.Feature.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.Feature.html new file mode 100644 index 000000000..b87129ae9 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.Feature.html @@ -0,0 +1,421 @@ + + + + + + +public static enum FromXmlParser.Feature +extends Enum<FromXmlParser.Feature> +implements com.fasterxml.jackson.core.FormatFeature+
Enum Constant and Description | +
---|
EMPTY_ELEMENT_AS_NULL
+Feature that indicates whether XML Empty elements (ones where there are
+ no separate start and end tages, but just one tag that ends with "/>")
+ are exposed as
+JsonToken.VALUE_NULL ) or not. |
+
Modifier and Type | +Method and Description | +
---|---|
static int |
+collectDefaults()
+Method that calculates bit set (flags) of all features that
+ are enabled by default.
+ |
+
boolean |
+enabledByDefault() |
+
boolean |
+enabledIn(int flags) |
+
int |
+getMask() |
+
static FromXmlParser.Feature |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static FromXmlParser.Feature[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final FromXmlParser.Feature EMPTY_ELEMENT_AS_NULL+
JsonToken.VALUE_NULL
) or not. If they are not
+ returned as `null` tokens, they will be returned as JsonToken.VALUE_STRING
+ tokens with textual value of "" (empty String).
++ Default setting is `true` for backwards compatibility.
public static FromXmlParser.Feature[] values()+
+for (FromXmlParser.Feature c : FromXmlParser.Feature.values()) + System.out.println(c); +
public static FromXmlParser.Feature valueOf(String name)+
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static int collectDefaults()+
public boolean enabledByDefault()+
enabledByDefault
in interface com.fasterxml.jackson.core.FormatFeature
public int getMask()+
getMask
in interface com.fasterxml.jackson.core.FormatFeature
public boolean enabledIn(int flags)+
enabledIn
in interface com.fasterxml.jackson.core.FormatFeature
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.html new file mode 100644 index 000000000..5f49e79a2 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/FromXmlParser.html @@ -0,0 +1,1527 @@ + + + + + + +public class FromXmlParser
+extends com.fasterxml.jackson.core.base.ParserMinimalBase
+JsonParser
implementation that exposes XML structure as
+ set of JSON events that can be used for data binding.Modifier and Type | +Class and Description | +
---|---|
static class |
+FromXmlParser.Feature
+Enumeration that defines all togglable features for XML parsers.
+ |
+
com.fasterxml.jackson.core.JsonParser.NumberType
Modifier and Type | +Field and Description | +
---|---|
protected byte[] |
+_binaryValue
+We will hold on to decoded binary data, for duration of
+ current event, so that multiple calls to
+
+getBinaryValue(com.fasterxml.jackson.core.Base64Variant) will not need to decode data more
+ than once. |
+
protected com.fasterxml.jackson.core.util.ByteArrayBuilder |
+_byteArrayBuilder
+ByteArrayBuilder is needed if 'getBinaryValue' is called.
+ |
+
protected String |
+_cfgNameForTextElement
+In cases where a start element has both attributes and non-empty textual
+ value, we have to create a bogus property; we will use this as
+ the property name.
+ |
+
protected boolean |
+_closed
+Flag that indicates whether parser is closed or not.
+ |
+
protected String |
+_currText |
+
protected int |
+_formatFeatures
+Bit flag composed of bits that indicate which
+
+FromXmlParser.Feature s
+ are enabled. |
+
protected com.fasterxml.jackson.core.io.IOContext |
+_ioContext |
+
protected boolean |
+_mayBeLeaf
+We need special handling to keep track of whether a value
+ may be exposed as simple leaf value.
+ |
+
protected Set<String> |
+_namesToWrap |
+
protected com.fasterxml.jackson.core.JsonToken |
+_nextToken |
+
protected com.fasterxml.jackson.core.ObjectCodec |
+_objectCodec |
+
protected XmlReadContext |
+_parsingContext
+Information about parser context, context in which
+ the next token is to be parsed (root, array, object).
+ |
+
protected XmlTokenStream |
+_xmlTokens |
+
static String |
+DEFAULT_UNNAMED_TEXT_PROPERTY
+The default name placeholder for XML text segments is empty
+ String ("").
+ |
+
_currToken, _lastClearedToken, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_TAB, MAX_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN
_features, _requestPayload
Constructor and Description | +
---|
FromXmlParser(com.fasterxml.jackson.core.io.IOContext ctxt,
+ int genericParserFeatures,
+ int xmlFeatures,
+ com.fasterxml.jackson.core.ObjectCodec codec,
+ XMLStreamReader xmlReader) |
+
Modifier and Type | +Method and Description | +
---|---|
protected byte[] |
+_decodeBase64(com.fasterxml.jackson.core.Base64Variant b64variant) |
+
protected com.fasterxml.jackson.core.util.ByteArrayBuilder |
+_getByteArrayBuilder() |
+
protected void |
+_handleEOF()
+Method called when an EOF is encountered between tokens.
+ |
+
protected boolean |
+_isEmpty(String str) |
+
protected void |
+_releaseBuffers()
+Method called to release internal buffers owned by the base
+ parser.
+ |
+
void |
+addVirtualWrapping(Set<String> namesToWrap)
+Method that may be called to indicate that specified names
+ (only local parts retained currently: this may be changed in
+ future) should be considered "auto-wrapping", meaning that
+ they will be doubled to contain two opening elements, two
+ matching closing elements.
+ |
+
void |
+close() |
+
FromXmlParser |
+configure(FromXmlParser.Feature f,
+ boolean state) |
+
FromXmlParser |
+disable(FromXmlParser.Feature f) |
+
FromXmlParser |
+enable(FromXmlParser.Feature f) |
+
BigInteger |
+getBigIntegerValue() |
+
byte[] |
+getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant) |
+
com.fasterxml.jackson.core.ObjectCodec |
+getCodec() |
+
com.fasterxml.jackson.core.JsonLocation |
+getCurrentLocation()
+Method that returns location of the last processed character;
+ usually for error reporting purposes
+ |
+
String |
+getCurrentName()
+Method that can be called to get the name associated with
+ the current event.
+ |
+
BigDecimal |
+getDecimalValue() |
+
double |
+getDoubleValue() |
+
Object |
+getEmbeddedObject() |
+
float |
+getFloatValue() |
+
int |
+getFormatFeatures() |
+
int |
+getIntValue() |
+
long |
+getLongValue() |
+
com.fasterxml.jackson.core.JsonParser.NumberType |
+getNumberType() |
+
Number |
+getNumberValue() |
+
XmlReadContext |
+getParsingContext() |
+
XMLStreamReader |
+getStaxReader()
+Method that allows application direct access to underlying
+ Stax
+XMLStreamWriter . |
+
String |
+getText() |
+
int |
+getText(Writer writer) |
+
char[] |
+getTextCharacters() |
+
int |
+getTextLength() |
+
int |
+getTextOffset() |
+
com.fasterxml.jackson.core.JsonLocation |
+getTokenLocation()
+Method that return the starting location of the current
+ token; that is, position of the first character from input
+ that starts the current token.
+ |
+
String |
+getValueAsString() |
+
String |
+getValueAsString(String defValue) |
+
boolean |
+hasTextCharacters()
+XML input actually would offer access to character arrays; but since
+ we must coalesce things it cannot really be exposed.
+ |
+
boolean |
+isClosed() |
+
boolean |
+isEnabled(FromXmlParser.Feature f) |
+
boolean |
+isExpectedStartArrayToken()
+Since xml representation can not really distinguish between array
+ and object starts (both are represented with elements), this method
+ is overridden and taken to mean that expecation is that the current
+ start element is to mean 'start array', instead of default of
+ 'start object'.
+ |
+
String |
+nextTextValue()
+Method overridden to support more reliable deserialization of
+ String collections.
+ |
+
com.fasterxml.jackson.core.JsonToken |
+nextToken() |
+
void |
+overrideCurrentName(String name) |
+
com.fasterxml.jackson.core.JsonParser |
+overrideFormatFeatures(int values,
+ int mask) |
+
boolean |
+requiresCustomCodec()
+XML format does require support from custom
+ObjectCodec
+ (that is, XmlMapper ), so need to return true here. |
+
void |
+setCodec(com.fasterxml.jackson.core.ObjectCodec c) |
+
void |
+setXMLTextElementName(String name) |
+
com.fasterxml.jackson.core.Version |
+version() |
+
_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, hasCurrentToken, hasToken, hasTokenId, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren
_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canReadObjectId, canReadTypeId, canUseSchema, configure, currentName, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getInputSource, getNonBlockingInputFeeder, getObjectId, getSchema, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, isNaN, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchema
public static final String DEFAULT_UNNAMED_TEXT_PROPERTY+
protected String _cfgNameForTextElement+
+ Name used for pseudo-property used for returning XML Text value (which does + not have actual element name to use). Defaults to empty String, but + may be changed for interoperability reasons: JAXB, for example, uses + "value" as name.
protected int _formatFeatures+
FromXmlParser.Feature
s
+ are enabled.protected com.fasterxml.jackson.core.ObjectCodec _objectCodec+
protected boolean _closed+
close()
) or when end-of-input is reached.protected final com.fasterxml.jackson.core.io.IOContext _ioContext+
protected XmlReadContext _parsingContext+
protected final XmlTokenStream _xmlTokens+
protected boolean _mayBeLeaf+
protected com.fasterxml.jackson.core.JsonToken _nextToken+
protected String _currText+
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder+
protected byte[] _binaryValue+
getBinaryValue(com.fasterxml.jackson.core.Base64Variant)
will not need to decode data more
+ than once.public FromXmlParser(com.fasterxml.jackson.core.io.IOContext ctxt, + int genericParserFeatures, + int xmlFeatures, + com.fasterxml.jackson.core.ObjectCodec codec, + XMLStreamReader xmlReader) + throws IOException+
IOException
public com.fasterxml.jackson.core.Version version()+
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.ObjectCodec getCodec()+
getCodec
in class com.fasterxml.jackson.core.JsonParser
public void setCodec(com.fasterxml.jackson.core.ObjectCodec c)+
setCodec
in class com.fasterxml.jackson.core.JsonParser
public void setXMLTextElementName(String name)+
public boolean requiresCustomCodec()+
ObjectCodec
+ (that is, XmlMapper
), so need to return true here.requiresCustomCodec
in class com.fasterxml.jackson.core.JsonParser
public FromXmlParser enable(FromXmlParser.Feature f)+
public FromXmlParser disable(FromXmlParser.Feature f)+
public final boolean isEnabled(FromXmlParser.Feature f)+
public FromXmlParser configure(FromXmlParser.Feature f, + boolean state)+
public int getFormatFeatures()+
getFormatFeatures
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values, + int mask)+
overrideFormatFeatures
in class com.fasterxml.jackson.core.JsonParser
public XMLStreamReader getStaxReader()+
XMLStreamWriter
. Note that use of writer is
+ discouraged, and may interfere with processing of this writer;
+ however, occasionally it may be necessary.
+
+ Note: writer instance will always be of type
+ XMLStreamWriter2
(including
+ Typed Access API) so upcasts are safe.
public void addVirtualWrapping(Set<String> namesToWrap)+
+ NOTE: this method is considered part of internal implementation + interface, and it is NOT guaranteed to remain unchanged + between minor versions (it is however expected not to change in + patch versions). So if you have to use it, be prepared for + possible additional work.
public String getCurrentName() + throws IOException+
getCurrentName
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public void overrideCurrentName(String name)+
overrideCurrentName
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public void close() + throws IOException+
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public boolean isClosed()+
isClosed
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public XmlReadContext getParsingContext()+
getParsingContext
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public com.fasterxml.jackson.core.JsonLocation getTokenLocation()+
getTokenLocation
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()+
getCurrentLocation
in class com.fasterxml.jackson.core.JsonParser
public boolean isExpectedStartArrayToken()+
isExpectedStartArrayToken
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public com.fasterxml.jackson.core.JsonToken nextToken() + throws IOException+
nextToken
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public String nextTextValue() + throws IOException+
nextTextValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public String getText() + throws IOException+
getText
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public final String getValueAsString() + throws IOException+
getValueAsString
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public String getValueAsString(String defValue) + throws IOException+
getValueAsString
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public char[] getTextCharacters() + throws IOException+
getTextCharacters
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public int getTextLength() + throws IOException+
getTextLength
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public int getTextOffset() + throws IOException+
getTextOffset
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public boolean hasTextCharacters()+
hasTextCharacters
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public int getText(Writer writer) + throws IOException+
getText
in class com.fasterxml.jackson.core.JsonParser
IOException
public Object getEmbeddedObject() + throws IOException+
getEmbeddedObject
in class com.fasterxml.jackson.core.JsonParser
IOException
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant) + throws IOException+
getBinaryValue
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
protected byte[] _decodeBase64(com.fasterxml.jackson.core.Base64Variant b64variant) + throws IOException+
IOException
public BigInteger getBigIntegerValue() + throws IOException+
getBigIntegerValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public BigDecimal getDecimalValue() + throws IOException+
getDecimalValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public double getDoubleValue() + throws IOException+
getDoubleValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public float getFloatValue() + throws IOException+
getFloatValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getIntValue() + throws IOException+
getIntValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public long getLongValue() + throws IOException+
getLongValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() + throws IOException+
getNumberType
in class com.fasterxml.jackson.core.JsonParser
IOException
public Number getNumberValue() + throws IOException+
getNumberValue
in class com.fasterxml.jackson.core.JsonParser
IOException
protected void _handleEOF() + throws com.fasterxml.jackson.core.JsonParseException+
_handleEOF
in class com.fasterxml.jackson.core.base.ParserMinimalBase
com.fasterxml.jackson.core.JsonParseException
protected void _releaseBuffers() + throws IOException+
IOException
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder()+
protected boolean _isEmpty(String str)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/WrapperHandlingDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/WrapperHandlingDeserializer.html new file mode 100644 index 000000000..7cd04cf7e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/WrapperHandlingDeserializer.html @@ -0,0 +1,547 @@ + + + + + + +public class WrapperHandlingDeserializer
+extends com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
+com.fasterxml.jackson.databind.JsonDeserializer.None
Modifier and Type | +Field and Description | +
---|---|
protected Set<String> |
+_namesToWrap
+(Simple) Names of properties, for which virtual wrapping is needed
+ to compensate: these are so-called 'unwrapped' XML lists where property
+ name is used for elements, and not as List markers.
+ |
+
protected com.fasterxml.jackson.databind.JavaType |
+_type |
+
_delegatee
_valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
Constructor and Description | +
---|
WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate) |
+
WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate,
+ Set<String> namesToWrap) |
+
Modifier and Type | +Method and Description | +
---|---|
protected void |
+_configureParser(com.fasterxml.jackson.core.JsonParser p) |
+
protected com.fasterxml.jackson.databind.deser.BeanDeserializerBase |
+_verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser) |
+
com.fasterxml.jackson.databind.JsonDeserializer<?> |
+createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ com.fasterxml.jackson.databind.BeanProperty property) |
+
Object |
+deserialize(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt) |
+
Object |
+deserialize(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ Object intoValue) |
+
Object |
+deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
+
protected com.fasterxml.jackson.databind.JsonDeserializer<?> |
+newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0) |
+
findBackReference, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserializeWithType, getEmptyAccessPattern, getEmptyValue, getNullValue, unwrappingDeserializer
protected final Set<String> _namesToWrap+
protected final com.fasterxml.jackson.databind.JavaType _type+
public WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate)+
protected com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0)+
newDelegatingInstance
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, + com.fasterxml.jackson.databind.BeanProperty property) + throws com.fasterxml.jackson.databind.JsonMappingException+
createContextual
in interface com.fasterxml.jackson.databind.deser.ContextualDeserializer
createContextual
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
com.fasterxml.jackson.databind.JsonMappingException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt) + throws IOException+
deserialize
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt, + Object intoValue) + throws IOException+
deserialize
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt, + com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) + throws IOException+
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
protected final void _configureParser(com.fasterxml.jackson.core.JsonParser p) + throws IOException+
IOException
protected com.fasterxml.jackson.databind.deser.BeanDeserializerBase _verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlBeanDeserializerModifier.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlBeanDeserializerModifier.html new file mode 100644 index 000000000..7c8570c5a --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlBeanDeserializerModifier.html @@ -0,0 +1,364 @@ + + + + + + +public class XmlBeanDeserializerModifier +extends com.fasterxml.jackson.databind.deser.BeanDeserializerModifier +implements Serializable+
Modifier and Type | +Field and Description | +
---|---|
protected String |
+_cfgNameForTextValue
+Virtual name used for text segments.
+ |
+
Constructor and Description | +
---|
XmlBeanDeserializerModifier(String nameForTextValue) |
+
Modifier and Type | +Method and Description | +
---|---|
com.fasterxml.jackson.databind.JsonDeserializer<?> |
+modifyDeserializer(com.fasterxml.jackson.databind.DeserializationConfig config,
+ com.fasterxml.jackson.databind.BeanDescription beanDesc,
+ com.fasterxml.jackson.databind.JsonDeserializer<?> deser0) |
+
List<com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition> |
+updateProperties(com.fasterxml.jackson.databind.DeserializationConfig config,
+ com.fasterxml.jackson.databind.BeanDescription beanDesc,
+ List<com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition> propDefs) |
+
modifyArrayDeserializer, modifyCollectionDeserializer, modifyCollectionLikeDeserializer, modifyEnumDeserializer, modifyKeyDeserializer, modifyMapDeserializer, modifyMapLikeDeserializer, modifyReferenceDeserializer, updateBuilder
protected String _cfgNameForTextValue+
public XmlBeanDeserializerModifier(String nameForTextValue)+
public List<com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition> updateProperties(com.fasterxml.jackson.databind.DeserializationConfig config, + com.fasterxml.jackson.databind.BeanDescription beanDesc, + List<com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition> propDefs)+
updateProperties
in class com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
public com.fasterxml.jackson.databind.JsonDeserializer<?> modifyDeserializer(com.fasterxml.jackson.databind.DeserializationConfig config, + com.fasterxml.jackson.databind.BeanDescription beanDesc, + com.fasterxml.jackson.databind.JsonDeserializer<?> deser0)+
modifyDeserializer
in class com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlReadContext.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlReadContext.html new file mode 100644 index 000000000..c175f0efb --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlReadContext.html @@ -0,0 +1,694 @@ + + + + + + +public final class XmlReadContext
+extends com.fasterxml.jackson.core.JsonStreamContext
+JsonStreamContext
, which implements
+ core methods needed, and adds small amount of additional
+ state data we need.
+
+ Almost same as standard JsonReaderContext
, but
+ custom version needed to be able to keep track of names
+ of properties that need wrapping; this is needed to
+ support wrapped/unwrapped Collection/array values.
Modifier and Type | +Field and Description | +
---|---|
protected XmlReadContext |
+_child |
+
protected int |
+_columnNr |
+
protected String |
+_currentName |
+
protected Object |
+_currentValue |
+
protected int |
+_lineNr |
+
protected Set<String> |
+_namesToWrap |
+
protected XmlReadContext |
+_parent |
+
protected String |
+_wrappedName
+Name of property that requires wrapping
+ |
+
_index, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
Constructor and Description | +
---|
XmlReadContext(XmlReadContext parent,
+ int type,
+ int lineNr,
+ int colNr) |
+
Modifier and Type | +Method and Description | +
---|---|
protected void |
+convertToArray() |
+
XmlReadContext |
+createChildArrayContext(int lineNr,
+ int colNr) |
+
XmlReadContext |
+createChildObjectContext(int lineNr,
+ int colNr) |
+
static XmlReadContext |
+createRootContext() |
+
static XmlReadContext |
+createRootContext(int lineNr,
+ int colNr) |
+
boolean |
+expectComma() |
+
String |
+getCurrentName() |
+
Object |
+getCurrentValue() |
+
Set<String> |
+getNamesToWrap() |
+
XmlReadContext |
+getParent() |
+
com.fasterxml.jackson.core.JsonLocation |
+getStartLocation(Object srcRef) |
+
boolean |
+hasCurrentName() |
+
protected void |
+reset(int type,
+ int lineNr,
+ int colNr) |
+
void |
+setCurrentName(String name) |
+
void |
+setCurrentValue(Object v) |
+
void |
+setNamesToWrap(Set<String> namesToWrap) |
+
String |
+toString()
+Overridden to provide developer readable "JsonPath" representation
+ of the context.
+ |
+
getCurrentIndex, getEntryCount, getTypeDesc, hasCurrentIndex, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, typeDesc
protected final XmlReadContext _parent+
protected int _lineNr+
protected int _columnNr+
protected String _currentName+
protected Object _currentValue+
protected String _wrappedName+
protected XmlReadContext _child+
public XmlReadContext(XmlReadContext parent, + int type, + int lineNr, + int colNr)+
protected final void reset(int type, + int lineNr, + int colNr)+
public Object getCurrentValue()+
getCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentValue(Object v)+
setCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public static XmlReadContext createRootContext(int lineNr, + int colNr)+
public static XmlReadContext createRootContext()+
public final XmlReadContext createChildArrayContext(int lineNr, + int colNr)+
public final XmlReadContext createChildObjectContext(int lineNr, + int colNr)+
public final String getCurrentName()+
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public boolean hasCurrentName()+
hasCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public final XmlReadContext getParent()+
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public final boolean expectComma()+
public void setCurrentName(String name)+
public final com.fasterxml.jackson.core.JsonLocation getStartLocation(Object srcRef)+
getStartLocation
in class com.fasterxml.jackson.core.JsonStreamContext
protected void convertToArray()+
public final String toString()+
toString
in class com.fasterxml.jackson.core.JsonStreamContext
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlStringDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlStringDeserializer.html new file mode 100644 index 000000000..6dc7f480b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlStringDeserializer.html @@ -0,0 +1,423 @@ + + + + + + +public class XmlStringDeserializer +extends com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<String>+
StringDeserializer
to handle
+ couple of edge cases that XML parser exposes.
+
+ NOTE: mostly copy-pasted from standard StringDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
_valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
Constructor and Description | +
---|
XmlStringDeserializer() |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+deserialize(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt) |
+
String |
+deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
+
Object |
+getEmptyValue(com.fasterxml.jackson.databind.DeserializationContext ctxt) |
+
boolean |
+isCachable() |
+
deserialize, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserializeWithType, findBackReference, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
public boolean isCachable()+
isCachable
in class com.fasterxml.jackson.databind.JsonDeserializer<String>
public Object getEmptyValue(com.fasterxml.jackson.databind.DeserializationContext ctxt) + throws com.fasterxml.jackson.databind.JsonMappingException+
getEmptyValue
in class com.fasterxml.jackson.databind.JsonDeserializer<String>
com.fasterxml.jackson.databind.JsonMappingException
public String deserialize(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt) + throws IOException+
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<String>
IOException
public String deserializeWithType(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt, + com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) + throws IOException+
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<String>
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTextDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTextDeserializer.html new file mode 100644 index 000000000..d91c0ccbd --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTextDeserializer.html @@ -0,0 +1,552 @@ + + + + + + +public class XmlTextDeserializer
+extends com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
+com.fasterxml.jackson.databind.JsonDeserializer.None
Modifier and Type | +Field and Description | +
---|---|
protected com.fasterxml.jackson.databind.deser.ValueInstantiator |
+_valueInstantiator |
+
protected com.fasterxml.jackson.databind.deser.SettableBeanProperty |
+_xmlTextProperty
+Actual property that is indicated to be of type "XML Text" (and
+ is the only element-valued property)
+ |
+
protected int |
+_xmlTextPropertyIndex
+Property index of the "XML text property"; needed for finding actual
+ property instance after resolution and contextualization: instance
+ may change, but index will remain constant.
+ |
+
_delegatee
_valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
Constructor and Description | +
---|
XmlTextDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate,
+ int textPropIndex) |
+
XmlTextDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate,
+ com.fasterxml.jackson.databind.deser.SettableBeanProperty prop) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.deser.BeanDeserializerBase |
+_verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser) |
+
com.fasterxml.jackson.databind.JsonDeserializer<?> |
+createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ com.fasterxml.jackson.databind.BeanProperty property) |
+
Object |
+deserialize(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt) |
+
Object |
+deserialize(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ Object bean) |
+
Object |
+deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
+ com.fasterxml.jackson.databind.DeserializationContext ctxt,
+ com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
+
protected com.fasterxml.jackson.databind.JsonDeserializer<?> |
+newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0) |
+
findBackReference, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserializeWithType, getEmptyAccessPattern, getEmptyValue, getNullValue, unwrappingDeserializer
protected final int _xmlTextPropertyIndex+
protected final com.fasterxml.jackson.databind.deser.SettableBeanProperty _xmlTextProperty+
protected final com.fasterxml.jackson.databind.deser.ValueInstantiator _valueInstantiator+
public XmlTextDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate, + com.fasterxml.jackson.databind.deser.SettableBeanProperty prop)+
public XmlTextDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate, + int textPropIndex)+
protected com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0)+
newDelegatingInstance
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, + com.fasterxml.jackson.databind.BeanProperty property) + throws com.fasterxml.jackson.databind.JsonMappingException+
createContextual
in interface com.fasterxml.jackson.databind.deser.ContextualDeserializer
createContextual
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
com.fasterxml.jackson.databind.JsonMappingException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt) + throws IOException+
deserialize
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt, + Object bean) + throws IOException+
deserialize
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, + com.fasterxml.jackson.databind.DeserializationContext ctxt, + com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) + throws IOException+
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
IOException
protected com.fasterxml.jackson.databind.deser.BeanDeserializerBase _verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTokenStream.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTokenStream.html new file mode 100644 index 000000000..ccc179510 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/XmlTokenStream.html @@ -0,0 +1,953 @@ + + + + + + +public class XmlTokenStream +extends Object+
XMLStreamReader
to further
+ abstract out all irrelevant details, and to expose equivalent of flat token
+ stream with no "fluff" tokens (comments, processing instructions, mixed
+ content) all of which is just to simplify
+ actual higher-level conversion to JSON tokens.
++ Beyond initial idea there are also couple of other detours like ability + to "replay" some tokens, add virtual wrappers (ironically to support "unwrapped" + array values), and to unroll "Objects" into String values in some cases.
Modifier and Type | +Field and Description | +
---|---|
protected int |
+_attributeCount |
+
protected int |
+_currentState |
+
protected com.fasterxml.jackson.dataformat.xml.deser.ElementWrapper |
+_currentWrapper
+Wrapping state, if any active (null if none)
+ |
+
protected int |
+_formatFeatures
+Bit flag composed of bits that indicate which
+
+FromXmlParser.Feature s
+ are enabled. |
+
protected String |
+_localName |
+
protected boolean |
+_mixedText
+If true we have a START_ELEMENT with mixed text
+ |
+
protected String |
+_namespaceURI |
+
protected int |
+_nextAttributeIndex
+Index of the next attribute of the current START_ELEMENT
+ to return (as field name and value pair), if any; -1
+ when no attributes to return
+ |
+
protected String |
+_nextLocalName
+In cases where we need to 'inject' a virtual END_ELEMENT, we may also
+ need to restore START_ELEMENT afterwards; if so, this is where names
+ are held.
+ |
+
protected String |
+_nextNamespaceURI |
+
protected int |
+_repeatElement
+Flag used to indicate that given element should be "replayed".
+ |
+
protected Object |
+_sourceReference |
+
protected String |
+_textValue |
+
protected org.codehaus.stax2.XMLStreamReader2 |
+_xmlReader |
+
protected boolean |
+_xsiNilFound
+Marker used to indicate presence of `xsi:nil="true"' in current START_ELEMENT.
+ |
+
static int |
+XML_ATTRIBUTE_NAME |
+
static int |
+XML_ATTRIBUTE_VALUE |
+
static int |
+XML_END |
+
static int |
+XML_END_ELEMENT |
+
static int |
+XML_NULL |
+
static int |
+XML_START_ELEMENT |
+
static int |
+XML_TEXT |
+
Constructor and Description | +
---|
XmlTokenStream(XMLStreamReader xmlReader,
+ Object sourceRef,
+ int formatFeatures) |
+
Modifier and Type | +Method and Description | +
---|---|
protected boolean |
+_allWs(String str) |
+
protected int |
+_handleRepeatElement()
+Method called to handle details of repeating "virtual"
+ start/end elements, needed for handling 'unwrapped' lists.
+ |
+
void |
+close() |
+
void |
+closeCompletely() |
+
protected String |
+convertToString()
+Helper method called by XML String deserializer to concatenate textual contents
+ contained in logical "Object": mostly just to skip attribute values.
+ |
+
com.fasterxml.jackson.core.JsonLocation |
+getCurrentLocation() |
+
int |
+getCurrentToken() |
+
String |
+getLocalName() |
+
String |
+getNamespaceURI() |
+
String |
+getText() |
+
com.fasterxml.jackson.core.JsonLocation |
+getTokenLocation() |
+
org.codehaus.stax2.XMLStreamReader2 |
+getXmlReader() |
+
int |
+next() |
+
protected void |
+repeatStartElement()
+Method used to add virtual wrapping, which just duplicates START_ELEMENT
+ stream points to, and its matching closing element.
+ |
+
protected void |
+setFormatFeatures(int f) |
+
protected void |
+skipAttributes()
+Method called to skip any attributes current START_ELEMENT may have,
+ so that they are not returned as token.
+ |
+
void |
+skipEndElement() |
+
String |
+toString() |
+
public static final int XML_START_ELEMENT+
public static final int XML_END_ELEMENT+
public static final int XML_ATTRIBUTE_NAME+
public static final int XML_ATTRIBUTE_VALUE+
public static final int XML_TEXT+
public static final int XML_NULL+
public static final int XML_END+
protected final org.codehaus.stax2.XMLStreamReader2 _xmlReader+
protected final Object _sourceReference+
protected int _formatFeatures+
FromXmlParser.Feature
s
+ are enabled.protected int _currentState+
protected int _attributeCount+
protected boolean _xsiNilFound+
protected boolean _mixedText+
protected int _nextAttributeIndex+
protected String _localName+
protected String _namespaceURI+
protected String _textValue+
protected int _repeatElement+
protected com.fasterxml.jackson.dataformat.xml.deser.ElementWrapper _currentWrapper+
protected String _nextLocalName+
protected String _nextNamespaceURI+
public XmlTokenStream(XMLStreamReader xmlReader, + Object sourceRef, + int formatFeatures)+
public org.codehaus.stax2.XMLStreamReader2 getXmlReader()+
protected void setFormatFeatures(int f)+
public int next() + throws XMLStreamException+
XMLStreamException
public void skipEndElement() + throws IOException, + XMLStreamException+
IOException
XMLStreamException
public int getCurrentToken()+
public String getText()+
public String getLocalName()+
public String getNamespaceURI()+
public void closeCompletely() + throws XMLStreamException+
XMLStreamException
public void close() + throws XMLStreamException+
XMLStreamException
public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()+
public com.fasterxml.jackson.core.JsonLocation getTokenLocation()+
protected void repeatStartElement()+
protected void skipAttributes()+
protected String convertToString() + throws XMLStreamException+
XMLStreamException
protected int _handleRepeatElement() + throws XMLStreamException+
XMLStreamException
protected boolean _allWs(String str)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.Feature.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.Feature.html new file mode 100644 index 000000000..dafe22804 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.Feature.html @@ -0,0 +1,320 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.deser | ++ |
Modifier and Type | +Method and Description | +
---|---|
Class<FromXmlParser.Feature> |
+XmlFactory.getFormatReadFeatureType() |
+
Modifier and Type | +Method and Description | +
---|---|
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.configure(FromXmlParser.Feature f,
+ boolean state) |
+
XmlMapper.Builder |
+XmlMapper.Builder.configure(FromXmlParser.Feature feature,
+ boolean state) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.configure(FromXmlParser.Feature f,
+ boolean state) |
+
XmlFactory |
+XmlFactory.configure(FromXmlParser.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML parser feature.
+ |
+
XmlMapper.Builder |
+XmlMapper.Builder.disable(FromXmlParser.Feature... features) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.disable(FromXmlParser.Feature f) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(FromXmlParser.Feature f) |
+
XmlFactory |
+XmlFactory.disable(FromXmlParser.Feature f)
+Method for disabling specified XML parser feature.
+ |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(FromXmlParser.Feature first,
+ FromXmlParser.Feature... other) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(FromXmlParser.Feature first,
+ FromXmlParser.Feature... other) |
+
XmlMapper.Builder |
+XmlMapper.Builder.enable(FromXmlParser.Feature... features) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.enable(FromXmlParser.Feature f) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(FromXmlParser.Feature f) |
+
XmlFactory |
+XmlFactory.enable(FromXmlParser.Feature f)
+Method for enabling specified XML parser feature.
+ |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(FromXmlParser.Feature first,
+ FromXmlParser.Feature... other) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(FromXmlParser.Feature first,
+ FromXmlParser.Feature... other) |
+
boolean |
+XmlFactory.isEnabled(FromXmlParser.Feature f)
+Checked whether specified XML parser feature is enabled.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static FromXmlParser.Feature |
+FromXmlParser.Feature.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static FromXmlParser.Feature[] |
+FromXmlParser.Feature.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
FromXmlParser |
+FromXmlParser.configure(FromXmlParser.Feature f,
+ boolean state) |
+
FromXmlParser |
+FromXmlParser.disable(FromXmlParser.Feature f) |
+
FromXmlParser |
+FromXmlParser.enable(FromXmlParser.Feature f) |
+
boolean |
+FromXmlParser.isEnabled(FromXmlParser.Feature f) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.html new file mode 100644 index 000000000..61b238b9b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/FromXmlParser.html @@ -0,0 +1,229 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.deser | ++ |
Modifier and Type | +Method and Description | +
---|---|
protected FromXmlParser |
+XmlFactory._createParser(byte[] data,
+ int offset,
+ int len,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected FromXmlParser |
+XmlFactory._createParser(char[] data,
+ int offset,
+ int len,
+ com.fasterxml.jackson.core.io.IOContext ctxt,
+ boolean recycleBuffer) |
+
protected FromXmlParser |
+XmlFactory._createParser(InputStream in,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
protected FromXmlParser |
+XmlFactory._createParser(Reader r,
+ com.fasterxml.jackson.core.io.IOContext ctxt) |
+
FromXmlParser |
+XmlFactory.createParser(XMLStreamReader sr)
+Factory method that wraps given
+XMLStreamReader , usually to allow
+ partial data-binding. |
+
Modifier and Type | +Method and Description | +
---|---|
FromXmlParser |
+FromXmlParser.configure(FromXmlParser.Feature f,
+ boolean state) |
+
FromXmlParser |
+FromXmlParser.disable(FromXmlParser.Feature f) |
+
FromXmlParser |
+FromXmlParser.enable(FromXmlParser.Feature f) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/WrapperHandlingDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/WrapperHandlingDeserializer.html new file mode 100644 index 000000000..ac1228a5d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/WrapperHandlingDeserializer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlBeanDeserializerModifier.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlBeanDeserializerModifier.html new file mode 100644 index 000000000..4fde6993b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlBeanDeserializerModifier.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlReadContext.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlReadContext.html new file mode 100644 index 000000000..6886504a8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlReadContext.html @@ -0,0 +1,227 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.deser | ++ |
Modifier and Type | +Field and Description | +
---|---|
protected XmlReadContext |
+XmlReadContext._child |
+
protected XmlReadContext |
+XmlReadContext._parent |
+
protected XmlReadContext |
+FromXmlParser._parsingContext
+Information about parser context, context in which
+ the next token is to be parsed (root, array, object).
+ |
+
Modifier and Type | +Method and Description | +
---|---|
XmlReadContext |
+XmlReadContext.createChildArrayContext(int lineNr,
+ int colNr) |
+
XmlReadContext |
+XmlReadContext.createChildObjectContext(int lineNr,
+ int colNr) |
+
static XmlReadContext |
+XmlReadContext.createRootContext() |
+
static XmlReadContext |
+XmlReadContext.createRootContext(int lineNr,
+ int colNr) |
+
XmlReadContext |
+XmlReadContext.getParent() |
+
XmlReadContext |
+FromXmlParser.getParsingContext() |
+
Constructor and Description | +
---|
XmlReadContext(XmlReadContext parent,
+ int type,
+ int lineNr,
+ int colNr) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlStringDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlStringDeserializer.html new file mode 100644 index 000000000..7d28c27cb --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlStringDeserializer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTextDeserializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTextDeserializer.html new file mode 100644 index 000000000..f942aa045 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTextDeserializer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTokenStream.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTokenStream.html new file mode 100644 index 000000000..6f63cf544 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/class-use/XmlTokenStream.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.deser | ++ |
Modifier and Type | +Field and Description | +
---|---|
protected XmlTokenStream |
+FromXmlParser._xmlTokens |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-frame.html new file mode 100644 index 000000000..0c555b654 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-frame.html @@ -0,0 +1,31 @@ + + + + + + +Class | +Description | +
---|---|
FromXmlParser | +
+JsonParser implementation that exposes XML structure as
+ set of JSON events that can be used for data binding. |
+
WrapperHandlingDeserializer | +
+ Delegating deserializer whose only function is to handle case of
+ "unwrapped" List/array deserialization from XML.
+ |
+
XmlBeanDeserializerModifier | +
+ The main reason for a modifier is to support handling of
+ 'wrapped' Collection types.
+ |
+
XmlReadContext | +
+ Extension of
+JsonStreamContext , which implements
+ core methods needed, and adds small amount of additional
+ state data we need. |
+
XmlStringDeserializer | +
+ Custom variant used instead of "plain"
+StringDeserializer to handle
+ couple of edge cases that XML parser exposes. |
+
XmlTextDeserializer | +
+ Delegating deserializer that is used in the special cases where
+ we may sometimes see a "plain" String value but need to map it
+ as if it was a property of POJO.
+ |
+
XmlTokenStream | +
+ Simple helper class used on top of STAX
+XMLStreamReader to further
+ abstract out all irrelevant details, and to expose equivalent of flat token
+ stream with no "fluff" tokens (comments, processing instructions, mixed
+ content) all of which is just to simplify
+ actual higher-level conversion to JSON tokens. |
+
Enum | +Description | +
---|---|
FromXmlParser.Feature | +
+ Enumeration that defines all togglable features for XML parsers.
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-tree.html new file mode 100644 index 000000000..1973a86b1 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-tree.html @@ -0,0 +1,189 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-use.html new file mode 100644 index 000000000..2d0aa900e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/deser/package-use.html @@ -0,0 +1,214 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.deser | ++ |
Class and Description | +
---|
FromXmlParser
+JsonParser implementation that exposes XML structure as
+ set of JSON events that can be used for data binding. |
+
FromXmlParser.Feature
+ Enumeration that defines all togglable features for XML parsers.
+ |
+
Class and Description | +
---|
FromXmlParser
+JsonParser implementation that exposes XML structure as
+ set of JSON events that can be used for data binding. |
+
FromXmlParser.Feature
+ Enumeration that defines all togglable features for XML parsers.
+ |
+
XmlReadContext
+ Extension of
+JsonStreamContext , which implements
+ core methods needed, and adds small amount of additional
+ state data we need. |
+
XmlTokenStream
+ Simple helper class used on top of STAX
+XMLStreamReader to further
+ abstract out all irrelevant details, and to expose equivalent of flat token
+ stream with no "fluff" tokens (comments, processing instructions, mixed
+ content) all of which is just to simplify
+ actual higher-level conversion to JSON tokens. |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/XmlJaxbAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/XmlJaxbAnnotationIntrospector.html new file mode 100644 index 000000000..ab951dfe4 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/XmlJaxbAnnotationIntrospector.html @@ -0,0 +1,479 @@ + + + + + + +public class XmlJaxbAnnotationIntrospector +extends com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector +implements XmlAnnotationIntrospector+
AnnotationIntrospector
+ implementation that
+ builds on JaxbAnnotationIntrospector
.
+
+ NOTE: since version 2.4, it may NOT be necessary to use this class;
+ instead, plain JaxbAnnotationIntrospector
should fully work.
+ With previous versions some aspects were not fully working and this
+ class was necessary.
com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
_dataHandlerDeserializer, _dataHandlerSerializer, _ignoreXmlIDREF, _jaxbPackageName, _nonNillableInclusion, _typeFactory, _xmlValueName, DEFAULT_IGNORE_XMLIDREF, DEFAULT_NAME_FOR_XML_VALUE, FORMAT_INT, FORMAT_STRING, MARKER_FOR_DEFAULT
Constructor and Description | +
---|
XmlJaxbAnnotationIntrospector()
+Deprecated.
+ |
+
XmlJaxbAnnotationIntrospector(com.fasterxml.jackson.databind.type.TypeFactory typeFactory) |
+
Modifier and Type | +Method and Description | +
---|---|
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)
+Method used to check whether given annotated element
+ (field, method, constructor parameter) has indicator that suggests
+ it be output as an XML attribute or not (as element)
+ |
+
Boolean |
+isOutputAsCData(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 wrapped in a CDATA tag.
+ |
+
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.
+ |
+
void |
+setDefaultUseWrapper(boolean b) |
+
_converter, _doFindDeserializationType, _findContentAdapter, _fullDeserializationType, _fullSerializationType, _getTypeFromXmlElement, _propertyNameToString, _rawDeserializationType, _rawSerializationType, _typeResolverFromXmlElements, findAccessType, findAutoDetectVisibility, findContentDeserializer, findContentSerializer, findDeserializationContentConverter, findDeserializationConverter, findDeserializer, findEnumValues, findFormat, findImplicitPropertyName, findKeyDeserializer, findNameForDeserialization, findNameForSerialization, findObjectIdInfo, findObjectReferenceInfo, findPropertyContentTypeResolver, findPropertyInclusion, findPropertyTypeResolver, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializer, findSubtypes, findTypeName, findTypeResolver, findWrapperName, getNameUsedForXmlValue, getNonNillableInclusion, getTypeFactory, hasAsValueAnnotation, hasIgnoreMarker, hasRequiredMarker, isIgnorableType, isJAXBAnnotation, refineDeserializationType, refineSerializationType, setNameUsedForXmlValue, setNonNillableInclusion, version
_findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findAndAddVirtualProperties, findClassDescription, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentType, findDeserializationKeyType, findDeserializationType, findEnumValue, findFilterId, findIgnoreUnknownProperties, findInjectableValue, findInjectableValueId, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyIndex, findReferenceType, findSerializationContentType, findSerializationInclusion, findSerializationInclusionForContent, findSerializationKeyType, findSerializationTyping, findSetterInfo, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasCreatorAnnotation, isAnnotationBundle, isTypeId, nopInstance, pair, resolveSetterConflict
@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)+
XmlAnnotationIntrospector
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
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)+
XmlAnnotationIntrospector
isOutputAsCData
in interface XmlAnnotationIntrospector
public void setDefaultUseWrapper(boolean b)+
setDefaultUseWrapper
in interface XmlAnnotationIntrospector
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/class-use/XmlJaxbAnnotationIntrospector.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/class-use/XmlJaxbAnnotationIntrospector.html new file mode 100644 index 000000000..106810733 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/class-use/XmlJaxbAnnotationIntrospector.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-frame.html new file mode 100644 index 000000000..34a22cc2b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +Class | +Description | +
---|---|
XmlJaxbAnnotationIntrospector | +
+ Alternative
+AnnotationIntrospector
+ implementation that
+ builds on JaxbAnnotationIntrospector . |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-tree.html new file mode 100644 index 000000000..fd04a5269 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-tree.html @@ -0,0 +1,147 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-use.html new file mode 100644 index 000000000..4cc22bd45 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/jaxb/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-frame.html new file mode 100644 index 000000000..63e497396 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-frame.html @@ -0,0 +1,38 @@ + + + + + + +See: Description
+Interface | +Description | +
---|---|
XmlAnnotationIntrospector | +
+ Additional extension interface used above and beyond
+
+AnnotationIntrospector to handle XML-specific configuration. |
+
XmlPrettyPrinter | +
+ There are some XML-specific quirks that need extra TLC when
+ indenting: so we will use a refinement of general purpose one.
+ |
+
Class | +Description | +
---|---|
DefaultingXmlTypeResolverBuilder | +
+ Sub-class of
+StdTypeResolverBuilder specifically used with
+ Default Typing. |
+
JacksonXmlAnnotationIntrospector | +
+ Extension of
+JacksonAnnotationIntrospector that is needed to support
+ additional xml-specific annotation that Jackson provides. |
+
JacksonXmlModule | +
+ Module that implements most functionality needed to support producing and
+ consuming XML instead of JSON.
+ |
+
PackageVersion | +
+ Automatically generated from PackageVersion.java.in during
+ packageVersion-generate execution of maven-replacer-plugin in
+ pom.xml.
+ |
+
XmlAnnotationIntrospector.JaxbWrapper | +
+ Wrapper we need to adapt
+JaxbAnnotationIntrospector as
+ XmlAnnotationIntrospector : something we can not (alas!)
+ do in JAXB module because of dependency direction (JAXB module
+ has no knowledge of this module). |
+
XmlAnnotationIntrospector.Pair | +
+ Extension of
+AnnotationIntrospector.Pair that can
+ also dispatch 'XmlAnnotationIntrospector' methods. |
+
XmlFactory | +
+ Factory used for constructing
+FromXmlParser and ToXmlGenerator
+ instances. |
+
XmlFactoryBuilder | +
+TSFBuilder
+ implementation for constructing XmlFactory
+ instances. |
+
XmlMapper | +
+ Customized
+ObjectMapper that will read and write XML instead of JSON,
+ using XML-backed JsonFactory
+ implementation (XmlFactory ). |
+
XmlMapper.Builder | +
+ Builder implementation for constructing
+XmlMapper instances. |
+
XmlTypeResolverBuilder | +
+ Custom specialization of
+StdTypeResolverBuilder ; needed so that
+ type id property name can be modified as necessary to make it legal
+ XML element or attribute name. |
+
XmlTypeResolverBuilder.XmlClassNameIdResolver | ++ |
XmlTypeResolverBuilder.XmlMinimalClassNameIdResolver | ++ |
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-tree.html new file mode 100644 index 000000000..ab4e1b8a9 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-tree.html @@ -0,0 +1,228 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-use.html new file mode 100644 index 000000000..c3ca6e56d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/package-use.html @@ -0,0 +1,269 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.jaxb | ++ |
com.fasterxml.jackson.dataformat.xml.ser | ++ |
com.fasterxml.jackson.dataformat.xml.util | ++ |
Class and Description | +
---|
JacksonXmlModule
+ Module that implements most functionality needed to support producing and
+ consuming XML instead of JSON.
+ |
+
XmlAnnotationIntrospector
+ Additional extension interface used above and beyond
+
+AnnotationIntrospector to handle XML-specific configuration. |
+
XmlAnnotationIntrospector.Pair
+ Extension of
+AnnotationIntrospector.Pair that can
+ also dispatch 'XmlAnnotationIntrospector' methods. |
+
XmlFactory
+ Factory used for constructing
+FromXmlParser and ToXmlGenerator
+ instances. |
+
XmlFactoryBuilder
+TSFBuilder
+ implementation for constructing XmlFactory
+ instances. |
+
XmlMapper
+ Customized
+ObjectMapper that will read and write XML instead of JSON,
+ using XML-backed JsonFactory
+ implementation (XmlFactory ). |
+
XmlMapper.Builder
+ Builder implementation for constructing
+XmlMapper instances. |
+
Class and Description | +
---|
XmlAnnotationIntrospector
+ Additional extension interface used above and beyond
+
+AnnotationIntrospector to handle XML-specific configuration. |
+
Class and Description | +
---|
XmlPrettyPrinter
+ There are some XML-specific quirks that need extra TLC when
+ indenting: so we will use a refinement of general purpose one.
+ |
+
Class and Description | +
---|
XmlPrettyPrinter
+ There are some XML-specific quirks that need extra TLC when
+ indenting: so we will use a refinement of general purpose one.
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.Feature.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.Feature.html new file mode 100644 index 000000000..70729ca4f --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.Feature.html @@ -0,0 +1,465 @@ + + + + + + +public static enum ToXmlGenerator.Feature +extends Enum<ToXmlGenerator.Feature> +implements com.fasterxml.jackson.core.FormatFeature+
Enum Constant and Description | +
---|
WRITE_NULLS_AS_XSI_NIL
+Feature that controls whether serialization of Java
+null values adds
+ XML attribute of `xsi:nil`, as defined by XML Schema (see
+ this article
+ for details) or not. |
+
WRITE_XML_1_1
+Feature that controls whether output should be done as XML 1.1; if so,
+ certain aspects may differ from default (1.0) processing: for example,
+ XML declaration will be automatically added (regardless of setting
+
+WRITE_XML_DECLARATION ) as this is required for reader to
+ know to use 1.1 compliant handling. |
+
WRITE_XML_DECLARATION
+Feature that controls whether XML declaration should be written before
+ when generator is initialized (true) or not (false)
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static int |
+collectDefaults()
+Method that calculates bit set (flags) of all features that
+ are enabled by default.
+ |
+
boolean |
+enabledByDefault() |
+
boolean |
+enabledIn(int flags) |
+
int |
+getMask() |
+
static ToXmlGenerator.Feature |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static ToXmlGenerator.Feature[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final ToXmlGenerator.Feature WRITE_XML_DECLARATION+
public static final ToXmlGenerator.Feature WRITE_XML_1_1+
WRITE_XML_DECLARATION
) as this is required for reader to
+ know to use 1.1 compliant handling. XML 1.1 can be used to allow quoted
+ control characters (Ascii codes 0 through 31) as well as additional linefeeds
+ and name characters.public static final ToXmlGenerator.Feature WRITE_NULLS_AS_XSI_NIL+
null
values adds
+ XML attribute of `xsi:nil`, as defined by XML Schema (see
+ this article
+ for details) or not.
+ If enabled, `xsi:nil` attribute will be added to the empty element; if disabled,
+ it will not.
++ Feature is disabled by default for backwards compatibility.
public static ToXmlGenerator.Feature[] values()+
+for (ToXmlGenerator.Feature c : ToXmlGenerator.Feature.values()) + System.out.println(c); +
public static ToXmlGenerator.Feature valueOf(String name)+
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static int collectDefaults()+
public boolean enabledByDefault()+
enabledByDefault
in interface com.fasterxml.jackson.core.FormatFeature
public int getMask()+
getMask
in interface com.fasterxml.jackson.core.FormatFeature
public boolean enabledIn(int flags)+
enabledIn
in interface com.fasterxml.jackson.core.FormatFeature
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.html new file mode 100644 index 000000000..11d69c15e --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.html @@ -0,0 +1,1811 @@ + + + + + + +public final class ToXmlGenerator
+extends com.fasterxml.jackson.core.base.GeneratorBase
+JsonGenerator
that outputs JAXB-style XML output instead of JSON content.
+ Operation requires calling code (usually either standard Jackson serializers,
+ or in some cases (like BeanSerializer
) customised ones) to do
+ additional configuration calls beyond regular JsonGenerator
API,
+ mostly to pass namespace information.Modifier and Type | +Class and Description | +
---|---|
static class |
+ToXmlGenerator.Feature
+Enumeration that defines all togglable extra XML-specific features
+ |
+
Modifier and Type | +Field and Description | +
---|---|
protected LinkedList<QName> |
+_elementNameStack
+To support proper serialization of arrays it is necessary to keep
+ stack of element names, so that we can "revert" to earlier
+ |
+
protected int |
+_formatFeatures
+Bit flag composed of bits that indicate which
+
+ToXmlGenerator.Feature s
+ are enabled. |
+
protected boolean |
+_initialized
+Marker set when
+initGenerator() has been called or not. |
+
protected com.fasterxml.jackson.core.io.IOContext |
+_ioContext |
+
protected boolean |
+_nextIsAttribute
+Marker flag that indicates whether next name to write
+ implies an attribute (true) or element (false)
+ |
+
protected boolean |
+_nextIsCData
+Marker flag used to indicate that the next write of a (property)
+ value should be as CData
+ |
+
protected boolean |
+_nextIsUnwrapped
+Marker flag used to indicate that the next write of a (property)
+ value should be done without using surrounding start/end
+ elements.
+ |
+
protected QName |
+_nextName
+Element or attribute name to use for next output call.
+ |
+
protected XMLStreamWriter |
+_originalXmlWriter |
+
protected boolean |
+_stax2Emulation
+Marker flag set if the underlying stream writer has to emulate
+ Stax2 API: this is problematic if trying to use
+writeRaw(java.lang.String) calls. |
+
protected XmlPrettyPrinter |
+_xmlPrettyPrinter
+We may need to use XML-specific indentation as well
+ |
+
protected org.codehaus.stax2.XMLStreamWriter2 |
+_xmlWriter |
+
protected static String |
+DEFAULT_UNKNOWN_ELEMENT
+If we support optional definition of element names, this is the element
+ name to use...
+ |
+
_cfgNumbersAsStrings, _closed, _features, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
_cfgPrettyPrinter
Constructor and Description | +
---|
ToXmlGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
+ int stdFeatures,
+ int xmlFeatures,
+ com.fasterxml.jackson.core.ObjectCodec codec,
+ XMLStreamWriter sw) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.core.PrettyPrinter |
+_constructDefaultPrettyPrinter() |
+
void |
+_handleEndObject() |
+
void |
+_handleStartObject() |
+
protected void |
+_releaseBuffers() |
+
protected void |
+_reportUnimplementedStax2(String missingMethod)
+Method called in case access to native Stax2 API implementation is required.
+ |
+
protected void |
+_verifyValueWrite(String typeMsg) |
+
boolean |
+canWriteFormattedNumbers() |
+
protected boolean |
+checkNextIsUnwrapped()
+Method called to see if unwrapping is required; and if so,
+ clear the flag (so further calls will return 'false' unless
+ state is re-set)
+ |
+
void |
+close() |
+
ToXmlGenerator |
+configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
ToXmlGenerator |
+disable(ToXmlGenerator.Feature f) |
+
ToXmlGenerator |
+enable(ToXmlGenerator.Feature f) |
+
void |
+finishWrappedValue(QName wrapperName,
+ QName wrappedName)
+Method called after a structured collection output has completed
+ |
+
void |
+flush() |
+
int |
+getFormatFeatures() |
+
int |
+getOutputBuffered()
+Stax2 does not expose buffered content amount, so we can only return
+
+-1 from here |
+
Object |
+getOutputTarget() |
+
XMLStreamWriter |
+getStaxWriter()
+Method that allows application direct access to underlying
+ Stax
+XMLStreamWriter . |
+
protected void |
+handleMissingName() |
+
void |
+initGenerator()
+Method called before writing any other output, to optionally
+ output XML declaration.
+ |
+
boolean |
+inRoot() |
+
boolean |
+isEnabled(ToXmlGenerator.Feature f) |
+
com.fasterxml.jackson.core.JsonGenerator |
+overrideFormatFeatures(int values,
+ int mask) |
+
void |
+setNextIsAttribute(boolean isAttribute) |
+
void |
+setNextIsCData(boolean isCData) |
+
void |
+setNextIsUnwrapped(boolean isUnwrapped) |
+
void |
+setNextName(QName name) |
+
boolean |
+setNextNameIfMissing(QName name)
+Method that does same as
+setNextName(javax.xml.namespace.QName) , unless
+ a name has already been set. |
+
com.fasterxml.jackson.core.JsonGenerator |
+setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp) |
+
void |
+startWrappedValue(QName wrapperName,
+ QName wrappedName)
+Methdod called when a structured (collection, array, map) is being
+ output.
+ |
+
void |
+writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
+ byte[] data,
+ int offset,
+ int len) |
+
int |
+writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
+ InputStream data,
+ int dataLength) |
+
void |
+writeBoolean(boolean value) |
+
void |
+writeEndArray() |
+
void |
+writeEndObject() |
+
void |
+writeFieldName(com.fasterxml.jackson.core.SerializableString name) |
+
void |
+writeFieldName(String name) |
+
void |
+writeNull() |
+
void |
+writeNumber(BigDecimal dec) |
+
void |
+writeNumber(BigInteger value) |
+
void |
+writeNumber(double d) |
+
void |
+writeNumber(float f) |
+
void |
+writeNumber(int i) |
+
void |
+writeNumber(long l) |
+
void |
+writeNumber(String encodedValue) |
+
void |
+writeRaw(char c) |
+
void |
+writeRaw(char[] text,
+ int offset,
+ int len) |
+
void |
+writeRaw(String text) |
+
void |
+writeRaw(String text,
+ int offset,
+ int len) |
+
void |
+writeRawUTF8String(byte[] text,
+ int offset,
+ int length) |
+
void |
+writeRawValue(char[] text,
+ int offset,
+ int len) |
+
void |
+writeRawValue(com.fasterxml.jackson.core.SerializableString text) |
+
void |
+writeRawValue(String text) |
+
void |
+writeRawValue(String text,
+ int offset,
+ int len) |
+
void |
+writeRepeatedFieldName()
+Trivial helper method called when to add a replicated wrapper name
+ |
+
void |
+writeStartArray() |
+
void |
+writeStartObject() |
+
void |
+writeString(char[] text,
+ int offset,
+ int len) |
+
void |
+writeString(com.fasterxml.jackson.core.SerializableString text) |
+
void |
+writeString(String text) |
+
void |
+writeStringField(String fieldName,
+ String value) |
+
void |
+writeUTF8String(byte[] text,
+ int offset,
+ int length) |
+
_asString, _checkStdFeatureChanges, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, useDefaultPrettyPrinter, version, writeObject, writeStartObject, writeTree
_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getHighestEscapedChar, getPrettyPrinter, getSchema, isEnabled, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, setSchema, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeTypeId, writeTypePrefix, writeTypeSuffix
protected static final String DEFAULT_UNKNOWN_ELEMENT+
protected final org.codehaus.stax2.XMLStreamWriter2 _xmlWriter+
protected final XMLStreamWriter _originalXmlWriter+
protected final boolean _stax2Emulation+
writeRaw(java.lang.String)
calls.protected final com.fasterxml.jackson.core.io.IOContext _ioContext+
protected int _formatFeatures+
ToXmlGenerator.Feature
s
+ are enabled.protected XmlPrettyPrinter _xmlPrettyPrinter+
protected boolean _initialized+
initGenerator()
has been called or not.protected QName _nextName+
protected boolean _nextIsAttribute+
protected boolean _nextIsUnwrapped+
protected boolean _nextIsCData+
protected LinkedList<QName> _elementNameStack+
public ToXmlGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, + int stdFeatures, + int xmlFeatures, + com.fasterxml.jackson.core.ObjectCodec codec, + XMLStreamWriter sw)+
public void initGenerator() + throws IOException+
IOException
protected com.fasterxml.jackson.core.PrettyPrinter _constructDefaultPrettyPrinter()+
_constructDefaultPrettyPrinter
in class com.fasterxml.jackson.core.base.GeneratorBase
public com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)+
setPrettyPrinter
in class com.fasterxml.jackson.core.JsonGenerator
public Object getOutputTarget()+
getOutputTarget
in class com.fasterxml.jackson.core.JsonGenerator
public int getOutputBuffered()+
-1
from heregetOutputBuffered
in class com.fasterxml.jackson.core.JsonGenerator
public int getFormatFeatures()+
getFormatFeatures
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.JsonGenerator overrideFormatFeatures(int values, + int mask)+
overrideFormatFeatures
in class com.fasterxml.jackson.core.JsonGenerator
public ToXmlGenerator enable(ToXmlGenerator.Feature f)+
public ToXmlGenerator disable(ToXmlGenerator.Feature f)+
public final boolean isEnabled(ToXmlGenerator.Feature f)+
public ToXmlGenerator configure(ToXmlGenerator.Feature f, + boolean state)+
public boolean canWriteFormattedNumbers()+
canWriteFormattedNumbers
in class com.fasterxml.jackson.core.JsonGenerator
public boolean inRoot()+
public XMLStreamWriter getStaxWriter()+
XMLStreamWriter
. Note that use of writer is
+ discouraged, and may interfere with processing of this writer;
+ however, occasionally it may be necessary.
+
+ Note: writer instance will always be of type
+ XMLStreamWriter2
(including
+ Typed Access API) so upcasts are safe.
public void setNextIsAttribute(boolean isAttribute)+
public void setNextIsUnwrapped(boolean isUnwrapped)+
public void setNextIsCData(boolean isCData)+
public final void setNextName(QName name)+
public final boolean setNextNameIfMissing(QName name)+
setNextName(javax.xml.namespace.QName)
, unless
+ a name has already been set.public void startWrappedValue(QName wrapperName, + QName wrappedName) + throws IOException+
wrapperName
- Element used as wrapper around elements, if any (null if none)wrappedName
- Element used around individual content items (can not
+ be null)IOException
public void finishWrappedValue(QName wrapperName, + QName wrappedName) + throws IOException+
IOException
public void writeRepeatedFieldName() + throws IOException+
IOException
public final void writeFieldName(String name) + throws IOException+
writeFieldName
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void writeStringField(String fieldName, + String value) + throws IOException+
writeStringField
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void writeStartArray() + throws IOException+
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void writeEndArray() + throws IOException+
writeEndArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void writeStartObject() + throws IOException+
writeStartObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void writeEndObject() + throws IOException+
writeEndObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public final void _handleStartObject() + throws IOException+
IOException
public final void _handleEndObject() + throws IOException+
IOException
public void writeFieldName(com.fasterxml.jackson.core.SerializableString name) + throws IOException+
writeFieldName
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeString(String text) + throws IOException+
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeString(char[] text, + int offset, + int len) + throws IOException+
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeString(com.fasterxml.jackson.core.SerializableString text) + throws IOException+
writeString
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeRawUTF8String(byte[] text, + int offset, + int length) + throws IOException+
writeRawUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeUTF8String(byte[] text, + int offset, + int length) + throws IOException+
writeUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRawValue(String text) + throws IOException+
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeRawValue(String text, + int offset, + int len) + throws IOException+
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeRawValue(char[] text, + int offset, + int len) + throws IOException+
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeRawValue(com.fasterxml.jackson.core.SerializableString text) + throws IOException+
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeRaw(String text) + throws IOException+
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(String text, + int offset, + int len) + throws IOException+
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(char[] text, + int offset, + int len) + throws IOException+
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(char c) + throws IOException+
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, + byte[] data, + int offset, + int len) + throws IOException+
writeBinary
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, + InputStream data, + int dataLength) + throws IOException+
writeBinary
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void writeBoolean(boolean value) + throws IOException+
writeBoolean
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNull() + throws IOException+
writeNull
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(int i) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(long l) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(double d) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(float f) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(BigDecimal dec) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(BigInteger value) + throws IOException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(String encodedValue) + throws IOException, + UnsupportedOperationException+
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
UnsupportedOperationException
protected final void _verifyValueWrite(String typeMsg) + throws IOException+
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void flush() + throws IOException+
flush
in interface Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void close() + throws IOException+
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
protected void _releaseBuffers()+
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected boolean checkNextIsUnwrapped()+
protected void handleMissingName()+
protected void _reportUnimplementedStax2(String missingMethod) + throws IOException+
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/UnwrappingXmlBeanSerializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/UnwrappingXmlBeanSerializer.html new file mode 100644 index 000000000..ef5a9e322 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/UnwrappingXmlBeanSerializer.html @@ -0,0 +1,615 @@ + + + + + + +public class UnwrappingXmlBeanSerializer +extends XmlBeanSerializerBase+
UnwrappingBeanSerializer
required to extend
+ XmlBeanSerializerBase
for XML-specific handling.com.fasterxml.jackson.databind.JsonSerializer.None
Modifier and Type | +Field and Description | +
---|---|
protected com.fasterxml.jackson.databind.util.NameTransformer |
+_nameTransformer
+Transformer used to add prefix and/or suffix for properties of unwrapped
+ POJO.
+ |
+
_attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFO
_anyGetterWriter, _beanType, _filteredProps, _objectIdWriter, _propertyFilterId, _props, _serializationShape, _typeId, NAME_FOR_OBJECT_REF, NO_PROPS
_handledType
Modifier | +Constructor and Description | +
---|---|
|
+UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
|
+UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
protected |
+UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ Set<String> toIgnore) |
+
|
+UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.util.NameTransformer transformer)
+Constructor used for creating unwrapping instance of a standard
+
+BeanSerializer |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+asArraySerializer()
+JSON Array output can not be done if unwrapping operation is requested;
+ so implementation will simply return 'this'.
+ |
+
boolean |
+isUnwrappingSerializer() |
+
void |
+serialize(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator jgen,
+ com.fasterxml.jackson.databind.SerializerProvider provider)
+Main serialization method that will delegate actual output to configured
+
+BeanPropertyWriter instances. |
+
String |
+toString() |
+
com.fasterxml.jackson.databind.JsonSerializer<Object> |
+unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer transformer) |
+
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withFilterId(Object filterId) |
+
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withIgnorals(Set<String> toIgnore) |
+
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
_isAttribute, _isCData, _orderAttributesFirst, _serializeObjectId, serializeFields, serializeFieldsFiltered, serializeWithType
_customTypeId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, createContextual, findConvertingSerializer, getSchema, properties, resolve, usesObjectId, withIgnorals
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isEmpty, replaceDelegatee
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSchema
protected final com.fasterxml.jackson.databind.util.NameTransformer _nameTransformer+
public UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.util.NameTransformer transformer)+
BeanSerializer
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)+
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, + Object filterId)+
protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, + Set<String> toIgnore)+
public com.fasterxml.jackson.databind.JsonSerializer<Object> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer transformer)+
unwrappingSerializer
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
public boolean isUnwrappingSerializer()+
isUnwrappingSerializer
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)+
withObjectIdWriter
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withFilterId(Object filterId)+
withFilterId
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withIgnorals(Set<String> toIgnore)+
withIgnorals
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase asArraySerializer()+
asArraySerializer
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public final void serialize(Object bean, + com.fasterxml.jackson.core.JsonGenerator jgen, + com.fasterxml.jackson.databind.SerializerProvider provider) + throws IOException, + com.fasterxml.jackson.core.JsonGenerationException+
BeanPropertyWriter
instances.serialize
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanPropertyWriter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanPropertyWriter.html new file mode 100644 index 000000000..91b020545 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanPropertyWriter.html @@ -0,0 +1,448 @@ + + + + + + +public class XmlBeanPropertyWriter
+extends com.fasterxml.jackson.databind.ser.BeanPropertyWriter
+com.fasterxml.jackson.databind.BeanProperty.Bogus, com.fasterxml.jackson.databind.BeanProperty.Std
Modifier and Type | +Field and Description | +
---|---|
protected QName |
+_wrappedQName
+Element name used for items in the collection
+ |
+
protected QName |
+_wrapperQName
+Element name used as wrapper for collection.
+ |
+
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
_aliases, _metadata, _propertyFormat
EMPTY_FORMAT, EMPTY_INCLUDE
Constructor and Description | +
---|
XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped,
+ com.fasterxml.jackson.databind.PropertyName wrapperName,
+ com.fasterxml.jackson.databind.PropertyName wrappedName) |
+
XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped,
+ com.fasterxml.jackson.databind.PropertyName wrapperName,
+ com.fasterxml.jackson.databind.PropertyName wrappedName,
+ com.fasterxml.jackson.databind.JsonSerializer<Object> serializer) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+serializeAsField(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator jgen,
+ com.fasterxml.jackson.databind.SerializerProvider prov)
+Overridden version so that we can wrap output within wrapper element if
+ and as necessary.
+ |
+
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignNullSerializer, assignSerializer, assignTypeSerializer, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithName
findAnnotation
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
protected final QName _wrapperQName+
protected final QName _wrappedQName+
public XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped, + com.fasterxml.jackson.databind.PropertyName wrapperName, + com.fasterxml.jackson.databind.PropertyName wrappedName)+
public XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped, + com.fasterxml.jackson.databind.PropertyName wrapperName, + com.fasterxml.jackson.databind.PropertyName wrappedName, + com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)+
public void serializeAsField(Object bean, + com.fasterxml.jackson.core.JsonGenerator jgen, + com.fasterxml.jackson.databind.SerializerProvider prov) + throws Exception+
serializeAsField
in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
Exception
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializer.html new file mode 100644 index 000000000..7415f1bbb --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializer.html @@ -0,0 +1,554 @@ + + + + + + +public class XmlBeanSerializer +extends XmlBeanSerializerBase+
BeanSerializer
for XML handling.com.fasterxml.jackson.databind.JsonSerializer.None
_attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFO
_anyGetterWriter, _beanType, _filteredProps, _objectIdWriter, _propertyFilterId, _props, _serializationShape, _typeId, NAME_FOR_OBJECT_REF, NO_PROPS
_handledType
Constructor and Description | +
---|
XmlBeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src) |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ Set<String> toIgnore) |
+
Modifier and Type | +Method and Description | +
---|---|
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+asArraySerializer()
+Implementation has to check whether as-array serialization
+ is possible reliably; if (and only if) so, will construct
+ a
+BeanAsArraySerializer , otherwise will return this
+ serializer as is. |
+
void |
+serialize(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator g,
+ com.fasterxml.jackson.databind.SerializerProvider provider)
+Main serialization method that will delegate actual output to configured
+
+BeanPropertyWriter instances. |
+
String |
+toString() |
+
com.fasterxml.jackson.databind.JsonSerializer<Object> |
+unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer unwrapper) |
+
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withFilterId(Object filterId) |
+
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withIgnorals(Set<String> toIgnore) |
+
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
+withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
_isAttribute, _isCData, _orderAttributesFirst, _serializeObjectId, serializeFields, serializeFieldsFiltered, serializeWithType
_customTypeId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, createContextual, findConvertingSerializer, getSchema, properties, resolve, usesObjectId, withIgnorals
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, replaceDelegatee
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSchema
public XmlBeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src)+
public XmlBeanSerializer(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, + Object filterId)+
public XmlBeanSerializer(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)+
public XmlBeanSerializer(XmlBeanSerializerBase src, + Set<String> toIgnore)+
public com.fasterxml.jackson.databind.JsonSerializer<Object> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer unwrapper)+
unwrappingSerializer
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)+
withObjectIdWriter
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withFilterId(Object filterId)+
withFilterId
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withIgnorals(Set<String> toIgnore)+
withIgnorals
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase asArraySerializer()+
BeanAsArraySerializer
, otherwise will return this
+ serializer as is.asArraySerializer
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public void serialize(Object bean, + com.fasterxml.jackson.core.JsonGenerator g, + com.fasterxml.jackson.databind.SerializerProvider provider) + throws IOException+
BeanPropertyWriter
instances.serialize
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerBase.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerBase.html new file mode 100644 index 000000000..732e77a05 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerBase.html @@ -0,0 +1,681 @@ + + + + + + +public abstract class XmlBeanSerializerBase
+extends com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
+BeanSerializerBase
needed to take care
+ of some xml-specific aspects, such as distinction between attributes
+ and elements.com.fasterxml.jackson.databind.JsonSerializer.None
Modifier and Type | +Field and Description | +
---|---|
protected int |
+_attributeCount
+Number of attributes to write; these will have been ordered to be the first
+ properties to write.
+ |
+
protected BitSet |
+_cdata
+Optional set of indexes of properties that should be serialized as CDATA,
+ instead of regular XML text segment.
+ |
+
protected int |
+_textPropertyIndex
+Index of "text value" property we have, if any; can have at most
+ one such property.
+ |
+
protected QName[] |
+_xmlNames
+Array that contains namespace URIs associated with properties, if any;
+ null if no namespace definitions have been assigned
+ |
+
static String |
+KEY_XML_INFO
+Marker used for storing associated internal data with
+BeanPropertyWriter
+ instances; to mark instances that are to be written out as attributes. |
+
_anyGetterWriter, _beanType, _filteredProps, _objectIdWriter, _propertyFilterId, _props, _serializationShape, _typeId, NAME_FOR_OBJECT_REF, NO_PROPS
_handledType
Modifier | +Constructor and Description | +
---|---|
|
+XmlBeanSerializerBase(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src) |
+
|
+XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.util.NameTransformer transformer) |
+
protected |
+XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
protected |
+XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
protected |
+XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ Set<String> toIgnore) |
+
Modifier and Type | +Method and Description | +
---|---|
protected static boolean |
+_isAttribute(com.fasterxml.jackson.databind.ser.BeanPropertyWriter bpw) |
+
protected static boolean |
+_isCData(com.fasterxml.jackson.databind.ser.BeanPropertyWriter bpw) |
+
protected static int |
+_orderAttributesFirst(com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties,
+ com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties)
+Method for re-sorting lists of bean properties such that attributes are strictly
+ written before elements.
+ |
+
protected void |
+_serializeObjectId(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator gen,
+ com.fasterxml.jackson.databind.SerializerProvider provider,
+ com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer,
+ com.fasterxml.jackson.databind.ser.impl.WritableObjectId objectId) |
+
protected void |
+serializeFields(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator gen0,
+ com.fasterxml.jackson.databind.SerializerProvider provider)
+Main serialization method needs to be overridden to allow XML-specific
+ extra handling, such as indication of whether to write attributes or
+ elements.
+ |
+
protected void |
+serializeFieldsFiltered(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator gen0,
+ com.fasterxml.jackson.databind.SerializerProvider provider) |
+
void |
+serializeWithType(Object bean,
+ com.fasterxml.jackson.core.JsonGenerator gen,
+ com.fasterxml.jackson.databind.SerializerProvider provider,
+ com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
+
_customTypeId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, asArraySerializer, createContextual, findConvertingSerializer, getSchema, properties, resolve, serialize, usesObjectId, withFilterId, withIgnorals, withIgnorals, withObjectIdWriter
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, replaceDelegatee, unwrappingSerializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSchema
public static final String KEY_XML_INFO+
BeanPropertyWriter
+ instances; to mark instances that are to be written out as attributes.
+ Created as separate non-interned String to ensure there are no collisions.protected final int _attributeCount+
protected final int _textPropertyIndex+
protected final QName[] _xmlNames+
protected final BitSet _cdata+
public XmlBeanSerializerBase(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src)+
protected XmlBeanSerializerBase(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)+
protected XmlBeanSerializerBase(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, + Object filterId)+
protected XmlBeanSerializerBase(XmlBeanSerializerBase src, + Set<String> toIgnore)+
public XmlBeanSerializerBase(XmlBeanSerializerBase src, + com.fasterxml.jackson.databind.util.NameTransformer transformer)+
protected void serializeFields(Object bean, + com.fasterxml.jackson.core.JsonGenerator gen0, + com.fasterxml.jackson.databind.SerializerProvider provider) + throws IOException+
serializeFields
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
protected void serializeFieldsFiltered(Object bean, + com.fasterxml.jackson.core.JsonGenerator gen0, + com.fasterxml.jackson.databind.SerializerProvider provider) + throws IOException+
serializeFieldsFiltered
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
public void serializeWithType(Object bean, + com.fasterxml.jackson.core.JsonGenerator gen, + com.fasterxml.jackson.databind.SerializerProvider provider, + com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) + throws IOException+
serializeWithType
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
protected void _serializeObjectId(Object bean, + com.fasterxml.jackson.core.JsonGenerator gen, + com.fasterxml.jackson.databind.SerializerProvider provider, + com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer, + com.fasterxml.jackson.databind.ser.impl.WritableObjectId objectId) + throws IOException+
_serializeObjectId
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
protected static boolean _isAttribute(com.fasterxml.jackson.databind.ser.BeanPropertyWriter bpw)+
protected static boolean _isCData(com.fasterxml.jackson.databind.ser.BeanPropertyWriter bpw)+
protected static int _orderAttributesFirst(com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties, + com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerModifier.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerModifier.html new file mode 100644 index 000000000..4dc4ac174 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerModifier.html @@ -0,0 +1,331 @@ + + + + + + +public class XmlBeanSerializerModifier +extends com.fasterxml.jackson.databind.ser.BeanSerializerModifier +implements Serializable+
BeanSerializerModifier
to replace default BeanSerializer
+ with XML-specific one; mostly to ensure that attribute properties are output
+ before element properties.Constructor and Description | +
---|
XmlBeanSerializerModifier() |
+
Modifier and Type | +Method and Description | +
---|---|
List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> |
+changeProperties(com.fasterxml.jackson.databind.SerializationConfig config,
+ com.fasterxml.jackson.databind.BeanDescription beanDesc,
+ List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> beanProperties)
+First thing to do is to find annotations regarding XML serialization,
+ and wrap collection serializers.
+ |
+
com.fasterxml.jackson.databind.JsonSerializer<?> |
+modifySerializer(com.fasterxml.jackson.databind.SerializationConfig config,
+ com.fasterxml.jackson.databind.BeanDescription beanDesc,
+ com.fasterxml.jackson.databind.JsonSerializer<?> serializer) |
+
modifyArraySerializer, modifyCollectionLikeSerializer, modifyCollectionSerializer, modifyEnumSerializer, modifyKeySerializer, modifyMapLikeSerializer, modifyMapSerializer, orderProperties, updateBuilder
public XmlBeanSerializerModifier()+
public List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> changeProperties(com.fasterxml.jackson.databind.SerializationConfig config, + com.fasterxml.jackson.databind.BeanDescription beanDesc, + List<com.fasterxml.jackson.databind.ser.BeanPropertyWriter> beanProperties)+
changeProperties
in class com.fasterxml.jackson.databind.ser.BeanSerializerModifier
public com.fasterxml.jackson.databind.JsonSerializer<?> modifySerializer(com.fasterxml.jackson.databind.SerializationConfig config, + com.fasterxml.jackson.databind.BeanDescription beanDesc, + com.fasterxml.jackson.databind.JsonSerializer<?> serializer)+
modifySerializer
in class com.fasterxml.jackson.databind.ser.BeanSerializerModifier
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlSerializerProvider.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlSerializerProvider.html new file mode 100644 index 000000000..26adb981b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/XmlSerializerProvider.html @@ -0,0 +1,614 @@ + + + + + + +public class XmlSerializerProvider
+extends com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
+SerializerProvider
+ implementation to handle oddities of XML output, like "extra" root element.com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.Impl
Modifier and Type | +Field and Description | +
---|---|
protected XmlRootNameLookup |
+_rootNameLookup |
+
protected static QName |
+ROOT_NAME_FOR_NULL
+If all we get to serialize is a null, there's no way to figure out
+ expected root name; so let's just default to something like "<null>"...
+ |
+
_generator, _objectIdGenerators, _seenObjectIds
_attributes, _config, _dateFormat, _keySerializer, _knownSerializers, _nullKeySerializer, _nullValueSerializer, _serializationView, _serializerCache, _serializerFactory, _stdNullValueSerializer, _unknownTypeSerializer, CACHE_UNKNOWN_MAPPINGS, DEFAULT_NULL_KEY_SERIALIZER, DEFAULT_UNKNOWN_SERIALIZER
Modifier | +Constructor and Description | +
---|---|
|
+XmlSerializerProvider(XmlRootNameLookup rootNames) |
+
protected |
+XmlSerializerProvider(XmlSerializerProvider src) |
+
|
+XmlSerializerProvider(XmlSerializerProvider src,
+ com.fasterxml.jackson.databind.SerializationConfig config,
+ com.fasterxml.jackson.databind.ser.SerializerFactory f) |
+
Modifier and Type | +Method and Description | +
---|---|
protected ToXmlGenerator |
+_asXmlGenerator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
protected void |
+_initWithRootName(ToXmlGenerator xgen,
+ QName rootName) |
+
protected QName |
+_rootNameFromConfig() |
+
protected void |
+_serializeXmlNull(com.fasterxml.jackson.core.JsonGenerator jgen) |
+
protected void |
+_startRootArray(ToXmlGenerator xgen,
+ QName rootName) |
+
protected IOException |
+_wrapAsIOE(com.fasterxml.jackson.core.JsonGenerator g,
+ Exception e) |
+
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider |
+copy() |
+
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider |
+createInstance(com.fasterxml.jackson.databind.SerializationConfig config,
+ com.fasterxml.jackson.databind.ser.SerializerFactory jsf) |
+
void |
+serializeValue(com.fasterxml.jackson.core.JsonGenerator gen,
+ Object value) |
+
void |
+serializeValue(com.fasterxml.jackson.core.JsonGenerator gen,
+ Object value,
+ com.fasterxml.jackson.databind.JavaType rootType,
+ com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
+
_createObjectIdMap, _serializeNull, acceptJsonFormatVisitor, cachedSerializersCount, findObjectId, flushCachedSerializers, generateJsonSchema, getGenerator, hasSerializerFor, includeFilterInstance, includeFilterSuppressNulls, serializePolymorphic, serializerInstance, serializeValue
_createAndCacheUntypedSerializer, _createAndCacheUntypedSerializer, _createUntypedSerializer, _dateFormat, _findExplicitUntypedSerializer, _handleContextualResolvable, _handleResolvable, _reportIncompatibleRootType, canOverrideAccessModifiers, defaultSerializeDateKey, defaultSerializeDateKey, defaultSerializeDateValue, defaultSerializeDateValue, defaultSerializeField, defaultSerializeNull, defaultSerializeValue, findKeySerializer, findKeySerializer, findNullKeySerializer, findNullValueSerializer, findPrimaryPropertySerializer, findPrimaryPropertySerializer, findTypedValueSerializer, findTypedValueSerializer, findTypeSerializer, findValueSerializer, findValueSerializer, findValueSerializer, findValueSerializer, getActiveView, getAnnotationIntrospector, getAttribute, getConfig, getDefaultNullKeySerializer, getDefaultNullValueSerializer, getDefaultPropertyFormat, getDefaultPropertyInclusion, getFilterProvider, getLocale, getSerializationView, getTimeZone, getTypeFactory, getUnknownTypeSerializer, handlePrimaryContextualization, handleSecondaryContextualization, hasSerializationFeatures, invalidTypeIdException, isEnabled, isEnabled, isUnknownTypeSerializer, mappingException, mappingException, reportBadDefinition, reportBadDefinition, reportBadDefinition, reportBadPropertyDefinition, reportBadTypeDefinition, reportMappingProblem, reportMappingProblem, setAttribute, setDefaultKeySerializer, setNullKeySerializer, setNullValueSerializer
_colonConcat, _desc, _format, _quotedString, _throwNotASubtype, _throwSubtypeClassNotAllowed, _throwSubtypeNameNotAllowed, _truncate, constructSpecializedType, constructType, converterInstance, objectIdGeneratorInstance, objectIdResolverInstance, reportBadDefinition, resolveAndValidateSubType, resolveSubType
protected static final QName ROOT_NAME_FOR_NULL+
protected final XmlRootNameLookup _rootNameLookup+
public XmlSerializerProvider(XmlRootNameLookup rootNames)+
public XmlSerializerProvider(XmlSerializerProvider src, + com.fasterxml.jackson.databind.SerializationConfig config, + com.fasterxml.jackson.databind.ser.SerializerFactory f)+
protected XmlSerializerProvider(XmlSerializerProvider src)+
public com.fasterxml.jackson.databind.ser.DefaultSerializerProvider copy()+
copy
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
public com.fasterxml.jackson.databind.ser.DefaultSerializerProvider createInstance(com.fasterxml.jackson.databind.SerializationConfig config, + com.fasterxml.jackson.databind.ser.SerializerFactory jsf)+
createInstance
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, + Object value) + throws IOException+
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, + Object value, + com.fasterxml.jackson.databind.JavaType rootType, + com.fasterxml.jackson.databind.JsonSerializer<Object> ser) + throws IOException+
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
protected void _serializeXmlNull(com.fasterxml.jackson.core.JsonGenerator jgen) + throws IOException+
IOException
protected void _startRootArray(ToXmlGenerator xgen, + QName rootName) + throws IOException+
IOException
protected void _initWithRootName(ToXmlGenerator xgen, + QName rootName) + throws IOException+
IOException
protected QName _rootNameFromConfig()+
protected ToXmlGenerator _asXmlGenerator(com.fasterxml.jackson.core.JsonGenerator gen) + throws com.fasterxml.jackson.databind.JsonMappingException+
com.fasterxml.jackson.databind.JsonMappingException
protected IOException _wrapAsIOE(com.fasterxml.jackson.core.JsonGenerator g, + Exception e)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.Feature.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.Feature.html new file mode 100644 index 000000000..c61c2fdbc --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.Feature.html @@ -0,0 +1,320 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Modifier and Type | +Method and Description | +
---|---|
Class<ToXmlGenerator.Feature> |
+XmlFactory.getFormatWriteFeatureType() |
+
Modifier and Type | +Method and Description | +
---|---|
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
XmlMapper.Builder |
+XmlMapper.Builder.configure(ToXmlGenerator.Feature feature,
+ boolean state) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
XmlFactory |
+XmlFactory.configure(ToXmlGenerator.Feature f,
+ boolean state)
+Method for enabling or disabling specified XML generator feature.
+ |
+
XmlMapper.Builder |
+XmlMapper.Builder.disable(ToXmlGenerator.Feature... features) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.disable(ToXmlGenerator.Feature f) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(ToXmlGenerator.Feature f) |
+
XmlFactory |
+XmlFactory.disable(ToXmlGenerator.Feature f)
+Method for disabling specified XML generator feature.
+ |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(ToXmlGenerator.Feature first,
+ ToXmlGenerator.Feature... other) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.disable(ToXmlGenerator.Feature first,
+ ToXmlGenerator.Feature... other) |
+
XmlMapper.Builder |
+XmlMapper.Builder.enable(ToXmlGenerator.Feature... features) |
+
com.fasterxml.jackson.databind.ObjectMapper |
+XmlMapper.enable(ToXmlGenerator.Feature f) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(ToXmlGenerator.Feature f) |
+
XmlFactory |
+XmlFactory.enable(ToXmlGenerator.Feature f)
+Method for enabling specified XML generator feature.
+ |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(ToXmlGenerator.Feature first,
+ ToXmlGenerator.Feature... other) |
+
XmlFactoryBuilder |
+XmlFactoryBuilder.enable(ToXmlGenerator.Feature first,
+ ToXmlGenerator.Feature... other) |
+
boolean |
+XmlFactory.isEnabled(ToXmlGenerator.Feature f)
+Check whether specified XML generator feature is enabled.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static ToXmlGenerator.Feature |
+ToXmlGenerator.Feature.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static ToXmlGenerator.Feature[] |
+ToXmlGenerator.Feature.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
ToXmlGenerator |
+ToXmlGenerator.configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
ToXmlGenerator |
+ToXmlGenerator.disable(ToXmlGenerator.Feature f) |
+
ToXmlGenerator |
+ToXmlGenerator.enable(ToXmlGenerator.Feature f) |
+
boolean |
+ToXmlGenerator.isEnabled(ToXmlGenerator.Feature f) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.html new file mode 100644 index 000000000..88e123ab1 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.html @@ -0,0 +1,246 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Modifier and Type | +Method and Description | +
---|---|
ToXmlGenerator |
+XmlFactory.createGenerator(File f,
+ com.fasterxml.jackson.core.JsonEncoding enc) |
+
ToXmlGenerator |
+XmlFactory.createGenerator(OutputStream out) |
+
ToXmlGenerator |
+XmlFactory.createGenerator(OutputStream out,
+ com.fasterxml.jackson.core.JsonEncoding enc) |
+
ToXmlGenerator |
+XmlFactory.createGenerator(Writer out) |
+
ToXmlGenerator |
+XmlFactory.createGenerator(XMLStreamWriter sw)
+Factory method that wraps given
+XMLStreamWriter , usually to allow
+ incremental serialization to compose large output by serializing a sequence
+ of individual objects. |
+
Modifier and Type | +Method and Description | +
---|---|
protected ToXmlGenerator |
+XmlSerializerProvider._asXmlGenerator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
ToXmlGenerator |
+ToXmlGenerator.configure(ToXmlGenerator.Feature f,
+ boolean state) |
+
ToXmlGenerator |
+ToXmlGenerator.disable(ToXmlGenerator.Feature f) |
+
ToXmlGenerator |
+ToXmlGenerator.enable(ToXmlGenerator.Feature f) |
+
Modifier and Type | +Method and Description | +
---|---|
protected void |
+XmlSerializerProvider._initWithRootName(ToXmlGenerator xgen,
+ QName rootName) |
+
protected void |
+XmlSerializerProvider._startRootArray(ToXmlGenerator xgen,
+ QName rootName) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/UnwrappingXmlBeanSerializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/UnwrappingXmlBeanSerializer.html new file mode 100644 index 000000000..eed06d501 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/UnwrappingXmlBeanSerializer.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Constructor and Description | +
---|
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
+ Set<String> toIgnore) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanPropertyWriter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanPropertyWriter.html new file mode 100644 index 000000000..1afe6b6aa --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanPropertyWriter.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializer.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializer.html new file mode 100644 index 000000000..fdc08c99c --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerBase.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerBase.html new file mode 100644 index 000000000..cba636b12 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerBase.html @@ -0,0 +1,220 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+UnwrappingXmlBeanSerializer
+Copy of
+UnwrappingBeanSerializer required to extend
+ XmlBeanSerializerBase for XML-specific handling. |
+
class |
+XmlBeanSerializer
+Variant of
+BeanSerializer for XML handling. |
+
Constructor and Description | +
---|
UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.util.NameTransformer transformer)
+Constructor used for creating unwrapping instance of a standard
+
+BeanSerializer |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
XmlBeanSerializer(XmlBeanSerializerBase src,
+ Set<String> toIgnore) |
+
XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.util.NameTransformer transformer) |
+
XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
+
XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
+ Object filterId) |
+
XmlBeanSerializerBase(XmlBeanSerializerBase src,
+ Set<String> toIgnore) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerModifier.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerModifier.html new file mode 100644 index 000000000..51dc068b5 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerModifier.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlSerializerProvider.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlSerializerProvider.html new file mode 100644 index 000000000..ebd49782d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlSerializerProvider.html @@ -0,0 +1,169 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Constructor and Description | +
---|
XmlSerializerProvider(XmlSerializerProvider src) |
+
XmlSerializerProvider(XmlSerializerProvider src,
+ com.fasterxml.jackson.databind.SerializationConfig config,
+ com.fasterxml.jackson.databind.ser.SerializerFactory f) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-frame.html new file mode 100644 index 000000000..3b38077f2 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-frame.html @@ -0,0 +1,31 @@ + + + + + + +Class | +Description | +
---|---|
ToXmlGenerator | +
+JsonGenerator that outputs JAXB-style XML output instead of JSON content. |
+
UnwrappingXmlBeanSerializer | +
+ Copy of
+UnwrappingBeanSerializer required to extend
+ XmlBeanSerializerBase for XML-specific handling. |
+
XmlBeanPropertyWriter | +
+ Property writer sub-class used for handling element wrapping needed for serializing
+ collection (array, Collection; possibly Map) types.
+ |
+
XmlBeanSerializer | +
+ Variant of
+BeanSerializer for XML handling. |
+
XmlBeanSerializerBase | +
+ Specific sub-class of
+BeanSerializerBase needed to take care
+ of some xml-specific aspects, such as distinction between attributes
+ and elements. |
+
XmlBeanSerializerModifier | +
+ We need a
+BeanSerializerModifier to replace default BeanSerializer
+ with XML-specific one; mostly to ensure that attribute properties are output
+ before element properties. |
+
XmlSerializerProvider | +
+ We need to override some parts of
+
+SerializerProvider
+ implementation to handle oddities of XML output, like "extra" root element. |
+
Enum | +Description | +
---|---|
ToXmlGenerator.Feature | +
+ Enumeration that defines all togglable extra XML-specific features
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-tree.html new file mode 100644 index 000000000..1e5f98de8 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-tree.html @@ -0,0 +1,208 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-use.html new file mode 100644 index 000000000..134fd3cfc --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/ser/package-use.html @@ -0,0 +1,216 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Class and Description | +
---|
ToXmlGenerator
+JsonGenerator that outputs JAXB-style XML output instead of JSON content. |
+
ToXmlGenerator.Feature
+ Enumeration that defines all togglable extra XML-specific features
+ |
+
Class and Description | +
---|
ToXmlGenerator
+JsonGenerator that outputs JAXB-style XML output instead of JSON content. |
+
ToXmlGenerator.Feature
+ Enumeration that defines all togglable extra XML-specific features
+ |
+
UnwrappingXmlBeanSerializer
+ Copy of
+UnwrappingBeanSerializer required to extend
+ XmlBeanSerializerBase for XML-specific handling. |
+
XmlBeanSerializerBase
+ Specific sub-class of
+BeanSerializerBase needed to take care
+ of some xml-specific aspects, such as distinction between attributes
+ and elements. |
+
XmlSerializerProvider
+ We need to override some parts of
+
+SerializerProvider
+ implementation to handle oddities of XML output, like "extra" root element. |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/AnnotationUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/AnnotationUtil.html new file mode 100644 index 000000000..d59589ee0 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/AnnotationUtil.html @@ -0,0 +1,320 @@ + + + + + + +public class AnnotationUtil +extends Object+
Constructor and Description | +
---|
AnnotationUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static Boolean |
+findIsAttributeAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai,
+ com.fasterxml.jackson.databind.introspect.AnnotatedMember prop) |
+
static Boolean |
+findIsCDataAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai,
+ com.fasterxml.jackson.databind.introspect.AnnotatedMember prop) |
+
static Boolean |
+findIsTextAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai,
+ com.fasterxml.jackson.databind.introspect.AnnotatedMember prop) |
+
static String |
+findNamespaceAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai,
+ com.fasterxml.jackson.databind.introspect.AnnotatedMember prop) |
+
public static String findNamespaceAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai, + com.fasterxml.jackson.databind.introspect.AnnotatedMember prop)+
public static Boolean findIsAttributeAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai, + com.fasterxml.jackson.databind.introspect.AnnotatedMember prop)+
public static Boolean findIsTextAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai, + com.fasterxml.jackson.databind.introspect.AnnotatedMember prop)+
public static Boolean findIsCDataAnnotation(com.fasterxml.jackson.databind.AnnotationIntrospector ai, + com.fasterxml.jackson.databind.introspect.AnnotatedMember prop)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html new file mode 100644 index 000000000..774a9925c --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html @@ -0,0 +1,340 @@ + + + + + + +protected static class DefaultXmlPrettyPrinter.FixedSpaceIndenter +extends Object +implements DefaultXmlPrettyPrinter.Indenter, Serializable+
Constructor and Description | +
---|
FixedSpaceIndenter() |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isInline() |
+
void |
+writeIndentation(com.fasterxml.jackson.core.JsonGenerator g,
+ int level) |
+
void |
+writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int level) |
+
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, + int level) + throws XMLStreamException+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
XMLStreamException
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator g, + int level) + throws IOException+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
IOException
public boolean isInline()+
isInline
in interface DefaultXmlPrettyPrinter.Indenter
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Indenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Indenter.html new file mode 100644 index 000000000..a74fe1f5c --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Indenter.html @@ -0,0 +1,280 @@ + + + + + + +public static interface DefaultXmlPrettyPrinter.Indenter
+Modifier and Type | +Method and Description | +
---|---|
boolean |
+isInline() |
+
void |
+writeIndentation(com.fasterxml.jackson.core.JsonGenerator g,
+ int level) |
+
void |
+writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int level) |
+
void writeIndentation(com.fasterxml.jackson.core.JsonGenerator g, + int level) + throws IOException+
IOException
void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, + int level) + throws XMLStreamException+
XMLStreamException
boolean isInline()+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html new file mode 100644 index 000000000..b13650c78 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html @@ -0,0 +1,339 @@ + + + + + + +protected static class DefaultXmlPrettyPrinter.Lf2SpacesIndenter +extends Object +implements DefaultXmlPrettyPrinter.Indenter, Serializable+
Constructor and Description | +
---|
Lf2SpacesIndenter() |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isInline() |
+
void |
+writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg,
+ int level) |
+
void |
+writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int level) |
+
public boolean isInline()+
isInline
in interface DefaultXmlPrettyPrinter.Indenter
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, + int level) + throws XMLStreamException+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
XMLStreamException
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, + int level) + throws IOException+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.NopIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.NopIndenter.html new file mode 100644 index 000000000..6cb0eba60 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.NopIndenter.html @@ -0,0 +1,332 @@ + + + + + + +protected static class DefaultXmlPrettyPrinter.NopIndenter +extends Object +implements DefaultXmlPrettyPrinter.Indenter, Serializable+
Constructor and Description | +
---|
NopIndenter() |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isInline() |
+
void |
+writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg,
+ int level) |
+
void |
+writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int level) |
+
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, + int level)+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
public boolean isInline()+
isInline
in interface DefaultXmlPrettyPrinter.Indenter
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, + int level)+
writeIndentation
in interface DefaultXmlPrettyPrinter.Indenter
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.html new file mode 100644 index 000000000..d620f1425 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/DefaultXmlPrettyPrinter.html @@ -0,0 +1,1105 @@ + + + + + + +public class DefaultXmlPrettyPrinter +extends Object +implements XmlPrettyPrinter, com.fasterxml.jackson.core.util.Instantiatable<DefaultXmlPrettyPrinter>, Serializable+
+ Note that only a subset of methods of PrettyPrinter
actually
+ get called by ToXmlGenerator
; because of this, implementation
+ is bit briefer (and uglier...).
Modifier and Type | +Class and Description | +
---|---|
protected static class |
+DefaultXmlPrettyPrinter.FixedSpaceIndenter
+This is a very simple indenter that only every adds a
+ single space for indentation.
+ |
+
static interface |
+DefaultXmlPrettyPrinter.Indenter
+Interface that defines objects that can produce indentation used
+ to separate object entries and array values.
+ |
+
protected static class |
+DefaultXmlPrettyPrinter.Lf2SpacesIndenter
+Default linefeed-based indenter uses system-specific linefeeds and
+ 2 spaces for indentation per level.
+ |
+
protected static class |
+DefaultXmlPrettyPrinter.NopIndenter
+Dummy implementation that adds no indentation whatsoever
+ |
+
Modifier and Type | +Field and Description | +
---|---|
protected DefaultXmlPrettyPrinter.Indenter |
+_arrayIndenter
+By default, let's use only spaces to separate array values.
+ |
+
protected boolean |
+_justHadStartElement
+Marker flag set on start element, and cleared if an end element
+ is encountered.
+ |
+
protected int |
+_nesting
+Number of open levels of nesting.
+ |
+
protected DefaultXmlPrettyPrinter.Indenter |
+_objectIndenter
+By default, let's use linefeed-adding indenter for separate
+ object entries.
+ |
+
protected boolean |
+_spacesInObjectEntries
+By default we will add spaces around colons used to
+ separate object fields and values.
+ |
+
DEFAULT_ROOT_VALUE_SEPARATOR, DEFAULT_SEPARATORS
Modifier | +Constructor and Description | +
---|---|
|
+DefaultXmlPrettyPrinter() |
+
protected |
+DefaultXmlPrettyPrinter(DefaultXmlPrettyPrinter base) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+beforeArrayValues(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+beforeObjectEntries(com.fasterxml.jackson.core.JsonGenerator gen) |
+
DefaultXmlPrettyPrinter |
+createInstance() |
+
void |
+indentArraysWith(DefaultXmlPrettyPrinter.Indenter i) |
+
void |
+indentObjectsWith(DefaultXmlPrettyPrinter.Indenter i) |
+
void |
+spacesInObjectEntries(boolean b) |
+
void |
+writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+writeEndArray(com.fasterxml.jackson.core.JsonGenerator gen,
+ int nrOfValues) |
+
void |
+writeEndElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ int nrOfEntries)
+Method for forcibly writing an end element, without going
+ through Jackson generator (and thus, without updating currently
+ active element stack)
+ |
+
void |
+writeEndObject(com.fasterxml.jackson.core.JsonGenerator gen,
+ int nrOfEntries) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ BigDecimal value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ BigInteger value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ boolean value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ byte[] data,
+ int offset,
+ int len) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ char[] buffer,
+ int offset,
+ int len,
+ boolean isCData) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ double value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ float value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ int value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ long value) |
+
void |
+writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName,
+ String text,
+ boolean isCData) |
+
void |
+writeLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName) |
+
void |
+writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+writeObjectFieldValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+writePrologLinefeed(org.codehaus.stax2.XMLStreamWriter2 sw)
+Method for trying to write a linefeed to separate entities outside of the
+ root element (that is, in prolog or epilog), most often called to separate
+ XML declaration from the root element.
+ |
+
void |
+writeRootValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+writeStartArray(com.fasterxml.jackson.core.JsonGenerator gen) |
+
void |
+writeStartElement(org.codehaus.stax2.XMLStreamWriter2 sw,
+ String nsURI,
+ String localName)
+Method for forcibly writing a start element, without going
+ through Jackson generator (and thus, without updating currently
+ active element stack)
+ |
+
void |
+writeStartObject(com.fasterxml.jackson.core.JsonGenerator gen) |
+
protected DefaultXmlPrettyPrinter.Indenter _arrayIndenter+
protected DefaultXmlPrettyPrinter.Indenter _objectIndenter+
protected boolean _spacesInObjectEntries+
protected transient int _nesting+
protected transient boolean _justHadStartElement+
public DefaultXmlPrettyPrinter()+
protected DefaultXmlPrettyPrinter(DefaultXmlPrettyPrinter base)+
public void indentArraysWith(DefaultXmlPrettyPrinter.Indenter i)+
public void indentObjectsWith(DefaultXmlPrettyPrinter.Indenter i)+
public void spacesInObjectEntries(boolean b)+
public DefaultXmlPrettyPrinter createInstance()+
createInstance
in interface com.fasterxml.jackson.core.util.Instantiatable<DefaultXmlPrettyPrinter>
public void writeRootValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeRootValueSeparator
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void beforeArrayValues(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
beforeArrayValues
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeStartArray(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeStartArray
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeArrayValueSeparator
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeEndArray(com.fasterxml.jackson.core.JsonGenerator gen, + int nrOfValues) + throws IOException+
writeEndArray
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void beforeObjectEntries(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException, + com.fasterxml.jackson.core.JsonGenerationException+
beforeObjectEntries
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeStartObject(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeStartObject
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeObjectEntrySeparator
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeObjectFieldValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) + throws IOException+
writeObjectFieldValueSeparator
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeEndObject(com.fasterxml.jackson.core.JsonGenerator gen, + int nrOfEntries) + throws IOException+
writeEndObject
in interface com.fasterxml.jackson.core.PrettyPrinter
IOException
public void writeStartElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName) + throws XMLStreamException+
XmlPrettyPrinter
writeStartElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeEndElement(org.codehaus.stax2.XMLStreamWriter2 sw, + int nrOfEntries) + throws XMLStreamException+
XmlPrettyPrinter
writeEndElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + String text, + boolean isCData) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + char[] buffer, + int offset, + int len, + boolean isCData) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + boolean value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + int value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + long value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + double value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + float value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + BigInteger value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + BigDecimal value) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName, + byte[] data, + int offset, + int len) + throws XMLStreamException+
writeLeafElement
in interface XmlPrettyPrinter
XMLStreamException
public void writeLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw, + String nsURI, + String localName) + throws XMLStreamException+
writeLeafNullElement
in interface XmlPrettyPrinter
XMLStreamException
public void writePrologLinefeed(org.codehaus.stax2.XMLStreamWriter2 sw) + throws XMLStreamException+
XmlPrettyPrinter
writePrologLinefeed
in interface XmlPrettyPrinter
XMLStreamException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/StaxUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/StaxUtil.html new file mode 100644 index 000000000..20d7aa41c --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/StaxUtil.html @@ -0,0 +1,352 @@ + + + + + + +public class StaxUtil +extends Object+
Modifier and Type | +Method and Description | +
---|---|
static String |
+sanitizeXmlTypeName(String name)
+Since XML names can not contain all characters JSON names can, we may
+ need to replace characters.
+ |
+
static <T> T |
+throwAsGenerationException(XMLStreamException e,
+ com.fasterxml.jackson.core.JsonGenerator g) |
+
static <T> T |
+throwAsParseException(XMLStreamException e,
+ com.fasterxml.jackson.core.JsonParser p) |
+
static <T> T |
+throwXmlAsIOException(XMLStreamException e)
+Deprecated.
+
+Since 2.9
+ |
+
@Deprecated +public static <T> T throwXmlAsIOException(XMLStreamException e) + throws IOException+
XMLStreamException
was caught.
++ Note: dummy type variable is used for convenience, to allow caller to claim + that this method returns result of any necessary type.
IOException
public static <T> T throwAsParseException(XMLStreamException e, + com.fasterxml.jackson.core.JsonParser p) + throws IOException+
IOException
public static <T> T throwAsGenerationException(XMLStreamException e, + com.fasterxml.jackson.core.JsonGenerator g) + throws IOException+
IOException
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/TypeUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/TypeUtil.html new file mode 100644 index 000000000..bfa7b7a08 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/TypeUtil.html @@ -0,0 +1,291 @@ + + + + + + +public class TypeUtil +extends Object+
Modifier and Type | +Method and Description | +
---|---|
static boolean |
+isIndexedType(Class<?> cls) |
+
static boolean |
+isIndexedType(com.fasterxml.jackson.databind.JavaType type)
+Helper method used for figuring out if given raw type is a collection ("indexed") type;
+ in which case a wrapper element is typically added.
+ |
+
public static boolean isIndexedType(com.fasterxml.jackson.databind.JavaType type)+
public static boolean isIndexedType(Class<?> cls)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlInfo.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlInfo.html new file mode 100644 index 000000000..4e64d3a7d --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlInfo.html @@ -0,0 +1,395 @@ + + + + + + +public class XmlInfo +extends Object+
Modifier and Type | +Field and Description | +
---|---|
protected boolean |
+_isAttribute |
+
protected boolean |
+_isCData |
+
protected boolean |
+_isText |
+
protected String |
+_namespace |
+
Constructor and Description | +
---|
XmlInfo(Boolean isAttribute,
+ String ns,
+ Boolean isText,
+ Boolean isCData) |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+getNamespace() |
+
boolean |
+isAttribute() |
+
boolean |
+isCData() |
+
boolean |
+isText() |
+
protected final String _namespace+
protected final boolean _isAttribute+
protected final boolean _isText+
protected final boolean _isCData+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlRootNameLookup.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlRootNameLookup.html new file mode 100644 index 000000000..826a73b1b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/XmlRootNameLookup.html @@ -0,0 +1,373 @@ + + + + + + +public class XmlRootNameLookup +extends Object +implements Serializable+
Modifier and Type | +Field and Description | +
---|---|
protected com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.jackson.databind.type.ClassKey,QName> |
+_rootNames
+For efficient operation, let's try to minimize number of times we
+ need to introspect root element name to use.
+ |
+
Constructor and Description | +
---|
XmlRootNameLookup() |
+
Modifier and Type | +Method and Description | +
---|---|
protected QName |
+_findRootName(Class<?> rootType,
+ com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
+
QName |
+findRootName(Class<?> rootType,
+ com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
+
QName |
+findRootName(com.fasterxml.jackson.databind.JavaType rootType,
+ com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
+
protected Object |
+readResolve() |
+
protected final transient com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.jackson.databind.type.ClassKey,QName> _rootNames+
+ Note: changed to transient
for 2.3; no point in serializing such
+ state
protected Object readResolve()+
public QName findRootName(com.fasterxml.jackson.databind.JavaType rootType, + com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)+
public QName findRootName(Class<?> rootType, + com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/AnnotationUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/AnnotationUtil.html new file mode 100644 index 000000000..7df74fb64 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/AnnotationUtil.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html new file mode 100644 index 000000000..fef07aa8b --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.FixedSpaceIndenter.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Indenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Indenter.html new file mode 100644 index 000000000..bce82deec --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Indenter.html @@ -0,0 +1,221 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.util | ++ |
Modifier and Type | +Class and Description | +
---|---|
protected static class |
+DefaultXmlPrettyPrinter.FixedSpaceIndenter
+This is a very simple indenter that only every adds a
+ single space for indentation.
+ |
+
protected static class |
+DefaultXmlPrettyPrinter.Lf2SpacesIndenter
+Default linefeed-based indenter uses system-specific linefeeds and
+ 2 spaces for indentation per level.
+ |
+
protected static class |
+DefaultXmlPrettyPrinter.NopIndenter
+Dummy implementation that adds no indentation whatsoever
+ |
+
Modifier and Type | +Field and Description | +
---|---|
protected DefaultXmlPrettyPrinter.Indenter |
+DefaultXmlPrettyPrinter._arrayIndenter
+By default, let's use only spaces to separate array values.
+ |
+
protected DefaultXmlPrettyPrinter.Indenter |
+DefaultXmlPrettyPrinter._objectIndenter
+By default, let's use linefeed-adding indenter for separate
+ object entries.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+DefaultXmlPrettyPrinter.indentArraysWith(DefaultXmlPrettyPrinter.Indenter i) |
+
void |
+DefaultXmlPrettyPrinter.indentObjectsWith(DefaultXmlPrettyPrinter.Indenter i) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html new file mode 100644 index 000000000..3eceb01b5 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.Lf2SpacesIndenter.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.NopIndenter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.NopIndenter.html new file mode 100644 index 000000000..ae3d83820 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.NopIndenter.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.html new file mode 100644 index 000000000..5dd677998 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/DefaultXmlPrettyPrinter.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.util | ++ |
Modifier and Type | +Field and Description | +
---|---|
protected static DefaultXmlPrettyPrinter |
+XmlMapper.DEFAULT_XML_PRETTY_PRINTER |
+
Modifier and Type | +Method and Description | +
---|---|
DefaultXmlPrettyPrinter |
+DefaultXmlPrettyPrinter.createInstance() |
+
Constructor and Description | +
---|
DefaultXmlPrettyPrinter(DefaultXmlPrettyPrinter base) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/StaxUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/StaxUtil.html new file mode 100644 index 000000000..14e4fbaf9 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/StaxUtil.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/TypeUtil.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/TypeUtil.html new file mode 100644 index 000000000..32b74fdd0 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/TypeUtil.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlInfo.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlInfo.html new file mode 100644 index 000000000..3df34b702 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlInfo.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlRootNameLookup.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlRootNameLookup.html new file mode 100644 index 000000000..63eb3d9af --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/class-use/XmlRootNameLookup.html @@ -0,0 +1,177 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml.ser | ++ |
Modifier and Type | +Field and Description | +
---|---|
protected XmlRootNameLookup |
+XmlSerializerProvider._rootNameLookup |
+
Constructor and Description | +
---|
XmlSerializerProvider(XmlRootNameLookup rootNames) |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-frame.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-frame.html new file mode 100644 index 000000000..8c5557f63 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-frame.html @@ -0,0 +1,33 @@ + + + + + + +Interface | +Description | +
---|---|
DefaultXmlPrettyPrinter.Indenter | +
+ Interface that defines objects that can produce indentation used
+ to separate object entries and array values.
+ |
+
Class | +Description | +
---|---|
AnnotationUtil | ++ |
DefaultXmlPrettyPrinter | +
+ Indentation to use with XML is different from JSON, because JSON
+ requires use of separator characters and XML just basic whitespace.
+ |
+
DefaultXmlPrettyPrinter.FixedSpaceIndenter | +
+ This is a very simple indenter that only every adds a
+ single space for indentation.
+ |
+
DefaultXmlPrettyPrinter.Lf2SpacesIndenter | +
+ Default linefeed-based indenter uses system-specific linefeeds and
+ 2 spaces for indentation per level.
+ |
+
DefaultXmlPrettyPrinter.NopIndenter | +
+ Dummy implementation that adds no indentation whatsoever
+ |
+
StaxUtil | ++ |
TypeUtil | ++ |
XmlInfo | +
+ Helper container class used to contain XML specific information
+ we need to retain to construct proper bean serializer
+ |
+
XmlRootNameLookup | +
+ Helper class used for efficiently finding root element name used with
+ XML serializations.
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-tree.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-tree.html new file mode 100644 index 000000000..30d57fd9a --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-tree.html @@ -0,0 +1,151 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-use.html b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-use.html new file mode 100644 index 000000000..b44cf2741 --- /dev/null +++ b/docs/javadoc/2.10/com/fasterxml/jackson/dataformat/xml/util/package-use.html @@ -0,0 +1,216 @@ + + + + + + +Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.ser | ++ |
com.fasterxml.jackson.dataformat.xml.util | ++ |
Class and Description | +
---|
DefaultXmlPrettyPrinter
+ Indentation to use with XML is different from JSON, because JSON
+ requires use of separator characters and XML just basic whitespace.
+ |
+
Class and Description | +
---|
XmlRootNameLookup
+ Helper class used for efficiently finding root element name used with
+ XML serializations.
+ |
+
Class and Description | +
---|
DefaultXmlPrettyPrinter
+ Indentation to use with XML is different from JSON, because JSON
+ requires use of separator characters and XML just basic whitespace.
+ |
+
DefaultXmlPrettyPrinter.Indenter
+ Interface that defines objects that can produce indentation used
+ to separate object entries and array values.
+ |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/constant-values.html b/docs/javadoc/2.10/constant-values.html new file mode 100644 index 000000000..1d0a6e295 --- /dev/null +++ b/docs/javadoc/2.10/constant-values.html @@ -0,0 +1,298 @@ + + + + + + +Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final boolean |
+DEFAULT_USE_WRAPPER |
+true |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final String |
+FORMAT_NAME_XML |
+"XML" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final String |
+USE_PROPERTY_NAME |
+"" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final String |
+DEFAULT_UNNAMED_TEXT_PROPERTY |
+"" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final int |
+XML_ATTRIBUTE_NAME |
+3 |
+
+
+public static final int |
+XML_ATTRIBUTE_VALUE |
+4 |
+
+
+public static final int |
+XML_END |
+7 |
+
+
+public static final int |
+XML_END_ELEMENT |
+2 |
+
+
+public static final int |
+XML_NULL |
+6 |
+
+
+public static final int |
+XML_START_ELEMENT |
+1 |
+
+
+public static final int |
+XML_TEXT |
+5 |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+protected static final String |
+DEFAULT_UNKNOWN_ELEMENT |
+"unknown" |
+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/deprecated-list.html b/docs/javadoc/2.10/deprecated-list.html new file mode 100644 index 000000000..ab8835a9e --- /dev/null +++ b/docs/javadoc/2.10/deprecated-list.html @@ -0,0 +1,179 @@ + + + + + + +Method and Description | +
---|
com.fasterxml.jackson.dataformat.xml.XmlMapper.setDefaultUseWrapper(boolean)
+ Since 2.10 use
+XmlMapper.Builder.defaultUseWrapper(boolean) instead |
+
com.fasterxml.jackson.dataformat.xml.XmlMapper.setXMLTextElementName(String)
+ Since 2.10 use
+XmlMapper.Builder.nameForTextElement(String) instead |
+
com.fasterxml.jackson.dataformat.xml.util.StaxUtil.throwXmlAsIOException(XMLStreamException)
+ Since 2.9
+ |
+
Constructor and Description | +
---|
com.fasterxml.jackson.dataformat.xml.jaxb.XmlJaxbAnnotationIntrospector() | +
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/help-doc.html b/docs/javadoc/2.10/help-doc.html new file mode 100644 index 000000000..0ea9e29d0 --- /dev/null +++ b/docs/javadoc/2.10/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/index-all.html b/docs/javadoc/2.10/index-all.html new file mode 100644 index 000000000..ad94bc7fb --- /dev/null +++ b/docs/javadoc/2.10/index-all.html @@ -0,0 +1,2144 @@ + + + + + + +BeanAsArraySerializer
, otherwise will return this
+ serializer as is.JsonFactory
,
+ here the copy will actually share underlying XML input and
+ output factories, as there is no way to make copies of those.XMLStreamWriter
, usually to allow
+ incremental serialization to compose large output by serializing a sequence
+ of individual objects.XMLStreamReader
, usually to allow
+ partial data-binding.StdTypeResolverBuilder
specifically used with
+ Default Typing.XmlFactory.getFormatName()
JsonParser
implementation that exposes XML structure as
+ set of JSON events that can be used for data binding.-1
from hereXMLStreamWriter
.XMLStreamWriter
.JacksonAnnotationIntrospector
that is needed to support
+ additional xml-specific annotation that Jackson provides.javax.xml.bind.annotation.XmlElementWrapper
,
+ to indicate wrapper element to use (if any) for Collection types (arrays,
+ java.util.Collection
).JsonProperty
contains.XmlValue
+ in that it can be used on one (and only one!) property of a POJO.BeanPropertyWriter
+ instances; to mark instances that are to be written out as attributes.XMLStreamReader
with data-binding by Jackson.XMLStreamReader
with data-binding by Jackson.XMLStreamReader
with data-binding by Jackson.ObjectCodec
+ (that is, XmlMapper
), so need to return true here.ObjectCodec
+ (that is, XmlMapper
), so need to return true here.BeanPropertyWriter
instances.BeanPropertyWriter
instances.AnnotationIntrospector
+ we register will use wrapper for indexed (List, array) properties or not,
+ if there are no explicit annotations.XmlMapper.Builder.defaultUseWrapper(boolean)
insteadToXmlGenerator.setNextName(javax.xml.namespace.QName)
, unless
+ a name has already been set.XmlMapper.Builder.nameForTextElement(String)
insteadJsonGenerator
that outputs JAXB-style XML output instead of JSON content.UnwrappingBeanSerializer
required to extend
+ XmlBeanSerializerBase
for XML-specific handling.BeanSerializer
XMLStreamReader
:
+ useful when building large XML files by binding individual items, one at
+ a time.AnnotationIntrospector
to handle XML-specific configuration.JaxbAnnotationIntrospector
as
+ XmlAnnotationIntrospector
: something we can not (alas!)
+ do in JAXB module because of dependency direction (JAXB module
+ has no knowledge of this module).AnnotationIntrospector.Pair
that can
+ also dispatch 'XmlAnnotationIntrospector' methods.BeanSerializer
for XML handling.BeanSerializerBase
needed to take care
+ of some xml-specific aspects, such as distinction between attributes
+ and elements.BeanSerializerModifier
to replace default BeanSerializer
+ with XML-specific one; mostly to ensure that attribute properties are output
+ before element properties.FromXmlParser
and ToXmlGenerator
+ instances.JsonFactoryBuilder
for instantiation.TSFBuilder
+ implementation for constructing XmlFactory
+ instances.AnnotationIntrospector
+ implementation that
+ builds on JaxbAnnotationIntrospector
.ObjectMapper
that will read and write XML instead of JSON,
+ using XML-backed JsonFactory
+ implementation (XmlFactory
).XmlMapper
instances.JsonStreamContext
, which implements
+ core methods needed, and adds small amount of additional
+ state data we need.SerializerProvider
+ implementation to handle oddities of XML output, like "extra" root element.StringDeserializer
to handle
+ couple of edge cases that XML parser exposes.XMLStreamReader
to further
+ abstract out all irrelevant details, and to expose equivalent of flat token
+ stream with no "fluff" tokens (comments, processing instructions, mixed
+ content) all of which is just to simplify
+ actual higher-level conversion to JSON tokens.StdTypeResolverBuilder
; needed so that
+ type id property name can be modified as necessary to make it legal
+ XML element or attribute name.FromXmlParser.getBinaryValue(com.fasterxml.jackson.core.Base64Variant)
will not need to decode data more
+ than once.JacksonXmlElementWrapper
+ or equivalent) should default to using implicit wrapper (with same name as property) or not.FromXmlParser.Feature
s
+ are enabled.FromXmlParser.Feature
s
+ are enabled.ToXmlGenerator.Feature
s
+ are enabled.ToXmlGenerator.Feature
s enabled, as bitmask.FromXmlParser.Feature
s enabled, as bitmask.ToXmlGenerator.initGenerator()
has been called or not.ToXmlGenerator.writeRaw(java.lang.String)
calls.Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/index.html b/docs/javadoc/2.10/index.html new file mode 100644 index 000000000..cea031d45 --- /dev/null +++ b/docs/javadoc/2.10/index.html @@ -0,0 +1,76 @@ + + + + + + ++ + diff --git a/docs/javadoc/2.10/overview-summary.html b/docs/javadoc/2.10/overview-summary.html new file mode 100644 index 000000000..8252a19b9 --- /dev/null +++ b/docs/javadoc/2.10/overview-summary.html @@ -0,0 +1,168 @@ + + + + + + +
Package | +Description | +
---|---|
com.fasterxml.jackson.dataformat.xml | +
+ Package that contains XML-based backends which can serialize POJOs
+ to and deserialize from XML, using Stax XML parsers and generators
+ for XML processing and mostly standard Jackson data binding otherwise.
+ |
+
com.fasterxml.jackson.dataformat.xml.annotation | +
+ Package that contains additional annotations that can be
+ used to configure XML-specific aspects of serialization
+ and deserialization
+ |
+
com.fasterxml.jackson.dataformat.xml.deser | ++ |
com.fasterxml.jackson.dataformat.xml.jaxb | ++ |
com.fasterxml.jackson.dataformat.xml.ser | ++ |
com.fasterxml.jackson.dataformat.xml.util | ++ |
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/overview-tree.html b/docs/javadoc/2.10/overview-tree.html new file mode 100644 index 000000000..0fa4e013f --- /dev/null +++ b/docs/javadoc/2.10/overview-tree.html @@ -0,0 +1,366 @@ + + + + + + +Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/package-list b/docs/javadoc/2.10/package-list new file mode 100644 index 000000000..9915bc315 --- /dev/null +++ b/docs/javadoc/2.10/package-list @@ -0,0 +1,6 @@ +com.fasterxml.jackson.dataformat.xml +com.fasterxml.jackson.dataformat.xml.annotation +com.fasterxml.jackson.dataformat.xml.deser +com.fasterxml.jackson.dataformat.xml.jaxb +com.fasterxml.jackson.dataformat.xml.ser +com.fasterxml.jackson.dataformat.xml.util diff --git a/docs/javadoc/2.10/packages b/docs/javadoc/2.10/packages new file mode 100644 index 000000000..3f0275033 --- /dev/null +++ b/docs/javadoc/2.10/packages @@ -0,0 +1,6 @@ +com.fasterxml.jackson.dataformat.xml.annotation +com.fasterxml.jackson.dataformat.xml +com.fasterxml.jackson.dataformat.xml.deser +com.fasterxml.jackson.dataformat.xml.jaxb +com.fasterxml.jackson.dataformat.xml.ser +com.fasterxml.jackson.dataformat.xml.util \ No newline at end of file diff --git a/docs/javadoc/2.10/script.js b/docs/javadoc/2.10/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/docs/javadoc/2.10/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/docs/javadoc/2.10/serialized-form.html b/docs/javadoc/2.10/serialized-form.html new file mode 100644 index 000000000..9402d37cf --- /dev/null +++ b/docs/javadoc/2.10/serialized-form.html @@ -0,0 +1,638 @@ + + + + + + +boolean _cfgDefaultUseWrapper+
boolean _cfgDefaultUseWrapper+
JacksonXmlElementWrapper
+ or equivalent) should default to using implicit wrapper (with same name as property) or not.
+ If enabled, wrapping is used by default; if false, it is not.
++ Note that JAXB annotation introspector always assumes "do not wrap by default". + Jackson annotations have different default due to backwards compatibility.
String _cfgNameForTextElement+
XmlAnnotationIntrospector _xmlPrimary+
XmlAnnotationIntrospector _xmlSecondary+
private void readObject(ObjectInputStream in) + throws IOException, + ClassNotFoundException+
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) + throws IOException+
IOException
protected Object readResolve()+
int _xmlParserFeatures+
int _xmlGeneratorFeatures+
String _cfgNameForTextElement+
JacksonXmlModule _xmlModule+
String _cfgNameForTextValue+
int _xmlTextPropertyIndex+
com.fasterxml.jackson.databind.deser.SettableBeanProperty _xmlTextProperty+
com.fasterxml.jackson.databind.deser.ValueInstantiator _valueInstantiator+
com.fasterxml.jackson.databind.util.NameTransformer _nameTransformer+
int _attributeCount+
int _textPropertyIndex+
QName[] _xmlNames+
BitSet _cdata+
XmlRootNameLookup _rootNameLookup+
DefaultXmlPrettyPrinter.Indenter _arrayIndenter+
DefaultXmlPrettyPrinter.Indenter _objectIndenter+
boolean _spacesInObjectEntries+
protected Object readResolve()+
Copyright © 2019 FasterXML. All rights reserved.
+ + diff --git a/docs/javadoc/2.10/stylesheet.css b/docs/javadoc/2.10/stylesheet.css new file mode 100644 index 000000000..98055b22d --- /dev/null +++ b/docs/javadoc/2.10/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +}