org.openrdf.sesame.sail.util
Class QuerySailStack

java.lang.Object
  extended byorg.openrdf.sesame.sail.util.QuerySailStack

public class QuerySailStack
extends Object

QuerySailStack - queries the sail stack for a SAIL that is instance of a specific class.i.e. implements a specific interface.

Version:
1.0
Author:
damyan ognyanoff

Constructor Summary
QuerySailStack()
           
 
Method Summary
static Sail queryInterface(Sail base, Class classToQuery)
          Gets the first SAIL from the stacked ones that is instanceof the specified class.
static Sail queryInterface(Sail base, String classToQuery)
          Gets the first SAIL from the stacked ones that is instanceof the specified class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuerySailStack

public QuerySailStack()
Method Detail

queryInterface

public static Sail queryInterface(Sail base,
                                  String classToQuery)
Gets the first SAIL from the stacked ones that is instanceof the specified class.

Parameters:
base - the base SAIL in the stacked SAILs list.
classToQuery - the class of the interface wanted
Returns:
the first SAIL that is instance of the specified class

queryInterface

public static Sail queryInterface(Sail base,
                                  Class classToQuery)
Gets the first SAIL from the stacked ones that is instanceof the specified class.

Parameters:
base - the base SAIL in the stacked SAILs list.
classToQuery - the class of the interface wanted
Returns:
the first SAIL that is instance of the specified class


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.