story.scheherazade.verbalizer
Class Discourse

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

public class Discourse
extends java.lang.Object
implements Verbalization

A Vector of Verbalizations


Constructor Summary
Discourse(java.lang.String source)
           
Discourse(java.lang.String source, SerializationSymbol relatedSymbol)
           
Discourse(Verbalization firstVerbalization, java.lang.String source, SerializationSymbol relatedSymbol)
           
 
Method Summary
 void add(java.lang.String string)
           
 void add(Verbalization other)
           
 boolean containsContent()
          Returns whether the object contains at least one non-null verbalization.
 Verbalization get(int i)
           
 SerializationSymbol getRelatedSymbol()
           
 void insert(Verbalization element, int position)
           
 java.lang.StringBuffer render()
           
 Serialization serialize()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discourse

public Discourse(java.lang.String source)

Discourse

public Discourse(java.lang.String source,
                 SerializationSymbol relatedSymbol)
          throws Scheherexception
Throws:
Scheherexception

Discourse

public Discourse(Verbalization firstVerbalization,
                 java.lang.String source,
                 SerializationSymbol relatedSymbol)
          throws Scheherexception
Throws:
Scheherexception
Method Detail

render

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

getRelatedSymbol

public SerializationSymbol getRelatedSymbol()

add

public void add(java.lang.String string)
         throws Scheherexception
Throws:
Scheherexception

add

public void add(Verbalization other)
         throws Scheherexception
Throws:
Scheherexception

insert

public void insert(Verbalization element,
                   int position)
            throws Scheherexception
Throws:
Scheherexception

get

public Verbalization get(int i)
                  throws Scheherexception
Throws:
Scheherexception

size

public int size()

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.