Interface QuerySerializerFactory
-
public interface QuerySerializerFactory
Interface for query serializer factories, these may be registered with theSerializerRegistry
thus allowing the serialization of queries to be customised
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(Syntax syntax)
Return true if this factory can create a serializer for the given syntaxQueryVisitor
create(Syntax syntax, Prologue prologue, org.apache.jena.atlas.io.IndentedWriter writer)
Return a serializer for the given syntaxQueryVisitor
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
-
-
-
Method Detail
-
accept
boolean accept(Syntax syntax)
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
-
-