story.scheherazade.verbalizer
Class Discourse
java.lang.Object
story.scheherazade.verbalizer.Discourse
- All Implemented Interfaces:
- Verbalization
public class Discourse
- extends java.lang.Object
- implements Verbalization
A Vector of Verbalizations
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.