org.netbeans.spi.jackpot
Interface QueryProvider
public interface QueryProvider
The interface Jackpot uses to request Query instances from script
engines.
|
Method Summary |
Query |
getQuery(org.openide.filesystems.FileObject script,
String queryDescription)
Return the Jackpot Query associated with a specified script. |
boolean |
hasQuery(org.openide.filesystems.FileObject script)
Returns whether this QueryProvider can return a Query instance which
is associated with this script. |
hasQuery
boolean hasQuery(org.openide.filesystems.FileObject script)
- Returns whether this QueryProvider can return a Query instance which
is associated with this script. This method only determines whether
creating a script is possible, such as that it recognizes the file
type, but does not guarantee that no exceptions are thrown creating
the Query.
- Parameters:
script - the file to test
- Returns:
- true if a Query can be created from this script.
getQuery
Query getQuery(org.openide.filesystems.FileObject script,
String queryDescription)
throws Exception
- Return the Jackpot Query associated with a specified script.
- Parameters:
script - the script from which a Query class is defined.queryDescription - a short description of the query, as shown in the
Jackpot UI. This string is useful when reporting
any errors creating or executing the query.
- Returns:
- a Query instance associated with this script.
- Throws:
Exception - if there are any problems creating the query.