result.add(getRelationFind()); if (getRelationReplace().length() > 0) { result.add("-replace"); result.add(getRelationReplace());
result.add(getRelationFind()); if (getRelationReplace().length() > 0) { result.add("-replace"); result.add(getRelationReplace());
result += " -find " + getRelationFind(); if (getRelationReplace().length() > 0) { result += " -replace " + getRelationReplace();
result += " -find " + getRelationFind(); if (getRelationReplace().length() > 0) { result += " -replace " + getRelationReplace();
/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }
/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }