Method Summary |
|
public synchronized void | clear() This is used to clear all matches from the resolver. |
public synchronized boolean | contains(String pattern) This will check this Resolver to see if the
pattern given is used by this Resolver , if
it is this will return true . |
public synchronized boolean | contains(Match match) This will check this Resolver to see if the
match given is used by this Resolver , if it
is this will return true . |
public synchronized Match | getMatch(int pos) This will return the corrosponding Match at
the specified position. |
public synchronized Match | getMatch(String pattern) This will return the corrosponding Match at
the specified position. |
public synchronized Match[] | getMatches() Retrives an array of Match 's of each pair that
was entered into this Resolver . |
public synchronized int | indexOf(String pattern) Used to find the position of the Match
stored using the specified pattern. |
public synchronized int | indexOf(String pattern, int from) Used to find the position of the Match
stored using the specified pattern. |
public synchronized void | insert(String pattern, String match) This will add a new pattern with its resolution. |
public synchronized void | insert(String pattern, String match, int pos) This will add a new pattern with its resolution. |
public synchronized boolean | isEmpty() This can be used to determine wheather or not there is any
entrys in the Resolver . |
public synchronized void | remove(int pos) This will remove the entry in this Resolver so that
the pattern will not be used to resolve String 's any
more. |
public synchronized void | remove(String pattern) This will remove the entry in this Resolver so that
the pattern will not be used to resolve String 's any
more. |
public synchronized void | remove(Match match) This will remove the entry in this Resolver so that
the pattern will not be used to resolve String 's any
more. |
public synchronized String | resolve(String text) This will search the patterns in this Resolver to
see if there is a pattern in it that matches the string given.
This will search the patterns from the last entered pattern to
the first entered. |
public synchronized int | size() This will return the number of entrys that have been inserted into
this Resolver . |