protected static boolean validateMonomers ( List < MonomerNotation > mon ) throws ChemistryException , MonomerLoadingException , org . helm . notation2 . parser . exceptionparser . NotationException { for ( MonomerNotation monomerNotation : mon ) { if ( ! ( isMonomerValid ( monomerNotation . getUnit ( ) , monomerNotation . getType ( ) ) ) ) { return false ; } } return true ; }
method to validate a list of MonomerNotation objects