Ejemplo n.º 1
0
 /** returns true if the event is of the given event type and for the given item type */
 public boolean isType(final EventType eventType, final ItemType itemType) {
   try {
     return isType(eventType) && ItemType.getForClass(object.getClass()).equals(itemType);
   } catch (final ApprenticeEx e) {
     return false;
   }
 }
Ejemplo n.º 2
0
 @Override
 public String toString() {
   try {
     return eventType + " for " + ItemType.getForClass(object.getClass());
   } catch (final ApprenticeEx e) {
     return eventType.toString();
   }
 }