|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.jtm.jmed.UmlsQueryClient
public class UmlsQueryClient
A client utilizing UMLS server's xml query facility. This client is preferred over the UmlsSocketClient for more flexible and powerful queries. The server has an upper limit on the size of the response, so it is not suitable for queries with huge return size. The limit is estimated at ~50,000 records. This class should be used as composition, instead of inheritance.
| Constructor Summary | |
|---|---|
UmlsQueryClient(java.lang.String template)
Create a new UmlsQueryClient with a template query. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
For test. |
char[] |
query(java.lang.String[] args)
Send a query to the UMLS server. |
void |
setTiming(boolean t)
Time the query if true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UmlsQueryClient(java.lang.String template)
template - template query file.| Method Detail |
|---|
public void setTiming(boolean t)
t - time the query if true.
public char[] query(java.lang.String[] args)
throws gov.nih.nlm.kss.util.XMLException,
gov.nih.nlm.kss.util.DatabaseException
args - Query arguments to be filled in the template.
gov.nih.nlm.kss.util.DatabaseException
gov.nih.nlm.kss.util.XMLExceptionpublic static void main(java.lang.String[] args)
args - template query file and argument file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||