ca.uottawa.balie
Class TokenConsts

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

public class TokenConsts
extends java.lang.Object

Static class containing enumeration of token type value. Also contains the service function "Is".

Author:
nadeaud

Field Summary
static int POS_ADJECTIVE
           
static int POS_ADVERB
           
static int POS_CONJUNCTION
           
static int POS_DETERMINER
           
static int POS_NOUN
           
static int POS_NUMBER
           
static int POS_NUMBER_LIKE
           
static int POS_PARTICLE
           
static int POS_POSSESSIVE
           
static int POS_PREPOSITION
           
static int POS_PRONOUN
           
static int POS_PROPER_NAME_LIKE
           
static int POS_UNKNOWN
           
static int POS_VERB
           
static int PUNCT_AMPERSAND
           
static int PUNCT_APOSTROPHE
           
static int PUNCT_BACK_SLASH
           
static int PUNCT_CLOSE_BRACKET
           
static int PUNCT_CLOSE_PARENTHESIS
           
static int PUNCT_COLON
           
static int PUNCT_COMMA
           
static int PUNCT_COMMERCIAL_AT
           
static int PUNCT_COPYRIGHT
           
static int PUNCT_CURRENCY
           
static int PUNCT_DASH
           
static int PUNCT_EXCLAMATION
           
static int PUNCT_INTERROGATION
           
static int PUNCT_INV_EXCLAMATION
           
static int PUNCT_INV_INTERROGATION
           
static int PUNCT_LINEFEED
           
static int PUNCT_MISC_ARITHMETIC
           
static int PUNCT_NEWLINE
           
static int PUNCT_OPEN_BRACKET
           
static int PUNCT_OPEN_PARENTHESIS
           
static int PUNCT_PERCENT
           
static int PUNCT_PERIOD
           
static int PUNCT_PIPE
           
static int PUNCT_QUOTE
           
static int PUNCT_SEMI_COLON
           
static int PUNCT_SLASH
           
static int PUNCT_TABULATION
           
static int PUNCT_TILDE
           
static int PUNCT_UNDERSCORE
           
static int PUNCT_UNKNOWN
           
static int TYPE_PUNCTUATION
           
static int TYPE_WORD
           
 
Method Summary
static boolean Is(int pi_ToCheck, int pi_Reference)
          Checks if an integer contains a reference value (using bitwise AND).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_PUNCTUATION

public static final int TYPE_PUNCTUATION
See Also:
Constant Field Values

TYPE_WORD

public static final int TYPE_WORD
See Also:
Constant Field Values

PUNCT_PERIOD

public static final int PUNCT_PERIOD
See Also:
Constant Field Values

PUNCT_COMMA

public static final int PUNCT_COMMA
See Also:
Constant Field Values

PUNCT_EXCLAMATION

public static final int PUNCT_EXCLAMATION
See Also:
Constant Field Values

PUNCT_INTERROGATION

public static final int PUNCT_INTERROGATION
See Also:
Constant Field Values

PUNCT_SEMI_COLON

public static final int PUNCT_SEMI_COLON
See Also:
Constant Field Values

PUNCT_COLON

public static final int PUNCT_COLON
See Also:
Constant Field Values

PUNCT_OPEN_PARENTHESIS

public static final int PUNCT_OPEN_PARENTHESIS
See Also:
Constant Field Values

PUNCT_CLOSE_PARENTHESIS

public static final int PUNCT_CLOSE_PARENTHESIS
See Also:
Constant Field Values

PUNCT_QUOTE

public static final int PUNCT_QUOTE
See Also:
Constant Field Values

PUNCT_COMMERCIAL_AT

public static final int PUNCT_COMMERCIAL_AT
See Also:
Constant Field Values

PUNCT_APOSTROPHE

public static final int PUNCT_APOSTROPHE
See Also:
Constant Field Values

PUNCT_DASH

public static final int PUNCT_DASH
See Also:
Constant Field Values

