if (c.handles(Capability.UNARY_CLASS)) result.setNumClasses(1);
  public static TestInstances forCapabilities(Capabilities c) {    TestInstances	result;        result = new TestInstances();        // multi-instance?    if (c.getOwner() instanceof MultiInstanceCapabilitiesHandler) {      result = forCapabilities(((MultiInstanceCapabilitiesHandler) c.getOwner()).getMultiInstanceCapabilities());      result.setMultiInstance(true);    }    else  {      // class      if (c.handles(Capability.NO_CLASS))	result.setClassIndex(NO_CLASS);      else if (c.handles(Capability.NOMINAL_CLASS))	result.setClassType(Attribute.NOMINAL);      else if (c.handles(Capability.BINARY_CLASS))	result.setClassType(Attribute.NOMINAL);      else if (c.handles(Capability.NUMERIC_CLASS))	result.setClassType(Attribute.NUMERIC);      else if (c.handles(Capability.DATE_CLASS))	result.setClassType(Attribute.DATE);      else if (c.handles(Capability.STRING_CLASS))	result.setClassType(Attribute.STRING);      else if (c.handles(Capability.RELATIONAL_CLASS))	result.setClassType(Attribute.RELATIONAL);      // # of classes      if (c.handles(Capability.BINARY_CLASS))	result.setNumClasses(2);      if (c.handles(Capability.NOMINAL_CLASS))	result.setNumClasses(4);            // attributes      if (c.handles(Capability.NOMINAL_ATTRIBUTES))	result.setNumNominal(1);      else	result.setNumNominal(0);      if (c.handles(Capability.NUMERIC_ATTRIBUTES))	result.setNumNumeric(1);      else	result.setNumNumeric(0);      if (c.handles(Capability.DATE_ATTRIBUTES))	result.setNumDate(1);      else	result.setNumDate(0);            if (c.handles(Capability.STRING_ATTRIBUTES))	result.setNumString(1);      else	result.setNumString(0);            if (c.handles(Capability.RELATIONAL_ATTRIBUTES))	result.setNumRelational(1);      else	result.setNumRelational(0);    }        return result;  }