org.kopitubruk.util.json
Class ReflectUtil

java.lang.Object
  extended by org.kopitubruk.util.json.ReflectUtil

public class ReflectUtil
extends Object

Some reflection utility constants to be used with JSONConfig.setReflectionPrivacy(int) and JSONConfigDefaults.setReflectionPrivacy(int)

Since:
1.9
Author:
Bill Davidson

Field Summary
static int PACKAGE
          Reflection will attempt to serialize package private, protected and public fields or fields that have package private, protected or public get methods that conform to JavaBean naming conventions.
static int PRIVATE
          Reflection will attempt to serialize all fields including private.
static int PROTECTED
          Reflection will attempt to serialize protected and public fields or fields that have protected or public get methods that conform to JavaBean naming conventions.
static int PUBLIC
          Reflection will attempt to serialize only fields that are public or have public get methods that conform to JavaBean naming conventions.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIVATE

public static final int PRIVATE
Reflection will attempt to serialize all fields including private. Value is 0.

See Also:
JSONConfig.setReflectionPrivacy(int), JSONConfigDefaults.setReflectionPrivacy(int), Constant Field Values

PACKAGE

public static final int PACKAGE
Reflection will attempt to serialize package private, protected and public fields or fields that have package private, protected or public get methods that conform to JavaBean naming conventions. Value is 1.

See Also:
JSONConfig.setReflectionPrivacy(int), JSONConfigDefaults.setReflectionPrivacy(int), Constant Field Values

PROTECTED

public static final int PROTECTED
Reflection will attempt to serialize protected and public fields or fields that have protected or public get methods that conform to JavaBean naming conventions. Value is 2.

See Also:
JSONConfig.setReflectionPrivacy(int), JSONConfigDefaults.setReflectionPrivacy(int), Constant Field Values

PUBLIC

public static final int PUBLIC
Reflection will attempt to serialize only fields that are public or have public get methods that conform to JavaBean naming conventions. Value is 3.

See Also:
JSONConfig.setReflectionPrivacy(int), JSONConfigDefaults.setReflectionPrivacy(int), Constant Field Values


Copyright © 2016. All rights reserved.