|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.expressions.core.NullEmptyHandlerDefault
public class NullEmptyHandlerDefault
Default implementation. On output verification empty TDs are considered null. In other words, for these TDs the verification against database check if database columns hold null.
| Field Summary | |
|---|---|
static String |
EMPTY
Default empty String markup. |
protected String |
emptyVal
The empty string mark. |
protected static ThreadLocal<INullEmptyHandler> |
instance
Thread safe instance. |
static String |
NULL
Default empty String markup. |
protected String |
nullVal
The empty string mark. |
| Constructor Summary | |
|---|---|
NullEmptyHandlerDefault()
|
|
| Method Summary | |
|---|---|
String |
emptyValue(EMode mode)
Empty value for a given mode. |
static INullEmptyHandler |
get()
Singleton method. |
String |
getEmptyVal()
Return the empty constant. |
String |
getNullVal()
Get null explicit representation. |
boolean |
isEmpty(EMode mode,
String value)
Check if a value should be handled as empty, depending on value and mode. |
boolean |
isNull(EMode mode,
String value)
Check if a value should be handled as null, depending on value and mode. |
String |
nullValue(EMode mode)
Null value for a given mode. |
void |
setEmptyVal(String empty)
Set empty mark. |
void |
setNullVal(String nullval)
Set null explicit representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ThreadLocal<INullEmptyHandler> instance
public static final String NULL
protected String nullVal
public static final String EMPTY
protected String emptyVal
| Constructor Detail |
|---|
public NullEmptyHandlerDefault()
| Method Detail |
|---|
public static INullEmptyHandler get()
public String getNullVal()
public void setNullVal(String nullval)
nullval - Null representation.public String getEmptyVal()
public void setEmptyVal(String empty)
empty - Empty mark.public String nullValue(EMode mode)
INullEmptyHandler
nullValue in interface INullEmptyHandlermode - A mode.
public String emptyValue(EMode mode)
INullEmptyHandler
emptyValue in interface INullEmptyHandlermode - A mode.
public boolean isNull(EMode mode,
String value)
INullEmptyHandler
isNull in interface INullEmptyHandlermode - A mode.value - A value.
public boolean isEmpty(EMode mode,
String value)
INullEmptyHandler
isEmpty in interface INullEmptyHandlermode - A mode.value - A value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||