/**
   * Gets the <code>double</code> from <code>ld.data</code>.
   *
   * @param ld Description of the Parameter
   * @return The double value
   * @exception NumberFormatException Description of the Exception
   */
  protected final double getDouble(LabelData ld) throws NumberFormatException {
    if (ld == null) {
      return 0.0;
    }

    double dummy = 0;

    try {
      // alle ',' gleich durch '.' ersetzen, sonst gibts eine NumberFormatException
      dummy = (new Double(ld.getData().replace(',', '.'))).doubleValue();
    } catch (NumberFormatException e) {
      if (e.toString().indexOf("empty") >= 0) {
        return 0.0;
      } else {
        throw new NumberFormatException(
            "The Label " + ld.getLabel() + " contains not a valid double value: " + ld.getData());
      }
    }

    return dummy;
  }
 /**
  * Set one LDR (data label record).
  *
  * @param newLDR the new label and the new data
  */
 public final void setParameter(LabelData newLDR) {
   if (newLDR != null) {
     parameterTable.put(newLDR.getLabel(), newLDR.getData());
   }
 }