Platform SDK Java 8.5 API Reference

com.genesyslab.platform.json.jackson2
Class PSDKJSONConstants

java.lang.Object
  extended by com.genesyslab.platform.json.jackson2.PSDKJSONConstants

public final class PSDKJSONConstants
extends java.lang.Object

Contains string constants that are used as keys in JSON. The class also provides helper methods that define the keys for specified Jackson naming strategy.


Field Summary
static java.lang.String CLASS_TYPE
          Deprecated.  
static java.lang.String JSONKEY_CLASS_TYPE
          JSON key for class type name.
static java.lang.String JSONKEY_PAIR_KEY
          JSON key for key of key value pair.
static java.lang.String JSONKEY_VALUE
          JSON key for value of key value pair.
static java.lang.String JSONKEY_VALUE_TYPE
          JSON key for value type of key value pair.
static java.lang.String KEY
          Deprecated.  
static java.lang.String VALUE
          Deprecated.  
static java.lang.String VALUE_TYPE
          Deprecated.  
static java.lang.String VALUE_TYPE_BINARY
           
static java.lang.String VALUE_TYPE_INTEGER
           
static java.lang.String VALUE_TYPE_KVLIST
           
static java.lang.String VALUE_TYPE_STRING
           
static java.lang.String VALUE_TYPE_UTF_STRING
           
 
Constructor Summary
PSDKJSONConstants()
           
 
Method Summary
static java.lang.String getJSONKeyForPairKey(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
          Gets JSON key for pair key.
static java.lang.String getJSONKeyForValue(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
          Gets JSON key for value.
static java.lang.String getJSONKeyForValueType(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
          Gets JSON key for value type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSONKEY_CLASS_TYPE

public static final java.lang.String JSONKEY_CLASS_TYPE
JSON key for class type name.
NOTE: the key isn't depends on using of any PropertyNamingStrategy in ObjectMapper.

See Also:
Constant Field Values

JSONKEY_PAIR_KEY

public static final java.lang.String JSONKEY_PAIR_KEY
JSON key for key of key value pair.
Use it directly only if you do not assign any PropertyNamingStrategy in ObjectMapper else use instead getJSONKeyForPairKey(PropertyNamingStrategy).

See Also:
Constant Field Values

JSONKEY_VALUE_TYPE

public static final java.lang.String JSONKEY_VALUE_TYPE
JSON key for value type of key value pair.
Use it directly only if you do not assign any PropertyNamingStrategy in ObjectMapper
else use getJSONKeyForValueType(PropertyNamingStrategy) instead of it.

See Also:
Constant Field Values

JSONKEY_VALUE

public static final java.lang.String JSONKEY_VALUE
JSON key for value of key value pair.
Use it directly only if you do not assign any PropertyNamingStrategy in ObjectMapper
else use getJSONKeyForValue(PropertyNamingStrategy) instead of it.

See Also:
Constant Field Values

VALUE_TYPE_INTEGER

public static final java.lang.String VALUE_TYPE_INTEGER
See Also:
Constant Field Values

VALUE_TYPE_STRING

public static final java.lang.String VALUE_TYPE_STRING
See Also:
Constant Field Values

VALUE_TYPE_UTF_STRING

public static final java.lang.String VALUE_TYPE_UTF_STRING
See Also:
Constant Field Values

VALUE_TYPE_BINARY

public static final java.lang.String VALUE_TYPE_BINARY
See Also:
Constant Field Values

VALUE_TYPE_KVLIST

public static final java.lang.String VALUE_TYPE_KVLIST
See Also:
Constant Field Values

CLASS_TYPE

public static final java.lang.String CLASS_TYPE
Deprecated. 
Use JSONKEY_CLASS_TYPE instead of it.

See Also:
Constant Field Values

KEY

public static final java.lang.String KEY
Deprecated. 
Use getJSONKeyForPairKey(com.fasterxml.jackson.databind.PropertyNamingStrategy) or JSONKEY_PAIR_KEY instead of it.

See Also:
Constant Field Values

VALUE_TYPE

public static final java.lang.String VALUE_TYPE
Deprecated. 
Use getJSONKeyForValueType(com.fasterxml.jackson.databind.PropertyNamingStrategy) or JSONKEY_VALUE_TYPE instead of it.

See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
Deprecated. 
Use getJSONKeyForValue(com.fasterxml.jackson.databind.PropertyNamingStrategy) or JSONKEY_VALUE instead of it.

See Also:
Constant Field Values
Constructor Detail

PSDKJSONConstants

public PSDKJSONConstants()
Method Detail

getJSONKeyForPairKey

public static java.lang.String getJSONKeyForPairKey(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
Gets JSON key for pair key.

Parameters:
strategy - that is used by ObjectMapper.
NOTE: The strategy should be derived from PropertyNamingStrategyBase else it will be ignored.
Returns:
JSON key for pair key.
See Also:
ObjectMapper.getSerializationConfig().getPropertyNamingStrategy()}

getJSONKeyForValueType

public static java.lang.String getJSONKeyForValueType(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
Gets JSON key for value type.

Parameters:
strategy - that is used by ObjectMapper.
NOTE: The strategy should be derived from PropertyNamingStrategyBase else it will be ignored.
Returns:
JSON key for value type.
See Also:
ObjectMapper.getSerializationConfig().getPropertyNamingStrategy()}

getJSONKeyForValue

public static java.lang.String getJSONKeyForValue(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
Gets JSON key for value.

Parameters:
strategy - that is used by ObjectMapper.
NOTE: The strategy should be derived from PropertyNamingStrategyBase else it will be ignored.
Returns:
JSON key for value.
See Also:
ObjectMapper.getSerializationConfig().getPropertyNamingStrategy()}

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.