|
Copyright © Rasmus Sten and contributors, 1997-2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nu.dll.lyskom.TextMapping
This class handles storage of global text numbers for one conference.
Field Summary | |
static int |
DEBUG
|
Constructor Summary | |
TextMapping()
|
Method Summary | |
void |
first()
Move the "cursor" to the beginning of the list of pairs (similarly to java.sql.ResultSet.first() I thought that I needed this method, but on second thought, I didn't. |
int |
globalToLocal(int n)
|
boolean |
hasMoreElements()
|
int |
lastLocal()
|
int |
localToGlobal(int n)
|
java.lang.Object |
nextElement()
Returns the next Global number |
boolean |
removePair(int localNo)
Remove a local-global pair from this mapping |
int |
size()
Return the number of local-global pairs in this mapping |
void |
update(int offset,
nu.dll.lyskom.KomToken[] tk,
boolean keepZeroes)
Update the TextMapping with results from a localToGlobal call |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEBUG
Constructor Detail |
public TextMapping()
Method Detail |
public int localToGlobal(int n)
public int globalToLocal(int n)
public void first()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public int lastLocal()
public void update(int offset, nu.dll.lyskom.KomToken[] tk, boolean keepZeroes)
offset
- Not really sure when this could be anything else than 0 -- Rasmus?tk
- comes from RpcReply.getParameters()keepZeroes
- Keep the pairs where the global part is 0 --
that is, texts that can't be read (probably since they've been
deleted)public boolean removePair(int localNo)
public int size()
|
Copyright © Rasmus Sten and contributors, 1997-2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |