public class QueryUtils extends Object
Constructor and Description |
---|
QueryUtils() |
Modifier and Type | Method and Description |
---|---|
static QueryProcessorIF |
createQueryProcessor(String queryLanguage,
TopicMapIF topicmap,
LocatorIF base) |
static QueryProcessorIF |
createQueryProcessor(String queryLanguage,
TopicMapIF topicmap,
LocatorIF base,
Map properties)
EXPERIMENTAL: ...
|
static QueryProcessorIF |
createQueryProcessor(String queryLanguage,
TopicMapIF topicmap,
Map properties) |
static QueryProcessorIF |
createQueryProcessor(TopicMapIF topicmap)
PUBLIC: Factory method for creating a query processor for a given
topic map; always returns a new processor.
|
static QueryProcessorIF |
createQueryProcessor(TopicMapIF topicmap,
LocatorIF base)
PUBLIC: Factory method for creating a new query processor for a
given topic map and base address.
|
static QueryProcessorIF |
createQueryProcessor(TopicMapIF topicmap,
LocatorIF base,
Map properties) |
static QueryProcessorIF |
createQueryProcessor(TopicMapIF topicmap,
Map properties)
EXPERIMENTAL: ...
|
static Collection<String> |
getAvailableQueryLanguages()
PUBLIC: Returns all available query language implementations.
|
static QueryProcessorIF |
getQueryProcessor(String queryLanguage,
TopicMapIF topicmap) |
static QueryProcessorIF |
getQueryProcessor(String queryLanguage,
TopicMapIF topicmap,
LocatorIF base)
PUBLIC: Returns the default query processor for the given topic
map and base address.
|
static QueryProcessorIF |
getQueryProcessor(TopicMapIF topicmap)
PUBLIC: Returns a query processor for the given topic map; will
always return the same processor with the default query language
for the same topic map.
|
static QueryProcessorIF |
getQueryProcessor(TopicMapIF topicmap,
LocatorIF base) |
static QueryProcessorFactoryIF |
getQueryProcessorFactory(String language)
PUBLIC: Returns the
QueryProcessorFactoryIF instance associated
with a specific query language. |
static DeclarationContextIF |
parseDeclarations(TopicMapIF topicmap,
String declarations)
PUBLIC: Parses a set of tolog declarations and returns an
object representing the resulting declaration context.
|
static DeclarationContextIF |
parseDeclarations(TopicMapIF topicmap,
String declarations,
DeclarationContextIF context)
PUBLIC: Parses a set of tolog declarations in an existing
context, and returns an object representing the resulting nested
declaration context.
|
public static Collection<String> getAvailableQueryLanguages()
Collection
of all available query languages.public static QueryProcessorFactoryIF getQueryProcessorFactory(String language)
QueryProcessorFactoryIF
instance associated
with a specific query language. If the language is not available, null will
be returned.language
- the query language to be used (case insensitive).QueryProcessorFactoryIF
instance for this language, or
null, if not available.public static QueryProcessorIF getQueryProcessor(TopicMapIF topicmap)
public static QueryProcessorIF getQueryProcessor(String queryLanguage, TopicMapIF topicmap)
public static QueryProcessorIF getQueryProcessor(TopicMapIF topicmap, LocatorIF base)
public static QueryProcessorIF getQueryProcessor(String queryLanguage, TopicMapIF topicmap, LocatorIF base)
public static QueryProcessorIF createQueryProcessor(TopicMapIF topicmap)
public static QueryProcessorIF createQueryProcessor(TopicMapIF topicmap, LocatorIF base)
public static QueryProcessorIF createQueryProcessor(String queryLanguage, TopicMapIF topicmap, LocatorIF base)
public static QueryProcessorIF createQueryProcessor(TopicMapIF topicmap, Map properties)
public static QueryProcessorIF createQueryProcessor(TopicMapIF topicmap, LocatorIF base, Map properties)
public static QueryProcessorIF createQueryProcessor(String queryLanguage, TopicMapIF topicmap, Map properties)
public static QueryProcessorIF createQueryProcessor(String queryLanguage, TopicMapIF topicmap, LocatorIF base, Map properties)
public static DeclarationContextIF parseDeclarations(TopicMapIF topicmap, String declarations) throws InvalidQueryException
InvalidQueryException
public static DeclarationContextIF parseDeclarations(TopicMapIF topicmap, String declarations, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException