public static IChemObject getMappedChemObject ( IReaction reaction , IChemObject chemObject ) { for ( IMapping mapping : reaction . mappings ( ) ) { if ( mapping . getChemObject ( 0 ) . equals ( chemObject ) ) { return mapping . getChemObject ( 1 ) ; } else if ( mapping . getChemObject ( 1 ) . equals ( chemObject ) ) return mapping . getChemObject ( 0 ) ; } return null ; }
get the IAtom which is mapped