Module org.apache.jena.arq
Interface QuerySerializerFactory
public interface QuerySerializerFactory
Interface for query serializer factories, these may be registered with the
SerializerRegistry
thus allowing the serialization of queries to be
customised-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this factory can create a serializer for the given syntaxReturn a serializer for the given syntaxcreate
(Syntax syntax, SerializationContext context, org.apache.jena.atlas.io.IndentedWriter writer) Returns a serializer for the given syntax using an existing serialization context, this method should only be called for serializing sub-queries where the outer context must be honoured
-
Method Details
-
accept
Return true if this factory can create a serializer for the given syntax -
create
QueryVisitor create(Syntax syntax, Prologue prologue, org.apache.jena.atlas.io.IndentedWriter writer) Return a serializer for the given syntax- Parameters:
syntax
- Syntaxprologue
- Prologuewriter
- Writer- Returns:
- Serializer
-
create
QueryVisitor create(Syntax syntax, SerializationContext context, org.apache.jena.atlas.io.IndentedWriter writer) Returns a serializer for the given syntax using an existing serialization context, this method should only be called for serializing sub-queries where the outer context must be honoured- Parameters:
syntax
- Syntaxcontext
- Serialization Contextwriter
- Writer- Returns:
- Serializer
-