Esempio n. 1
0
 // Implementation methods
 // -------------------------------------------------------------------------
 protected ComplexDataObject unmarshalDataObject(Exchange exchange)
     throws InvalidPayloadException, IOException {
   // lets try use the Sink to unmarshall it
   Transform transformer = getTransform();
   Element input = transformer.getInput(0);
   C24IOSource source = new C24IOSource(input);
   return source.parseDataObject(exchange);
 }
Esempio n. 2
0
 protected Object transform(Object[][] objects) throws ValidationException {
   Transform transformer = getTransform();
   Object[][] answer = transformer.transform(objects);
   return answer[0][0];
 }