public boolean equivalent ( Element otherElement , boolean logging ) { if ( eventable . getElement ( ) . equals ( otherElement ) ) { if ( logging ) { LOGGER . info ( "Element equal" ) ; } return true ; } if ( eventable . getElement ( ) . equalAttributes ( otherElement ) ) { if ( logging ) { LOGGER . info ( "Element attributes equal" ) ; } return true ; } if ( eventable . getElement ( ) . equalId ( otherElement ) ) { if ( logging ) { LOGGER . info ( "Element ID equal" ) ; } return true ; } if ( ! eventable . getElement ( ) . getText ( ) . equals ( "" ) && eventable . getElement ( ) . equalText ( otherElement ) ) { if ( logging ) { LOGGER . info ( "Element text equal" ) ; } return true ; } return false ; }
Comparator against other element .