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