code: @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];
      }
docs: Sets the parameters attribute of the WeightDescriptor object.
  
  @param  params            The new parameters value
  @throws CDKException if more than 1 parameter is specified or if the parameter
  is not of type String
  @see #getParameters