public class JSONSelector
extends java.lang.Object
Constructor and Description |
---|
JSONSelector(java.lang.String prefix,
java.lang.Object obj) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
evaluate(java.util.List json) |
boolean |
evaluate(java.util.Map json) |
boolean |
evaluate(java.lang.String json) |
int |
getType() |
java.lang.String |
getValue()
It returns the original string representation of the pattern or null
if the type is not 1.
|
java.lang.String |
getValue(java.lang.String key)
It returns the string value at the given key from the type 3 only or
null if the type is not 3 otherwise.
|
static void |
main(java.lang.String[] args) |
public boolean evaluate(java.util.Map json)
public boolean evaluate(java.util.List json)
public boolean evaluate(java.lang.String json)
public int getType()
public java.lang.String getValue()
public java.lang.String getValue(java.lang.String key)
public void clear()
public static void main(java.lang.String[] args)