Mercurial > hg > anteater
comparison src/de/mpiwg/anteater/xml/impl/AnalysisXMLManager.java @ 3:ae96e4bc7fb2
save found species to analysis files
author | jdamerow |
---|---|
date | Mon, 22 Oct 2012 14:21:14 -0700 |
parents | 1c2b4f5e2c05 |
children | dcc35f89dce3 |
comparison
equal
deleted
inserted
replaced
2:1c2b4f5e2c05 | 3:ae96e4bc7fb2 |
---|---|
122 } | 122 } |
123 | 123 |
124 public void addSupplInfNamesResult(String result) { | 124 public void addSupplInfNamesResult(String result) { |
125 addElementToDoc(result, "/analysis/scientificNames/supplementary_information"); | 125 addElementToDoc(result, "/analysis/scientificNames/supplementary_information"); |
126 } | 126 } |
127 | |
128 public void addSummaryCommonNamesResult(String result) { | |
129 addElementToDoc(result, "/analysis/commonNames/summaries"); | |
130 } | |
131 | |
132 public void addSupplInfCommonNamesResult(String result) { | |
133 addElementToDoc(result, "/analysis/commonNames/supplementary_information"); | |
134 } | |
127 | 135 |
128 private void addElementToDoc(String result, String xpath) { | 136 private void addElementToDoc(String result, String xpath) { |
129 IXMLParser parser = new JDOMParser(result, false); | 137 IXMLParser parser = new JDOMParser(result, false); |
130 Element root = parser.getRoot(); | 138 Element root = parser.getRoot(); |
131 | 139 |