Class ScannerEntry
java.lang.Object
org.ghotibeaun.json.converters.utils.ScannerEntry
public class ScannerEntry extends Object
Contains mapping data for converting to and from JSON and Class instances.
- Author:
- Jim Earley (xml.jim@gmail.com)
-
Constructor Summary
Constructors Constructor Description ScannerEntry(Class<?> containerClass, Field theField, ConverterOptions options)
Initializes the entry -
Method Summary
Modifier and Type Method Description Class<?>
getContainerClass()
The class that declares the current fieldString
getFieldName()
Type
getFieldType()
Optional<Method>
getGetterMethod()
GetterMethodReference
getGetterReference()
ValueConverter<?>
getGetterValueConverter()
String
getJsonKey()
Optional<Method>
getSetterMethod()
Creates a setter Method for invoking a set valueSetterMethodReference
getSetterReference()
ValueConverter<?>
getSetterValueConverter()
Class<?>
getTargetClass()
boolean
isAbstract()
boolean
isAccessible()
boolean
isIgnore()
JSONObject
toJSON()
String
toString()
-
Constructor Details
-
ScannerEntry
Initializes the entry- Parameters:
containerClass
- the Class containing the FieldtheField
- the field
-
-
Method Details
-
getSetterMethod
Creates a setter Method for invoking a set value- Returns:
- a setter Method
- Throws:
JSONConversionException
-
getGetterMethod
- Throws:
JSONConversionException
-
getContainerClass
The class that declares the current field- Returns:
-
isAbstract
public boolean isAbstract() -
getJsonKey
-
getFieldName
-
getFieldType
-
isAccessible
public boolean isAccessible() -
isIgnore
public boolean isIgnore() -
getGetterReference
-
getSetterReference
-
getGetterValueConverter
-
getSetterValueConverter
-
getTargetClass
-
toJSON
-
toString
-