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 fieldStringgetFieldName()TypegetFieldType()Optional<Method>getGetterMethod()GetterMethodReferencegetGetterReference()ValueConverter<?>getGetterValueConverter()StringgetJsonKey()Optional<Method>getSetterMethod()Creates a setter Method for invoking a set valueSetterMethodReferencegetSetterReference()ValueConverter<?>getSetterValueConverter()Class<?>getTargetClass()booleanisAbstract()booleanisAccessible()booleanisIgnore()JSONObjecttoJSON()StringtoString()
-
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
-