|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.identityconnectors.contract.data.groovy.Lazy
public abstract class Lazy
Support for lazy evaluation. "Lazy evaluation" means that property value is evaluated just when get(String) query is called in GroovyDataProvider.
Methods get(Object), random(Object) and
random(Object, Class) are ones used in contract tests'
configuration.
More detailed information is on web
https://identityconnectors.dev.java.net/contract-tests-groovy/index.html
| Field Summary | |
|---|---|
protected List<Object> |
successors
|
protected Object |
value
|
| Constructor Summary | |
|---|---|
Lazy()
|
|
| Method Summary | |
|---|---|
static Lazy |
get(Object prop)
retrieve value of another property dynamically |
List<Object> |
getSuccessors()
|
Object |
getValue()
|
Lazy |
plus(Lazy lazy)
|
Lazy |
plus(String s)
overriding plus operation to be able to concatenate Lazy objects to others. |
static Lazy |
random(Object pattern)
|
static Lazy |
random(Object pattern,
Class<?> clazz)
generate a random object based on given pattern. |
void |
setSuccessors(List<Object> successors)
|
void |
setValue(Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<Object> successors
protected Object value
| Constructor Detail |
|---|
public Lazy()
| Method Detail |
|---|
public Lazy plus(String s)
overriding plus operation to be able to concatenate Lazy objects to others.
(not intented for programmer use)
s -
public Lazy plus(Lazy lazy)
plus(String)public static Lazy get(Object prop)
prop - property name
public static Lazy random(Object pattern)
random(Object, Class)
public static Lazy random(Object pattern,
Class<?> clazz)
pattern - clazz -
org.identityconnectors.contract.data.RandomGenerator#generate(String)}public List<Object> getSuccessors()
public void setSuccessors(List<Object> successors)
public Object getValue()
public void setValue(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||