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 Type
    Method
    Description
    boolean
    accept(Syntax syntax)
    Return true if this factory can create a serializer for the given syntax
    create(Syntax syntax, Prologue prologue, org.apache.jena.atlas.io.IndentedWriter writer)
    Return a serializer for the given syntax
    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 Details

    • 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 - Syntax
      prologue - Prologue
      writer - 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 - Syntax
      context - Serialization Context
      writer - Writer
      Returns:
      Serializer