|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MethodFilter>
com.univocity.parsers.annotations.helpers.MethodFilter
public enum MethodFilter
A filter for annotated methods. Used internally to exclude setters or getters from the list of fields to be processed, accordingly to the use case: when parsing into beans, only setter methods are to be considered. When writing values in beans to an output, only the getter methods should be used.
| Enum Constant Summary | |
|---|---|
ONLY_GETTERS
Rejects any method that returns void or has a parameter list. |
|
ONLY_SETTERS
Rejects any method that doesn't accept a single parameter. |
|
| Method Summary | |
|---|---|
boolean |
reject(Method method)
Tests whether a method is not a getter or setter and should be rejected. |
static MethodFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MethodFilter[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MethodFilter ONLY_GETTERS
void or has a parameter list.
public static final MethodFilter ONLY_SETTERS
| Method Detail |
|---|
public static MethodFilter[] values()
for (MethodFilter c : MethodFilter.values()) System.out.println(c);
public static MethodFilter valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean reject(Method method)
method - the method to be tested
true if the given method should be rejected, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||