story.scheherazade.verbalizer
Class ListVerbalization

java.lang.Object
  extended by story.scheherazade.verbalizer.ListVerbalization
All Implemented Interfaces:
Verbalization

public class ListVerbalization
extends java.lang.Object
implements Verbalization

A set of utterances which are in a list. The verbalizations that result from each command in the list will be separated by a comma, and the word "and" will precede the verbalization of the final command. If there are two or one elements, the punctuation is altered accordingly.


Constructor Summary
ListVerbalization(Discourse sequence, boolean useSemis, boolean forceSeparator, boolean isActionSequence)
           
 
Method Summary
 boolean containsContent()
          Returns whether the object contains at least one non-null verbalization.
 java.lang.StringBuffer render()
           
 Serialization serialize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListVerbalization

public ListVerbalization(Discourse sequence,
                         boolean useSemis,
                         boolean forceSeparator,
                         boolean isActionSequence)
                  throws Scheherexception
Throws:
Scheherexception
Method Detail

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Specified by:
render in interface Verbalization
Throws:
Scheherexception

serialize

public Serialization serialize()
                        throws Scheherexception
Specified by:
serialize in interface Verbalization
Throws:
Scheherexception

containsContent

public boolean containsContent()
                        throws Scheherexception
Returns whether the object contains at least one non-null verbalization.

Specified by:
containsContent in interface Verbalization
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.