Class TupleQueryResultParserRegistry
java.lang.Object
org.eclipse.rdf4j.common.lang.service.ServiceRegistry<QueryResultFormat, TupleQueryResultParserFactory>
org.eclipse.rdf4j.common.lang.service.FileFormatServiceRegistry<QueryResultFormat, TupleQueryResultParserFactory>
org.eclipse.rdf4j.query.resultio.TupleQueryResultParserRegistry
public class TupleQueryResultParserRegistry
extends FileFormatServiceRegistry<QueryResultFormat, TupleQueryResultParserFactory>
A registry that keeps track of the available
TupleQueryResultParserFactorys.- Author:
- Arjohn Kampman
-
Field Summary
Fields inherited from class ServiceRegistry
logger, servicesModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected Map<QueryResultFormat, TupleQueryResultParserFactory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default TupleQueryResultParserRegistry.protected QueryResultFormatgetKey(TupleQueryResultParserFactory factory) Gets the key for the specified service.Methods inherited from class FileFormatServiceRegistry
getFileFormatForFileName, getFileFormatForMIMETypeModifier and TypeMethodDescriptiongetFileFormatForFileName(String fileName) Tries to match the extension of a file name against the list of registred file formats.getFileFormatForMIMEType(String mimeType) Tries to match a MIME type against the list of registered file formats.Methods inherited from class ServiceRegistry
add, get, getAll, getKeys, has, removeModifier and TypeMethodDescriptionadd(TupleQueryResultParserFactory service) Adds a service to the registry.get(QueryResultFormat key) Gets the service for the specified key, if any.getAll()Gets all registered services.getKeys()Gets the set of registered keys.booleanhas(QueryResultFormat key) Checks whether a service for the specified key is available.voidremove(TupleQueryResultParserFactory service) Removes a service from the registry.
-
Constructor Details
-
TupleQueryResultParserRegistry
public TupleQueryResultParserRegistry()
-
-
Method Details
-
getInstance
Gets the default TupleQueryResultParserRegistry.- Returns:
- The default registry.
-
getKey
Description copied from class:ServiceRegistryGets the key for the specified service.- Specified by:
getKeyin classServiceRegistry<QueryResultFormat, TupleQueryResultParserFactory>- Parameters:
factory- The service to get the key for.- Returns:
- The key for the specified service.
-