Class Lazy
java.lang.Object
org.identityconnectors.contract.data.groovy.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
}
invalid @link
{@link https://identityconnectors.dev.java.net/contract-tests-groovy/index.html
- Author:
- Zdenek Louzensky
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Lazy
retrieve value of another property dynamicallygetValue()
overriding plus operation to be able to concatenate Lazy objects to others.static Lazy
static Lazy
generate a random object based on given pattern.void
setSuccessors
(List<Object> successors) void
-
Field Details
-
successors
-
value
-
-
Constructor Details
-
Lazy
public Lazy()
-
-
Method Details
-
plus
overriding plus operation to be able to concatenate Lazy objects to others.
(not intented for programmer use)
- Parameters:
s
-- Returns:
-
plus
- See Also:
-
get
retrieve value of another property dynamically- Parameters:
prop
- property name- Returns:
- property value
-
random
- See Also:
-
random
generate a random object based on given pattern. Object's constructor will be initialized with the string generated by pattern.- Parameters:
pattern
-clazz
-- Returns:
-
getSuccessors
-
setSuccessors
-
getValue
-
setValue
-