public class ParamField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
Constructor and Description |
---|
ParamField(java.lang.reflect.AccessibleObject member)
Creates a ParamField object
|
Modifier and Type | Method and Description |
---|---|
void |
assignValue(java.lang.Object bean,
java.lang.Object value)
Sets given value to the annotated field of bean
|
java.lang.reflect.Field |
getField() |
java.lang.String |
getName() |
java.lang.reflect.Method |
getSetter() |
java.lang.Class<?> |
getType() |
boolean |
isRequired() |
java.lang.String |
toString() |
public static final java.lang.String DEFAULT
public ParamField(java.lang.reflect.AccessibleObject member) throws TikaConfigException
member
- a field or method which has Field
annotationTikaConfigException
public java.lang.reflect.Field getField()
public java.lang.reflect.Method getSetter()
public java.lang.String getName()
public java.lang.Class<?> getType()
public boolean isRequired()
public void assignValue(java.lang.Object bean, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
bean
- bean with annotation for fieldvalue
- value of fieldjava.lang.IllegalAccessException
- when it occursjava.lang.reflect.InvocationTargetException
- when it occurspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved