public static final void main(String[] args) {
System.out.println("ECQL Filters Tester");
System.out.println("Seperate with \";\" or \"quit\" to finish)");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
FilterTransformer filterTransformer = new FilterTransformer();
filterTransformer.setIndentation(4);
while (true) {
System.out.print(">");
String line = null;
try {
line = reader.readLine();
if (line.equals("quit")) {
System.out.println("Bye!");
break;
}
List<Filter> filters = ECQL.toFilterList(line);
for( Filter filter : filters ){
System.out.println();
filterTransformer.transform( filter, System.out);
}
} catch (IOException e1) {
e1.printStackTrace();
} catch (CQLException cqlex) {
System.out.println(cqlex.getSyntaxError());