]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/java/org/open_ils/test/TestIDL.java
c50ad62ba4703ab8e89621a2c41e9baf379f0c0c
[working/Evergreen.git] / Open-ILS / src / java / org / open_ils / test / TestIDL.java
1 package org.open_ils.test;
2 import org.open_ils.idl.*;
3 import org.opensrf.*;
4 import org.opensrf.util.*;
5
6 public class TestIDL {
7     public static void main(String args[]) throws Exception {
8         String idlFile = args[0];
9         IDLParser parser = new IDLParser(idlFile);
10         parser.parse();
11         //System.out.print(parser.toXML());
12
13         OSRFObject bre = new OSRFObject("bre");
14         bre.put("id", new Integer(1));
15         bre.put("isnew", new Boolean(false));
16         bre.put("isdeleted", new Boolean(true));
17         System.out.println(bre);
18         System.out.println(new JSONWriter(bre).write());
19     }
20 }