Fido Alpha 3.2

fido.linguistic.components
Class Fragment

java.lang.Object
  |
  +--fido.linguistic.components.Fragment
All Implemented Interfaces:
Clause

public class Fragment
extends java.lang.Object
implements Clause

A concrete subclass of Clause that represents a command without a verb. Fragments entered by the user are either:

Fragments are resolved using the FragmentResolver class.

See Also:
FragmentResolver

Constructor Summary
Fragment()
          Create a new Fragment class.
 
Method Summary
 void addPrepositionalPhrase(PrepositionalPhrase phrase)
          Adds a PrepositionalPhrase to this fragment.
 AdjectiveClass getAdjective()
          Returns the AdjectiveClass for this Fragment.
 Noun getNoun()
          Returns the Noun class for this Fragment.
 java.util.Iterator getPrepositionalPhrases()
          Returns an Iterator over all of the PrepositionalPhrases contained in this Fragment.
 void setAdjective(AdjectiveClass adj)
          Sets the Adjective for this fragment.
 void setNoun(Noun noun)
          Sets the Noun for this fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fragment

public Fragment()
Create a new Fragment class.

Method Detail

setNoun

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

Parameters:
noun - Noun for this fragment.

setAdjective

public void setAdjective(AdjectiveClass adj)
Sets the Adjective for this fragment.

Parameters:
adj - Adjective for this fragment.

addPrepositionalPhrase

public void addPrepositionalPhrase(PrepositionalPhrase phrase)
Adds a PrepositionalPhrase to this fragment.

Parameters:
phrase - PrepositionalPhrase to add.

getNoun

public Noun getNoun()
Returns the Noun class for this Fragment.

Returns:
The Noun class for this Fragment.

getAdjective

public AdjectiveClass getAdjective()
Returns the AdjectiveClass for this Fragment.

Returns:
The AdjectiveClass for this Fragment.

getPrepositionalPhrases

public java.util.Iterator getPrepositionalPhrases()
Returns an Iterator over all of the PrepositionalPhrases contained in this Fragment.

Returns:
Iterator of PrepositionalPhrases
See Also:
PrepositionalPhrase

Fido Alpha 3.2