Package org.apache.tika.config
Class ParamField
- java.lang.Object
-
- org.apache.tika.config.ParamField
-
public class ParamField extends Object
- Since:
- Apache Tika 1.14
-
-
Constructor Summary
Constructors Constructor Description ParamField(AccessibleObject member)
Creates a ParamField object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assignValue(Object bean, Object value)
Sets given value to the annotated field of beanField
getField()
String
getName()
Method
getSetter()
Class<?>
getType()
boolean
isRequired()
String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParamField
public ParamField(AccessibleObject member) throws TikaConfigException
Creates a ParamField object- Parameters:
member
- a field or method which hasField
annotation- Throws:
TikaConfigException
-
-
Method Detail
-
getField
public Field getField()
-
getSetter
public Method getSetter()
-
getName
public String getName()
-
getType
public Class<?> getType()
-
isRequired
public boolean isRequired()
-
assignValue
public void assignValue(Object bean, Object value) throws IllegalAccessException, InvocationTargetException
Sets given value to the annotated field of bean- Parameters:
bean
- bean with annotation for fieldvalue
- value of field- Throws:
IllegalAccessException
- when it occursInvocationTargetException
- when it occurs
-
-