org.apache.clerezza.rdf.core.sparql.query.impl
Class SimpleStringQuerySerializer

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.StringQuerySerializer
      extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleStringQuerySerializer

public class SimpleStringQuerySerializer
extends StringQuerySerializer

This class implements abstract methods of StringQuerySerializer to serialize specific Query types.

Author:
hasan

Constructor Summary
SimpleStringQuerySerializer()
           
 
Method Summary
 String serialize(AskQuery askQuery)
          Serializes an AskQuery object to a String.
 String serialize(ConstructQuery constructQuery)
          Serializes a ConstructQuery object to a String.
 String serialize(DescribeQuery describeQuery)
          Serializes a DescribeQuery object to a String.
 String serialize(SelectQuery selectQuery)
          Serializes a SelectQuery object to a String.
 
Methods inherited from class org.apache.clerezza.rdf.core.sparql.StringQuerySerializer
serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStringQuerySerializer

public SimpleStringQuerySerializer()
Method Detail

serialize

public String serialize(SelectQuery selectQuery)
Description copied from class: StringQuerySerializer
Serializes a SelectQuery object to a String.

Specified by:
serialize in class StringQuerySerializer
Parameters:
selectQuery - the SelectQuery object to be serialized
Returns:
a String representation of the specified SelectQuery object.

serialize

public String serialize(ConstructQuery constructQuery)
Description copied from class: StringQuerySerializer
Serializes a ConstructQuery object to a String.

Specified by:
serialize in class StringQuerySerializer
Parameters:
constructQuery - the ConstructQuery object to be serialized
Returns:
a String representation of the specified ConstructQuery object.

serialize

public String serialize(DescribeQuery describeQuery)
Description copied from class: StringQuerySerializer
Serializes a DescribeQuery object to a String.

Specified by:
serialize in class StringQuerySerializer
Parameters:
describeQuery - the DescribeQuery object to be serialized
Returns:
a String representation of the specified DescribeQuery object.

serialize

public String serialize(AskQuery askQuery)
Description copied from class: StringQuerySerializer
Serializes an AskQuery object to a String.

Specified by:
serialize in class StringQuerySerializer
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.