org.argouml.persistence
Class XMLTokenTableBase
java.lang.Object
org.argouml.persistence.XMLTokenTableBase
- Direct Known Subclasses:
- ArgoTokenTable, TodoTokenTable
- public abstract class XMLTokenTableBase
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XMLTokenTableBase
public XMLTokenTableBase(int tableSize)
- The constructor.
- Parameters:
tableSize
- the size of the table
toToken
public final int toToken(String s,
boolean push)
- Parameters:
s
- the stringpush
- 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 numberi
- 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.