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