Fido Alpha 3.2

fido.linguistic.components
Class AdjectiveClass

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

public class AdjectiveClass
extends java.lang.Object

Represents an adjective within the sentence. Adjectives serve two purposes:

Adjectives can have a comparative and superlative type that compares two or more nouns. This is currently not supported.


Field Summary
static int COMPARATIVE
          Constant used for the type field.
static int NORMAL
          Constant used for the type field.
static int SUPERLATIVE
          Constant used for the type field.
 
Constructor Summary
AdjectiveClass(java.lang.String adjective, int type)
          Creates a new AdjectiveClass.
 
Method Summary
 int getType()
          Returns the type of this adjective.
 java.lang.String toString()
          Returns the string for this adjective.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
Constant used for the type field. Defines the adjective as normal (not comparative or superlative).

See Also:
Constant Field Values

COMPARATIVE

public static final int COMPARATIVE
Constant used for the type field. Defines the adjective as a comparative, which means the adjective describes the difference between two nouns. In English, an example would be better.

See Also:
Constant Field Values

SUPERLATIVE

public static final int SUPERLATIVE
Constant used for the type field. Defines the adjective as a superlative, which means the adjective describes the difference between more than two nouns. In English, an example would be best.

See Also:
Constant Field Values
Constructor Detail

AdjectiveClass

public AdjectiveClass(java.lang.String adjective,
                      int type)
Creates a new AdjectiveClass.

Parameters:
adjective - String containing the adjective
type - Type of adjective. Can be one of the following: The constants defined in this class should be used.
Method Detail

getType

public int getType()
Returns the type of this adjective. Type can be one of One of the constants in this class will be returned.

Returns:
Returns the type of this adjective.

toString

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

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

Fido Alpha 3.2