|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
public abstract class ParamsRetriever
The base abstract class for the JSON-RPC 2.0 parameter retrievers.
Constructor Summary | |
---|---|
ParamsRetriever()
|
Method Summary | ||
---|---|---|
protected static
|
getEnumStringMatch(String input,
Class<T> enumClass,
boolean ignoreCase)
Matches a string against an enumeration of acceptable values. |
|
protected static String |
getEnumStringMatch(String input,
String[] enumStrings,
boolean ignoreCase)
Matches a string against an array of acceptable values. |
|
abstract int |
size()
Returns the parameter count. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamsRetriever()
Method Detail |
---|
public abstract int size()
protected static String getEnumStringMatch(String input, String[] enumStrings, boolean ignoreCase)
input
- The string to match.enumStrings
- The acceptable string values. Must not be
null
.ignoreCase
- true
for a case insensitive match.
null
if no match was
found.protected static <T extends Enum<T>> T getEnumStringMatch(String input, Class<T> enumClass, boolean ignoreCase)
input
- The string to match.enumClass
- The enumeration class specifying the acceptable
string values. Must not be null
.ignoreCase
- true
for a case insensitive match.
null
if no match
was found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |