Fido Alpha 3.2

fido.linguistic.components
Class VerbPhrase

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

public class VerbPhrase
extends java.lang.Object

Represents a verb, with all associated components such as all adverbs and adverbial prepositional phrases.


Constructor Summary
VerbPhrase()
          Creates a new VerbPhrase object with no adverbs or prepositional phrases.
 
Method Summary
 void addAdverb(AdverbClass adverb)
          Adds an AdverbClass to this verb phrase.
 void addPrepositionalPhrase(PrepositionalPhrase phrase)
          Adds an PrepositionalPhrase to this verb phrase.
 java.util.Iterator getAdverbs()
          Returns an Iterator over all of the AdverbClass modifying this verb phrase.
 java.util.Iterator getPrepositionalPhrases()
          Returns an Iterator over all of the PrepositionalPhrases modifying this verb phrase.
 VerbClass getVerbClass()
          Returns the VerbClass for this verb phrase.
 void setVerbClass(VerbClass verb)
          Sets the VerbClass for this verb phrase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbPhrase

public VerbPhrase()
Creates a new VerbPhrase object with no adverbs or prepositional phrases.

Method Detail

getVerbClass

public VerbClass getVerbClass()
Returns the VerbClass for this verb phrase. This is the actual verb string and any associated Morphology tags.

Returns:
The VerbClass for this verb phrase.

setVerbClass

public void setVerbClass(VerbClass verb)
Sets the VerbClass for this verb phrase. This is the actual verb string and any associated Morphology tags.

Parameters:
verb - The VerbClass for this verb phrase.

getAdverbs

public java.util.Iterator getAdverbs()
Returns an Iterator over all of the AdverbClass modifying this verb phrase.

Returns:
An Iterator of AdverbClass classes.

addAdverb

public void addAdverb(AdverbClass adverb)
Adds an AdverbClass to this verb phrase. The AdverbClass represents an adverb modifying the verb.

Parameters:
adverb - Adverb to add.

getPrepositionalPhrases

public java.util.Iterator getPrepositionalPhrases()
Returns an Iterator over all of the PrepositionalPhrases modifying this verb phrase.

Returns:
An Iterator of PrepositionalPhrase classes.

addPrepositionalPhrase

public void addPrepositionalPhrase(PrepositionalPhrase phrase)
Adds an PrepositionalPhrase to this verb phrase. The PrepositionalPhrase represents an adverbial prepositional phrase modifying the verb.

Parameters:
phrase - PrepositionalPhrase to add.

Fido Alpha 3.2