cds.simbad
Class Sesame

java.lang.Object
  extended bycds.simbad.Sesame

public class Sesame
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
not attributable

Field Summary
private  int currIdx
           
private  SesameCommand currSesameCmd
           
private  java.util.ArrayList relist
           
 
Constructor Summary
Sesame()
          Constructor
 
Method Summary
 void add(SesameCommand scmd)
          Adds a SesameCommand to the Sesame object
 SesameCommand getMatchedCommand()
          Returns the SesameCommand object corresponding to the previously called nextMatch() method
 java.lang.String nextMatch(java.lang.String id)
          Returns the next transformation that was possible
 void resetMatch()
          Reset the sesame object with a new identifier to check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relist

private java.util.ArrayList relist

currIdx

private int currIdx

currSesameCmd

private SesameCommand currSesameCmd
Constructor Detail

Sesame

public Sesame()
Constructor

Method Detail

add

public void add(SesameCommand scmd)
Adds a SesameCommand to the Sesame object

Parameters:
scmd - Sesame command

resetMatch

public void resetMatch()
Reset the sesame object with a new identifier to check


nextMatch

public java.lang.String nextMatch(java.lang.String id)
Returns the next transformation that was possible

Returns:
the transformed string

getMatchedCommand

public SesameCommand getMatchedCommand()
Returns the SesameCommand object corresponding to the previously called nextMatch() method