story.scheherazade.verbalizer
Class ClauseVerbalization
java.lang.Object
story.scheherazade.verbalizer.ClauseVerbalization
- All Implemented Interfaces:
- Verbalization
public class ClauseVerbalization
- extends java.lang.Object
- implements Verbalization
A set of utterances which are in a linguistic clause. Spaces are
placed between verbalizations in the encapsulated Discourse. This
is also useful for situations where "scoping" is required, i.e.,
proper placement of commas in a list.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClauseVerbalization
public ClauseVerbalization(Verbalization sequence,
java.lang.String source,
boolean spacesBetweenWords)
throws Scheherexception
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
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
serialize
public Serialization serialize()
throws Scheherexception
- Specified by:
serialize
in interface Verbalization
- Throws:
Scheherexception
Copyright © 2011 David K. Elson. All Rights Reserved.