Top Description Constructors Methods
com.fasterxml.jackson.jr.ob.api

public abstract Class ExtensionContext

extends Object
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.jr.ob.JSON.ExtContextImpl
Imports
com.fasterxml.jackson.core.TreeCodec, com.fasterxml.jackson.jr.ob.JSON

API that lets com.fasterxml.jackson.jr.ob.JacksonJrExtensions to register handlers it needs to.
Since
2.11

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract ExtensionContext

Returns:

This context, to allow call chaining
appendModifier
(ReaderWriterModifier
Modifier to register
modifier
)

Method for inserting specified ReaderWriterModifier as the lowest priority modifier (that is, being called after all other modifiers registered).

public abstract ExtensionContext

Returns:

This context, to allow call chaining
appendProvider
(ReaderWriterProvider
Provider to register
provider
)

Method for inserting specified ReaderWriterProvider as the lowest priority provider (that is, having lower precedence than anything registered so far)

public abstract ExtensionContext

Returns:

This context, to allow call chaining
insertModifier
(ReaderWriterModifier
Modifier to register
modifier
)

Method for inserting specified ReaderWriterModifier as the highest priority modifier (that is, being called before any other modifiers registered).

public abstract ExtensionContext

Returns:

This context, to allow call chaining
insertProvider
(ReaderWriterProvider
Provider to register
provider
)

Method for inserting specified ReaderWriterProvider as the highest priority provider (that is, having higher precedence than anything registered so far)

public abstract boolean

Returns:

True if given JSON.Feature is enabled; false if not
isEnabled
(JSON.Feature
Feature to check
feature
)

Method for checking whether given JSON.Feature is enabled.

public abstract ExtensionContext

Returns:

This context, to allow call chaining
setTreeCodec
(TreeCodec
(optional) Tree Codec to use, or null for removing currently configured one
tc
)

Method for setting TreeCodec to use, replacing codec that was formerly configured (if any).

public abstract TreeCodec

Returns:

TreeCodec currently configured to be used, if any (null if none).
treeCodec
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExtensionContextback to summary
public ExtensionContext()

Method Detail

appendModifierback to summary
public abstract ExtensionContext appendModifier(ReaderWriterModifier modifier)

Method for inserting specified ReaderWriterModifier as the lowest priority modifier (that is, being called after all other modifiers registered).

Parameters
modifier:ReaderWriterModifier

Modifier to register

Returns:ExtensionContext

This context, to allow call chaining

appendProviderback to summary
public abstract ExtensionContext appendProvider(ReaderWriterProvider provider)

Method for inserting specified ReaderWriterProvider as the lowest priority provider (that is, having lower precedence than anything registered so far)

Parameters
provider:ReaderWriterProvider

Provider to register

Returns:ExtensionContext

This context, to allow call chaining

insertModifierback to summary
public abstract ExtensionContext insertModifier(ReaderWriterModifier modifier)

Method for inserting specified ReaderWriterModifier as the highest priority modifier (that is, being called before any other modifiers registered).

Parameters
modifier:ReaderWriterModifier

Modifier to register

Returns:ExtensionContext

This context, to allow call chaining

insertProviderback to summary
public abstract ExtensionContext insertProvider(ReaderWriterProvider provider)

Method for inserting specified ReaderWriterProvider as the highest priority provider (that is, having higher precedence than anything registered so far)

Parameters
provider:ReaderWriterProvider

Provider to register

Returns:ExtensionContext

This context, to allow call chaining

isEnabledback to summary
public abstract boolean isEnabled(JSON.Feature feature)

Method for checking whether given JSON.Feature is enabled.

Parameters
feature:JSON.Feature

Feature to check

Returns:boolean

True if given JSON.Feature is enabled; false if not

Since
2.17
setTreeCodecback to summary
public abstract ExtensionContext setTreeCodec(TreeCodec tc)

Method for setting TreeCodec to use, replacing codec that was formerly configured (if any).

Parameters
tc:TreeCodec

(optional) Tree Codec to use, or null for removing currently configured one

Returns:ExtensionContext

This context, to allow call chaining

treeCodecback to summary
public abstract TreeCodec treeCodec()
Returns:TreeCodec

TreeCodec currently configured to be used, if any (null if none).