Skip to content
Snippets Groups Projects
Commit 3a0a622c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

javadoc

parent 2c7ac67a
No related branches found
No related tags found
1 merge request!46Resolve "find all drugs doesn't find all drugs sometimes"
...@@ -474,6 +474,14 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi ...@@ -474,6 +474,14 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi
} }
} }
/**
* Finds if drug is approved.
*
* @param page
* webpage content used for parsing
*
* @return <code>true</code> if drug is approved
*/
private Boolean getApproved(String page) { private Boolean getApproved(String page) {
int index = page.indexOf("<th>Groups</th>"); int index = page.indexOf("<th>Groups</th>");
if (index <= 0) { if (index <= 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment