org.LexGrid.LexBIG.cagrid.adapters
Class SortAdapter

java.lang.Object
  extended by org.LexGrid.LexBIG.cagrid.adapters.SortAdapter
All Implemented Interfaces:
java.io.Serializable, Extendable, Sort

public class SortAdapter
extends java.lang.Object
implements Sort

See Also:
Serialized Form

Constructor Summary
SortAdapter(SortClient client)
           
 
Method Summary
<T> java.util.Comparator<T>
getComparatorForSearchClass(java.lang.Class<T> arg0)
          Gets the comparator for search class.
 java.lang.String getDescription()
          Return a description of the extension.
 java.lang.String getName()
          Return the name assigned to this service extension.
 java.lang.String getProvider()
          Return an identifier for the extension provider.
 java.lang.String getVersion()
          Return version information about the extension.
 boolean isSortValidForClass(java.lang.Class<?> arg0)
          Checks if this sort is valid for the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortAdapter

public SortAdapter(SortClient client)
            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: Extendable
Return a description of the extension.

Specified by:
getDescription in interface Extendable

getName

public java.lang.String getName()
Description copied from interface: Extendable
Return the name assigned to this service extension. This name must be unique within context of the installed node and is used to register and lookup the extension through a LexBIGService.

Specified by:
getName in interface Extendable

getProvider

public java.lang.String getProvider()
Description copied from interface: Extendable
Return an identifier for the extension provider.

Specified by:
getProvider in interface Extendable

getVersion

public java.lang.String getVersion()
Description copied from interface: Extendable
Return version information about the extension.

Specified by:
getVersion in interface Extendable

getComparatorForSearchClass

public <T> java.util.Comparator<T> getComparatorForSearchClass(java.lang.Class<T> arg0)
                                                    throws LBParameterException
Description copied from interface: Sort
Gets the comparator for search class.

Specified by:
getComparatorForSearchClass in interface Sort
Parameters:
arg0 - the search class
Returns:
the comparator for search class
Throws:
LBParameterException - the LB parameter exception

isSortValidForClass

public boolean isSortValidForClass(java.lang.Class<?> arg0)
Description copied from interface: Sort
Checks if this sort is valid for the class.

Specified by:
isSortValidForClass in interface Sort
Parameters:
arg0 - the clazz
Returns:
true, if this sort is valid for the class

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.