standup.lexicon
Class POS

java.lang.Object
  extended by standup.lexicon.POS
All Implemented Interfaces:
Serializable

public class POS
extends Object
implements Serializable

A POS object represents a part-of-speech of a Lexeme.

A POS can either represent a noun, an adjective, a verb, or an adverb. Use the isNoun(), isAdjective(), isVerb(), and isAdverb() methods to determine the correct value.

Author:
Ruli Manurung
See Also:
Lexeme.getPartOfSpeech(), Serialized Form

Field Summary
private static int ADJ
           
private static int ADV
           
private static int NOUN
           
private  int pos
           
private static long serialVersionUID
           
private static int VERB
           
 
Constructor Summary
POS(String _pos)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isAdjective()
          Returns true if this POS represents an adjective, false otherwise.
 boolean isAdverb()
          Returns true if this POS represents an adverb, false otherwise.
 boolean isNoun()
          Returns true if this POS represents a noun, false otherwise.
 boolean isVerb()
          Returns true if this POS represents a verb, false otherwise.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

pos

private int pos

NOUN

private static final int NOUN
See Also:
Constant Field Values

VERB

private static final int VERB
See Also:
Constant Field Values

ADJ

private static final int ADJ
See Also:
Constant Field Values

ADV

private static final int ADV
See Also:
Constant Field Values
Constructor Detail

POS

public POS(String _pos)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

isNoun

public boolean isNoun()
Returns true if this POS represents a noun, false otherwise.

Returns:

isVerb

public boolean isVerb()
Returns true if this POS represents a verb, false otherwise.

Returns:

isAdjective

public boolean isAdjective()
Returns true if this POS represents an adjective, false otherwise.

Returns:

isAdverb

public boolean isAdverb()
Returns true if this POS represents an adverb, false otherwise.

Returns: