ucot.parser
Class ParsedData

java.lang.Object
  extended by ucot.parser.ParsedData

public class ParsedData
extends java.lang.Object

Parsed data is returned by parser. This contains a list of sentences (containing words) that have been parsed from usecase.

Author:
pajumasu

Field Summary
private  java.util.List<Sentence> sentences
          Sentences parsed from usecase
private  UseCase usecase
          Usecase this ParsedData was created from
 
Constructor Summary
ParsedData()
           
 
Method Summary
 void addSentence(Sentence sentence)
          Adds a new sentence
 java.lang.String getOriginal()
          Returns the text of the original use case.
 java.util.List<Sentence> getSentences()
          Returns a list of sentences this parsedData contains
 UseCase getUseCase()
          return the usecase that this parsedData was created from
 void setUseCase(UseCase a)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sentences

private java.util.List<Sentence> sentences
Sentences parsed from usecase


usecase

private UseCase usecase
Usecase this ParsedData was created from

Constructor Detail

ParsedData

public ParsedData()
Method Detail

setUseCase

public void setUseCase(UseCase a)

getUseCase

public UseCase getUseCase()
return the usecase that this parsedData was created from

Returns:

addSentence

public void addSentence(Sentence sentence)
Adds a new sentence

Parameters:
sentence - sentence to add

getSentences

public java.util.List<Sentence> getSentences()
Returns a list of sentences this parsedData contains

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOriginal

public java.lang.String getOriginal()
Returns the text of the original use case.

Returns: