story.scheherazade.elements
Class Noun

java.lang.Object
  extended by 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


Constructor Summary
Noun(NounType nounType)
           
Noun(NounType nounType, SCHArguments arguments)
           
 
Method Summary
 NounFlavor getNounFlavor()
           
 NounType getNounType()
           
 PredicateFlavor getPredicateFlavor()
           
 SCHArguments getSCHArguments()
          Get the arguments used to instantiate this Noun
 NounType getType()
          Get the ID of the type of noun.
 Noun makeClone()
           
 java.lang.StringBuffer render()
           
static java.lang.StringBuffer render(NounType nounType, SCHArguments arguments)
          A static function that renders a NounType and arguments as they would be rendered if they were part of an Noun.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Noun

public Noun(NounType nounType,
            SCHArguments arguments)

Noun

public Noun(NounType nounType)
Method Detail

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.