org.argouml.persistence
Class XMLTokenTableBase

java.lang.Object
  extended byorg.argouml.persistence.XMLTokenTableBase
Direct Known Subclasses:
ArgoTokenTable, TodoTokenTable

public abstract class XMLTokenTableBase
extends Object


Field Summary
private  boolean dbg
           
private static Logger LOG
           
private  int numOpen
           
private  String[] openTags
           
private  int[] openTokens
           
private  Hashtable tokens
           
 
Constructor Summary
XMLTokenTableBase(int tableSize)
          The constructor.
 
Method Summary
protected  void addToken(String s, Integer i)
           
 boolean contains(String token)
           
 boolean getDbg()
           
 void setDbg(boolean d)
           
protected abstract  void setupTokens()
          This function shall set up all the tokens with the addToken function.
 int toToken(String s, boolean push)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

tokens

private Hashtable tokens

dbg

private boolean dbg

openTags

private String[] openTags

openTokens

private int[] openTokens

numOpen

private int numOpen
Constructor Detail

XMLTokenTableBase

public XMLTokenTableBase(int tableSize)
The constructor.

Parameters:
tableSize - the size of the table
Method Detail

toToken

public final int toToken(String s,
                         boolean push)
Parameters:
s - the string
push - true if the token is to be pushed
Returns:
the token

setDbg

public void setDbg(boolean d)
Parameters:
d - true if debugging

getDbg

public boolean getDbg()
Returns:
true if debugging is turned on

addToken

protected void addToken(String s,
                        Integer i)
Parameters:
s - the string represented by the token number
i - the token number

contains

public boolean contains(String token)
Parameters:
token - the given token
Returns:
true if the token is present

setupTokens

protected abstract void setupTokens()
This function shall set up all the tokens with the addToken function.



ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook