uk.ac.soton.ecs.grimoires.server.rdql
Class SimpleVariableGenerator

java.lang.Object
  extended byuk.ac.soton.ecs.grimoires.server.rdql.SimpleVariableGenerator
All Implemented Interfaces:
VariableGenerator

public class SimpleVariableGenerator
extends Object
implements VariableGenerator

Author:
sm

Constructor Summary
SimpleVariableGenerator(String defaultPrefix)
           
 
Method Summary
 String next()
           
 String next(String chosenPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleVariableGenerator

public SimpleVariableGenerator(String defaultPrefix)
Method Detail

next

public String next()
Specified by:
next in interface VariableGenerator
Returns:
the name of a new variable for the current query.

next

public String next(String chosenPrefix)
Specified by:
next in interface VariableGenerator
Returns:
the name of a new variable starting with string s for the current query.