ca.uottawa.balie
Class UnbreakableLookup

java.lang.Object
  extended by ca.uottawa.balie.UnbreakableLookup

public class UnbreakableLookup
extends java.lang.Object

Wraps around a hashtable that contains a list of Unbreakable tokens. An unbreakable is token is a sequence of chars that would be otherwise splitted by the base algorithm but that has a meaning on its own. e.g.: C# is a token that should not be breaked in its constituant ('C' and '#')

Author:
nadeaud

Constructor Summary
UnbreakableLookup()
          Initializes the hashtable with the unbreakable words.
 
Method Summary
 boolean IsUnbreakable(java.lang.String pi_Word)
          Checks if a word is an Unbreakable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnbreakableLookup

public UnbreakableLookup()
Initializes the hashtable with the unbreakable words.

Method Detail

IsUnbreakable

public boolean IsUnbreakable(java.lang.String pi_Word)
Checks if a word is an Unbreakable.

Parameters:
pi_Word - The word to check
Returns:
True if the word is an unbreakable