|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uottawa.balie.PunctLookup
public class PunctLookup
Wraps around a hashtable that contains a list of punctuation. Also offers service functions to resolve punctuation equivalence.
Constructor Summary | |
---|---|
PunctLookup()
Initializes the hashtable with the punctuation lookup and equivalences. |
Method Summary | |
---|---|
java.lang.String |
GetPunctEquivalence(java.lang.String pi_Char)
Gets the equivalent char to a given punctuation (e.g.: every quote characters are equivalent with the char '"') |
int |
GetPunctType(java.lang.String pi_Char)
Gets the punctuation type (e.g.: '.' is period) of a char |
boolean |
IsInternalPunct(char pi_Char)
Checks if a char is an internal punctuation that is not welcome inside a word (ex.: '.' or ',' or ':') |
boolean |
IsPunctuation(char pi_Char)
Determines wether or not a given char is a known punctuation in Balie. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PunctLookup()
Method Detail |
---|
public int GetPunctType(java.lang.String pi_Char)
pi_Char
- String of lenght 1
TokenConsts
for enumeration)TokenConsts
public boolean IsPunctuation(char pi_Char)
pi_Char
- The char to test
public java.lang.String GetPunctEquivalence(java.lang.String pi_Char)
pi_Char
- String (typically of lenght 1) for which we want the equivalent representation.
public boolean IsInternalPunct(char pi_Char)
pi_Char
- The char to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |