@ Override public void setParameters ( Object [ ] params ) throws CDKException { if ( params . length != 1 ) { throw new CDKException ( "AromaticBondsCountDescriptor expects one parameter" ) ; } if ( ! ( params [ 0 ] instanceof Boolean ) ) { throw new CDKException ( "The first parameter must be of type Boolean" ) ; } // ok, all should be fine checkAromaticity = ( Boolean ) params [ 0 ] ; }
Sets the parameters attribute of the AromaticBondsCountDescriptor object .