public class EntryValidator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
DONT_CARE |
static java.lang.Integer |
NEWVAL |
static java.lang.Integer |
OLDVAL |
| Constructor and Description |
|---|
EntryValidator(boolean keyExists,
boolean hasValue,
java.lang.Object cacheValue)
Constructor to create a EntryValidator
used internally by this class to create templates based
on expected values maps.
|
EntryValidator(Operation op)
noArg constructor
|
EntryValidator(Operation op,
java.lang.String regionName,
java.lang.String key,
boolean keyExists,
boolean hasValue,
java.lang.Object cacheValue)
Constructor to create a EntryValidator
|
| Modifier and Type | Method and Description |
|---|---|
void |
compare(EntryValidator vc)
Compare two validator controls, throw an exception if not a match
|
static EntryValidator |
getActual(Operation op) |
static EntryValidator |
getExpected(Operation op,
boolean isVisible) |
java.lang.Object |
getKey() |
Operation |
getOperation() |
java.lang.String |
getRegionName() |
void |
setCacheValue(java.lang.Object value) |
void |
setHasValue(boolean b) |
void |
setKey(java.lang.String key) |
void |
setKeyExists(boolean b) |
void |
setOperation(Operation op) |
void |
setRegionName(java.lang.String regionName) |
java.lang.String |
toString()
Return a string description of the EntryValidator
|
public static final java.lang.Integer DONT_CARE
public static final java.lang.Integer OLDVAL
public static final java.lang.Integer NEWVAL
public EntryValidator(Operation op)
public EntryValidator(boolean keyExists,
boolean hasValue,
java.lang.Object cacheValue)
keyExists - boolean (true => expect region.containsKey() == true)hasValue - boolean (true => expect region.containsValueForKey() == true)cacheValue - The expected value of this entry when retrieved from cachepublic EntryValidator(Operation op, java.lang.String regionName, java.lang.String key, boolean keyExists, boolean hasValue, java.lang.Object cacheValue)
regionName - The name of the region involved in the operation.key - The key in the region involved in the operation.keyExists - boolean (true => expect region.containsKey() == true)hasValue - boolean (true => expect region.containsValueForKey() == true)cacheValue - The expected value of this entry when retrieved from cachepublic java.lang.String getRegionName()
public void setRegionName(java.lang.String regionName)
public java.lang.Object getKey()
public void setKey(java.lang.String key)
public void setKeyExists(boolean b)
public void setHasValue(boolean b)
public void setCacheValue(java.lang.Object value)
public Operation getOperation()
public void setOperation(Operation op)
public static EntryValidator getExpected(Operation op, boolean isVisible)
public static EntryValidator getActual(Operation op)
public void compare(EntryValidator vc)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.