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