@Beta public final class CodableFieldInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY |
static int |
CODABLE |
static int |
COLLECTION |
static int |
ENUM |
static int |
GENERIC |
static int |
MAP |
static int |
NATIVE |
static int |
NUMBER |
static int |
READONLY |
static int |
REQUIRED |
static int |
WRITEONLY |
| Constructor and Description |
|---|
CodableFieldInfo(Field field) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object src) |
Class<?> |
getCollectionClass() |
Field |
getField() |
Type[] |
getGenericTypes() |
Class<?> |
getMapKeyClass() |
Class<?> |
getMapValueClass() |
String |
getName() |
Class<?> |
getTypeOrComponentType() |
boolean |
isArray() |
boolean |
isCodable() |
boolean |
isCollection() |
boolean |
isCollectionArray() |
boolean |
isEnum() |
boolean |
isGeneric() |
boolean |
isMap() |
boolean |
isMapKeyArray() |
boolean |
isMapValueArray() |
boolean |
isNative() |
boolean |
isReadOnly() |
boolean |
isRequired() |
boolean |
isWriteOnly() |
Object |
newInstance() |
void |
set(Object dst,
Object value) |
void |
setStrict(Object dst,
Object value)
Sets the field value for the destination object if and only if it is non-null and passes the field's
validation method (if any).
|
String |
toString() |
public static final int ARRAY
public static final int CODABLE
public static final int COLLECTION
public static final int GENERIC
public static final int NATIVE
public static final int MAP
public static final int NUMBER
public static final int REQUIRED
public static final int READONLY
public static final int WRITEONLY
public static final int ENUM
public String getName()
public boolean isCollectionArray()
public boolean isMapKeyArray()
public boolean isMapValueArray()
public void setStrict(@Nonnull Object dst, @Nullable Object value) throws IllegalAccessException
IllegalAccessExceptionpublic boolean isArray()
public boolean isCodable()
public boolean isCollection()
public boolean isGeneric()
public boolean isMap()
public boolean isEnum()
public boolean isNative()
public boolean isRequired()
public boolean isReadOnly()
public boolean isWriteOnly()
Copyright © 2015 AddThis. All rights reserved.