public class JsonElementResolver extends IndexResolver
EnhancedResolver.Hint| Modifier and Type | Field and Description |
|---|---|
static int |
JSON_ELEMENT_RESOLVER_PRIORITY |
static String |
NAME_UNWRAP_THIS
Use this name if you want to unwrap the current context object (note that
"this" would be normally matched by ThisResolver)
|
static ConfigurationKey |
UNWRAP_JSON_PRIMITIVE_KEY
If set to
true instances of JsonPrimitive and
JsonNull instances are unwrapped automatically. |
configurationDEFAULT_PRIORITY| Constructor and Description |
|---|
JsonElementResolver() |
JsonElementResolver(int priority) |
| Modifier and Type | Method and Description |
|---|---|
EnhancedResolver.Hint |
createHint(Object contextObject,
String name,
ResolutionContext context) |
Set<ConfigurationKey> |
getConfigurationKeys() |
void |
init() |
Object |
resolve(Object contextObject,
String name,
ResolutionContext context) |
getIndexValue, getIndexValue, isAnIndex, notAnIndexgetPriority, toStringcheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitpublic static final int JSON_ELEMENT_RESOLVER_PRIORITY
public static final String NAME_UNWRAP_THIS
public static final ConfigurationKey UNWRAP_JSON_PRIMITIVE_KEY
true instances of JsonPrimitive and
JsonNull instances are unwrapped automatically.
Since 2.1 automatic unwrapping is disabled by default. See also
GsonValueConverter.
public JsonElementResolver()
public JsonElementResolver(int priority)
priority - public Object resolve(Object contextObject, String name, ResolutionContext context)
public void init()
init in class AbstractConfigurationAwarepublic Set<ConfigurationKey> getConfigurationKeys()
public EnhancedResolver.Hint createHint(Object contextObject, String name, ResolutionContext context)
createHint in interface EnhancedResolvercreateHint in class AbstractResolverCopyright © 2017. All rights reserved.