Fido Alpha 3.2

fido.linguistic.components
Class PrepositionalPhrase

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

public class PrepositionalPhrase
extends java.lang.Object

Represents a prepositional phrase. The phrase contains a string for the preposition and a Noun object as the object of the preposition.


Constructor Summary
PrepositionalPhrase(java.lang.String preposition)
          Creates a new PrepositionalPhrase object.
 
Method Summary
 Noun getNoun()
          Returns the Noun for this phrase.
 java.lang.String getPreposition()
          Returns the string containing the preposition for this phrase.
 void setNoun(Noun noun)
          Sets the Noun for this phrase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepositionalPhrase

public PrepositionalPhrase(java.lang.String preposition)
Creates a new PrepositionalPhrase object.

Parameters:
preposition - A string containing the preposition
Method Detail

getNoun

public Noun getNoun()
Returns the Noun for this phrase.

Returns:
The Noun for this phrase.

setNoun

public void setNoun(Noun noun)
Sets the Noun for this phrase.

Parameters:
noun - Noun for this phrase.

getPreposition

public java.lang.String getPreposition()
Returns the string containing the preposition for this phrase.

Returns:
The string containing the preposition.

Fido Alpha 3.2