public class EntryValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DONT_CARE |
static Integer |
NEWVAL |
static Integer |
OLDVAL |
| Constructor and Description |
|---|
EntryValidator(boolean keyExists,
boolean hasValue,
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,
String regionName,
String key,
boolean keyExists,
boolean hasValue,
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) |
Object |
getKey() |
Operation |
getOperation() |
String |
getRegionName() |
void |
setCacheValue(Object value) |
void |
setHasValue(boolean b) |
void |
setKey(String key) |
void |
setKeyExists(boolean b) |
void |
setOperation(Operation op) |
void |
setRegionName(String regionName) |
String |
toString()
Return a string description of the EntryValidator
|
public static final Integer DONT_CARE
public static final Integer OLDVAL
public static final Integer NEWVAL
public EntryValidator(Operation op)
public EntryValidator(boolean keyExists,
boolean hasValue,
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, String regionName, String key, boolean keyExists, boolean hasValue, 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 String getRegionName()
public void setRegionName(String regionName)
public Object getKey()
public void setKey(String key)
public void setKeyExists(boolean b)
public void setHasValue(boolean b)
public void setCacheValue(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)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.