PUNCT_SLASH

public static final int PUNCT_SLASH
See Also:
Constant Field Values

PUNCT_BACK_SLASH

public static final int PUNCT_BACK_SLASH
See Also:
Constant Field Values

PUNCT_MISC_ARITHMETIC

public static final int PUNCT_MISC_ARITHMETIC
See Also:
Constant Field Values

PUNCT_PERCENT

public static final int PUNCT_PERCENT
See Also:
Constant Field Values

PUNCT_OPEN_BRACKET

public static final int PUNCT_OPEN_BRACKET
See Also:
Constant Field Values

PUNCT_CLOSE_BRACKET

public static final int PUNCT_CLOSE_BRACKET
See Also:
Constant Field Values

PUNCT_INV_EXCLAMATION

public static final int PUNCT_INV_EXCLAMATION
See Also:
Constant Field Values

PUNCT_INV_INTERROGATION

public static final int PUNCT_INV_INTERROGATION
See Also:
Constant Field Values

PUNCT_AMPERSAND

public static final int PUNCT_AMPERSAND
See Also:
Constant Field Values

PUNCT_UNDERSCORE

public static final int PUNCT_UNDERSCORE
See Also:
Constant Field Values

PUNCT_TILDE

public static final int PUNCT_TILDE
See Also:
Constant Field Values

PUNCT_PIPE

public static final int PUNCT_PIPE
See Also:
Constant Field Values

PUNCT_CURRENCY

public static final int PUNCT_CURRENCY
See Also:
Constant Field Values

PUNCT_COPYRIGHT

public static final int PUNCT_COPYRIGHT
See Also:
Constant Field Values

PUNCT_TABULATION

public static final int PUNCT_TABULATION
See Also:
Constant Field Values

PUNCT_LINEFEED

public static final int PUNCT_LINEFEED
See Also:
Constant Field Values

PUNCT_NEWLINE

public static final int PUNCT_NEWLINE
See Also:
Constant Field Values

PUNCT_UNKNOWN

public static final int PUNCT_UNKNOWN
See Also:
Constant Field Values

POS_DETERMINER

public static final int POS_DETERMINER
See Also:
Constant Field Values

POS_NOUN

public static final int POS_NOUN
See Also:
Constant Field Values

POS_ADJECTIVE

public static final int POS_ADJECTIVE
See Also:
Constant Field Values

POS_VERB

public static final int POS_VERB
See Also:
Constant Field Values

POS_ADVERB

public static final int POS_ADVERB
See Also:
Constant Field Values

POS_CONJUNCTION

public static final int POS_CONJUNCTION
See Also:
Constant Field Values

POS_PREPOSITION

public static final int POS_PREPOSITION
See Also:
Constant Field Values

POS_PARTICLE

public static final int POS_PARTICLE
See Also:
Constant Field Values

POS_PRONOUN

public static final int POS_PRONOUN
See Also:
Constant Field Values

POS_POSSESSIVE

public static final int POS_POSSESSIVE
See Also:
Constant Field Values

POS_PROPER_NAME_LIKE

public static final int POS_PROPER_NAME_LIKE
See Also:
Constant Field Values

POS_NUMBER

public static final int POS_NUMBER
See Also:
Constant Field Values

POS_NUMBER_LIKE

public static final int POS_NUMBER_LIKE
See Also:
Constant Field Values

POS_UNKNOWN

public static final int POS_UNKNOWN
See Also:
Constant Field Values
Method Detail

Is

public static boolean Is(int pi_ToCheck,
                         int pi_Reference)
Checks if an integer contains a reference value (using bitwise AND). For instance, if the integer is: 11000000000000010000000000000001 and the reference value is: 01000000000000000000000000000000 then the reference is contained in the integer to check. Caution, pi_Reference must refer to a unique value (only one bit set to 1)!

Parameters:
pi_ToCheck - The integer value to check
pi_Reference - The reference value
Returns:
True if the checked value contains the reference