ncsa.tools.ogrescript.types.evaluatable.conditions
Class Case

java.lang.Object
  extended byncsa.tools.ogrescript.OgreScriptElement
      extended byncsa.tools.ogrescript.types.evaluatable.Condition
          extended byncsa.tools.ogrescript.types.evaluatable.conditions.Case
All Implemented Interfaces:
IConditional, UserFacing

public class Case
extends Condition

Creates an equality predicate based on the value passed in. When called, its subject should be set; this will be tested against the constructed predicate.

Author:
arossi

Field Summary
static java.lang.String TAG_DEFAULT
           
static java.lang.String TAG_SELF
           
 
Fields inherited from class ncsa.tools.ogrescript.OgreScriptElement
TAG_EXT_PT
 
Constructor Summary
Case()
           
 
Method Summary
 boolean evaluate()
           
 void setBoolean(boolean b)
           
 void setByte(byte b)
           
 void setChar(char c)
           
 void setDouble(double d)
           
 void setFloat(float f)
           
 void setInt(int i)
           
 void setLong(long l)
           
 void setObject(java.lang.Object o)
           
 void setShort(short s)
           
 void setString(java.lang.String s)
           
 void setSubject(java.lang.Object subject)
           
 
Methods inherited from class ncsa.tools.ogrescript.types.evaluatable.Condition
isCondition
 
Methods inherited from class ncsa.tools.ogrescript.OgreScriptElement
asElement, initializeFromElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SELF

public static final java.lang.String TAG_SELF
See Also:
Constant Field Values

TAG_DEFAULT

public static final java.lang.String TAG_DEFAULT
See Also:
Constant Field Values
Constructor Detail

Case

public Case()
Method Detail

evaluate

public boolean evaluate()
                 throws EvaluationException
Throws:
EvaluationException

setSubject

public void setSubject(java.lang.Object subject)

setBoolean

public void setBoolean(boolean b)

setByte

public void setByte(byte b)

setChar

public void setChar(char c)

setDouble

public void setDouble(double d)

setFloat

public void setFloat(float f)

setInt

public void setInt(int i)

setLong

public void setLong(long l)

setShort

public void setShort(short s)

setString

public void setString(java.lang.String s)

setObject

public void setObject(java.lang.Object o)