story.scheherazade.elements
Class Modifier

java.lang.Object
  extended by story.scheherazade.elements.Modifier
All Implemented Interfaces:
CloneableObject, RenderableObject, Predicate
Direct Known Subclasses:
ValidModifier

public class Modifier
extends java.lang.Object
implements RenderableObject, Predicate, CloneableObject

A Modifier modifies Actions and Conditions.


Constructor Summary
Modifier(ModifierType modifierType, SCHArguments arguments)
           
 
Method Summary
 boolean equals(Modifier other)
          Determines if this Modifier is equivalent to some other.
 PredicateFlavor getPredicateFlavor()
           
 SCHArguments getSCHArguments()
          Get the arguments used to instantiate this Modifier
 ModifierType getType()
           
 Modifier makeClone()
           
 java.lang.StringBuffer render()
           
static java.lang.StringBuffer render(ModifierType modifierType, SCHArguments arguments)
          A static function that renders a ModifierType and arguments as they would be rendered if they were part of a Modifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modifier

public Modifier(ModifierType modifierType,
                SCHArguments arguments)
         throws Scheherexception
Throws:
Scheherexception
Method Detail

getType

public ModifierType getType()

getSCHArguments

public SCHArguments getSCHArguments()
                             throws Scheherexception
Get the arguments used to instantiate this Modifier

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(ModifierType modifierType,
                                            SCHArguments arguments)
                                     throws Scheherexception
A static function that renders a ModifierType and arguments as they would be rendered if they were part of a Modifier. Does not validate to make sure such a Modifier would be legal.

Throws:
Scheherexception

equals

public boolean equals(Modifier other)
               throws Scheherexception
Determines if this Modifier is equivalent to some other.

Throws:
Scheherexception

getPredicateFlavor

public PredicateFlavor getPredicateFlavor()
Specified by:
getPredicateFlavor in interface Predicate

makeClone

public Modifier makeClone()
                   throws Scheherexception
Specified by:
makeClone in interface CloneableObject
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.