public abstract class Lazy extends Object
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
Modifier and Type | Field and Description |
---|---|
protected List<Object> |
successors |
protected Object |
value |
Constructor and Description |
---|
Lazy() |
Modifier and Type | Method and Description |
---|---|
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) |
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 namepublic 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 Object getValue()
public void setValue(Object value)
Copyright © 2022. All rights reserved.