org.apache.clerezza.rdf.core.sparql
Class StringQuerySerializer

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.StringQuerySerializer
Direct Known Subclasses:
SimpleStringQuerySerializer

public abstract class StringQuerySerializer
extends Object

This abstract class provides a method to generate a String representation of a Query.

Author:
hasan

Constructor Summary
StringQuerySerializer()
           
 
Method Summary
abstract  String serialize(AskQuery askQuery)
          Serializes an AskQuery object to a String.
abstract  String serialize(ConstructQuery constructQuery)
          Serializes a ConstructQuery object to a String.
abstract  String serialize(DescribeQuery describeQuery)
          Serializes a DescribeQuery object to a String.
 String serialize(Query query)
          Serializes a Query object to a String.
abstract  String serialize(SelectQuery selectQuery)
          Serializes a SelectQuery object to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringQuerySerializer

public StringQuerySerializer()
Method Detail

serialize

public String serialize(Query query)
Serializes a Query object to a String.

Parameters:
query - the Query object to be serialized
Returns:
a String representation of the specified Query object.

serialize

public abstract String serialize(SelectQuery selectQuery)
Serializes a SelectQuery object to a String.

Parameters:
selectQuery - the SelectQuery object to be serialized
Returns:
a String representation of the specified SelectQuery object.

serialize

public abstract String serialize(ConstructQuery constructQuery)
Serializes a ConstructQuery object to a String.

Parameters:
constructQuery - the ConstructQuery object to be serialized
Returns:
a String representation of the specified ConstructQuery object.

serialize

public abstract String serialize(DescribeQuery describeQuery)
Serializes a DescribeQuery object to a String.

Parameters:
describeQuery - the DescribeQuery object to be serialized
Returns:
a String representation of the specified DescribeQuery object.

serialize

public abstract String serialize(AskQuery askQuery)
Serializes an AskQuery object to a String.

Parameters:
askQuery - the AskQuery object to be serialized
Returns:
a String representation of the specified AskQuery object.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.