|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jeta.open.rules.RuleResult
public class RuleResult
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 |
|---|
public static final int SUCCESS_ID
public static final int FAIL_MESSAGE_ID
public static final int FAIL_NO_MESSAGE_ID
public static final RuleResult SUCCESS
public static final RuleResult FAIL
| Constructor Detail |
|---|
public RuleResult(int code)
public RuleResult(String msg)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int getCode()
public String getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||