Hi
I'm using xPath to do all my mapping from internal DTO's to the ADK objects, this is working pretty well with one exception, time fields.
So for example if I am setting the elements of a SIFDataObject for LearnerAttendance, I can do the following:
sdo.setElementOrAttribute("AttendanceDomain", "Lesson"); where sdo is the SIFDataObject in question.
I can also do this on Date by using SIFDate object, however this does not work for time:
Calendar c = GregorianCalendar.getInstance();
c.set(0, 0, 0, 10, 0,0);
sdo.setElementOrAttribute("FinishTime", new SIFTime(c).toString());
This fails and I get the following error: Unable to convert 10:00:00 to Integer
Am I doing something wrong? Can anyone provide me with an example for how to set a time field using setElementOrAttribute
Thanks
Steven