org.eaglei.network.actions
Class EagleIQueryActionMap

java.lang.Object
  extended by org.spin.node.DestroyableQueryActionMap
      extended by org.eaglei.network.actions.EagleIQueryActionMap
All Implemented Interfaces:
org.spin.node.QueryActionMap

public final class EagleIQueryActionMap
extends org.spin.node.DestroyableQueryActionMap

Author:
Clint Gilbert Nov 22, 2010 Center for Biomedical Informatics (CBMI)

Field Summary
 
Fields inherited from class org.spin.node.DestroyableQueryActionMap
lock
 
Fields inherited from interface org.spin.node.QueryActionMap
Empty
 
Constructor Summary
EagleIQueryActionMap()
           
 
Method Summary
 boolean containsQueryType(java.lang.String queryType)
           
 org.spin.node.actions.QueryAction<?> getQueryAction(java.lang.String queryType)
           
 java.util.Collection<java.lang.String> getQueryTypes()
           
 
Methods inherited from class org.spin.node.DestroyableQueryActionMap
destroy, isDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagleIQueryActionMap

public EagleIQueryActionMap()
Method Detail

containsQueryType

public boolean containsQueryType(java.lang.String queryType)
Parameters:
queryType -
Returns:
true if queryType is a known EagleI query type. Query types are given by the queryType fields of the org.eaglei.network.driver.Query enum constants.

getQueryAction

public org.spin.node.actions.QueryAction<?> getQueryAction(java.lang.String queryType)
                                                    throws org.spin.node.UnknownQueryTypeException
Parameters:
queryType -
Returns:
a cached QueryAction instance corresponding to the passed queryType, or null if there's an error instantiating one. (The correspondence between query types and implementing classes is set out in the EagleIQueryActions enum.)
Throws:
org.spin.node.UnknownQueryTypeException - if an unknown queryType (as determined by containsQueryType()) is passed in.

getQueryTypes

public java.util.Collection<java.lang.String> getQueryTypes()
Returns:
an unmodifiable collection of known query types


Copyright © 2009-2011 Eagle-I. All Rights Reserved.