Fido Alpha 3.2

fido.linguistic.components
Class NounClass

java.lang.Object
  |
  +--fido.linguistic.components.NounClass

public class NounClass
extends java.lang.Object

Represents the actual noun in a NounPhrase.

See Also:
NounPhrase

Constructor Summary
NounClass(java.lang.String noun, int objectId, boolean plural)
          Creates a new NounClass.
 
Method Summary
 int getObjectId()
          Returns the Object Id this noun represents in the ObjectTree.
 boolean isPlural()
          Returns if this noun is plural.
 java.lang.String toString()
          Returns the string for this noun.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NounClass

public NounClass(java.lang.String noun,
                 int objectId,
                 boolean plural)
Creates a new NounClass.

Parameters:
noun - String containing the noun.
objectId - Object Id this noun represents in the ObjectTree.
plural - True if this noun is plural. False otherwise.
Method Detail

getObjectId

public int getObjectId()
Returns the Object Id this noun represents in the ObjectTree.

Returns:
Object Id this noun represents.
See Also:
ObjectTable

isPlural

public boolean isPlural()
Returns if this noun is plural. Set if Morphology found a plural tag for this noun.

Returns:
True if the noun is plural. False if it is not.
See Also:
LanguageMorphologyTable

toString

public java.lang.String toString()
Returns the string for this noun.

Overrides:
toString in class java.lang.Object
Returns:
Returns the string for this noun.

Fido Alpha 3.2