story.scheherazade.elements
Class Noun
java.lang.Object
story.scheherazade.elements.Noun
- All Implemented Interfaces:
- CloneableObject, RenderableObject, Predicate
- Direct Known Subclasses:
- ValidNoun
public class Noun
- extends java.lang.Object
- implements RenderableObject, Predicate, CloneableObject
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Noun
public Noun(NounType nounType,
SCHArguments arguments)
Noun
public Noun(NounType nounType)
getType
public NounType getType()
throws Scheherexception
- Get the ID of the type of noun.
- Throws:
Scheherexception
getNounType
public NounType getNounType()
getNounFlavor
public NounFlavor getNounFlavor()
getSCHArguments
public SCHArguments getSCHArguments()
throws Scheherexception
- Get the arguments used to instantiate this Noun
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
in interface RenderableObject
- Throws:
Scheherexception
render
public static java.lang.StringBuffer render(NounType nounType,
SCHArguments arguments)
throws Scheherexception
- A static function that renders a NounType and arguments as
they would be rendered if they were part of an Noun. Does
not validate to make sure such a Noun would be legal.
- Throws:
Scheherexception
getPredicateFlavor
public PredicateFlavor getPredicateFlavor()
- Specified by:
getPredicateFlavor
in interface Predicate
makeClone
public Noun makeClone()
throws Scheherexception
- Specified by:
makeClone
in interface CloneableObject
- Throws:
Scheherexception
Copyright © 2011 David K. Elson. All Rights Reserved.