com.ibm.mashups.enabler.utils
Interface EventTransformer


public EventTransformer

Event Transformer that checks compatibility between events. Compatibility checks work bi-directionally, for example a source event with payload type time can be checked against a target event with payload xsd:time. The reverse direction can also be checked, i.e a source event with xsd:time checked against a target event with payload time. The compatibility check is applicable for xsd primitive data types and Mashup simple types.


Method Summary
 Boolean isTransformable(com.ibm.mashups.iwidget.event sourceEvent, com.ibm.mashups.iwidget.event targetEvent, Boolean relaxed)
           Checks the compatibility of sourceEvent and targetEvent.
 

Method Detail

isTransformable

Boolean isTransformable(com.ibm.mashups.iwidget.event sourceEvent,
                        com.ibm.mashups.iwidget.event targetEvent,
                        Boolean relaxed)
Checks the compatibility of sourceEvent and targetEvent.

Parameters:
sourceEvent - the event to be checked
targetEvent - the event that sourceEvent is checked against.
relaxed - If relaxed is true, then the checking of the type matches are flexible, if false then only direct type matches are checked
Returns:
true if events are compatible, false otherwise.


Copyright IBM Corp. 2010 All Rights Reserved.