@Override public boolean equals(Object obj) { if (obj == null) { return false; } ExperimentListItem eli = (ExperimentListItem) obj; return getFilename().equals(eli.getFilename()) && getPattern().equals(eli.getPattern()); }
@Override public int hashCode() { return 47*getFilename().hashCode()*getPattern().hashCode(); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } ExperimentListItem eli = (ExperimentListItem) obj; return getFilename().equals(eli.getFilename()) && getPattern().equals(eli.getPattern()); }
@Override public int hashCode() { return 47*getFilename().hashCode()*getPattern().hashCode(); }
@Override public int hashCode() { return 47*getFilename().hashCode()*getPattern().hashCode(); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } ExperimentListItem eli = (ExperimentListItem) obj; return getFilename().equals(eli.getFilename()) && getPattern().equals(eli.getPattern()); }
@Override public String toString() { return (getFilename()+" "+getPattern()+" "+getInteractionRange()).trim(); }
@Override public String toString() { return (getFilename()+" "+getPattern()+" "+getInteractionRange()).trim(); }
@Override public String toString() { return (getFilename()+" "+getPattern()+" "+getInteractionRange()).trim(); }
/** * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem * * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files * @param psiVersion The version of PSI to use * @param cvMapping The cv mapping * @param baseDir The base dir where to put the files * @param validate whether to validate the xml * @throws IOException thrown if there is some problem writing to the file * @return a psiValidatorReport */ public static PsiValidatorReport writePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping, File baseDir, boolean validate) throws IOException { File xmlFile = new File(baseDir, eli.getFilename()); Document doc = generatePsiData(eli,psiVersion,cvMapping); if (doc == null) { return new PsiValidatorReport(); } return writeFile(doc, xmlFile, validate); }
/** * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem * * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files * @param psiVersion The version of PSI to use * @param cvMapping The cv mapping * @param baseDir The base dir where to put the files * @param validate whether to validate the xml * @throws IOException thrown if there is some problem writing to the file * @return a psiValidatorReport */ public static PsiValidatorReport writePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping, File baseDir, boolean validate) throws IOException { File xmlFile = new File(baseDir, eli.getFilename()); Document doc = generatePsiData(eli,psiVersion,cvMapping); if (doc == null) { return new PsiValidatorReport(); } return writeFile(doc, xmlFile, validate); }
/** * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem * * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files * @param psiVersion The version of PSI to use * @param cvMapping The cv mapping * @param baseDir The base dir where to put the files * @param validate whether to validate the xml * @throws IOException thrown if there is some problem writing to the file * @return a psiValidatorReport */ public static PsiValidatorReport writePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping, File baseDir, boolean validate) throws IOException { File xmlFile = new File(baseDir, eli.getFilename()); Document doc = generatePsiData(eli,psiVersion,cvMapping); if (doc == null) { return new PsiValidatorReport(); } return writeFile(doc, xmlFile, validate); }