com.jeta.open.rules
Class RuleResult

java.lang.Object
  extended by com.jeta.open.rules.RuleResult

public class RuleResult
extends Object

Defines a result from a JETARule


Field Summary
static RuleResult FAIL
           
static int FAIL_MESSAGE_ID
           
static int FAIL_NO_MESSAGE_ID
          fail code to indicate the the validator will handle showing the error message
static RuleResult SUCCESS
          pre-defined rule result object
static int SUCCESS_ID
          rule result codes
 
Constructor Summary
RuleResult(int code)
          ctor
RuleResult(String msg)
          ctor Construct a ResultResult with a FAIL_MESSAGE code
 
Method Summary
 boolean equals(Object obj)
           
 int getCode()
           
 String getMessage()
          If this result is a FAIL_MESSAGE, then get the message
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS_ID

public static final int SUCCESS_ID
rule result codes

See Also:
Constant Field Values

FAIL_MESSAGE_ID

public static final int FAIL_MESSAGE_ID
See Also:
Constant Field Values

FAIL_NO_MESSAGE_ID

public static final int FAIL_NO_MESSAGE_ID
fail code to indicate the the validator will handle showing the error message

See Also:
Constant Field Values

SUCCESS

public static final RuleResult SUCCESS
pre-defined rule result object


FAIL

public static final RuleResult FAIL
Constructor Detail

RuleResult

public RuleResult(int code)
ctor


RuleResult

public RuleResult(String msg)
ctor Construct a ResultResult with a FAIL_MESSAGE code

Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getCode

public int getCode()
Returns:
the result code

getMessage

public String getMessage()
If this result is a FAIL_MESSAGE, then get the message



Copyright © 2005-2007 Jeff Tassin & Todd Viegut. All Rights Reserved.