EDiff diff ( final INodeReadTrx paramNewRtx , final INodeReadTrx paramOldRtx , final DepthCounter paramDepth , final EFireDiff paramFireDiff ) throws TTIOException { assert paramNewRtx != null ; assert paramOldRtx != null ; assert paramDepth != null ; EDiff diff = EDiff . SAME ; // Check for modifications. switch ( paramNewRtx . getNode ( ) . getKind ( ) ) { case ROOT : case TEXT : case ELEMENT : if ( ! checkNodes ( paramNewRtx , paramOldRtx ) ) { diff = diffAlgorithm ( paramNewRtx , paramOldRtx , paramDepth ) ; } break ; default : // Do nothing. } if ( paramFireDiff == EFireDiff . TRUE ) { fireDiff ( diff , ( ( ITreeStructData ) paramNewRtx . getNode ( ) ) , ( ( ITreeStructData ) paramOldRtx . getNode ( ) ) , new DiffDepth ( paramDepth . getNewDepth ( ) , paramDepth . getOldDepth ( ) ) ) ; } return diff ; }
Diff of nodes .