Includes changes to TestIDL.java for verification.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
if("class".equals(localpart)) {
+ String[] vfields = {"isnew", "ischanged", "isdeleted"};
+ for (String fieldName : vfields) {
+ IDLField field = new IDLField();
+ field.setName(fieldName);
+ field.setArrayPos(fieldIndex++);
+ field.setIsVirtual(true);
+ current.addField(field);
+ }
+
if(keepIDLObjects)
IDLObjects.put(current.getIDLClass(), current);
parser.parse();
//System.out.print(parser.toXML());
- /*
OSRFObject bre = new OSRFObject("bre");
bre.put("id", new Integer(1));
+ bre.put("isnew", new Boolean(false));
+ bre.put("isdeleted", new Boolean(true));
System.out.println(bre);
- */
+ System.out.println(new JSONWriter(bre).write());
}
}