public interface RandomizerContext
Randomizer.
This interface provides information about the randomization context.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCurrentField()
Return the full path to the current field being randomized (starting from the first field in the root type).
|
java.lang.Object |
getCurrentObject()
Return the currently randomized object in the object graph.
|
java.util.Set<java.lang.String> |
getExcludedFields()
Get the set of excluded fields (varargs of
EnhancedRandom.nextObject(Class, String...)). |
EnhancedRandomParameters |
getParameters()
Return the currently used parameters by the enclosing
EnhancedRandom. |
int |
getRandomizationDepth()
Get the current level in the hierarchy of the object graph.
|
java.lang.Object |
getRootObject()
Return the root object being randomized (instance of
getType(). |
java.lang.Class<?> |
getType()
Return the target type (first parameter of
EnhancedRandom.nextObject(Class, String...)). |
java.lang.Class<?> getType()
EnhancedRandom.nextObject(Class, String...)).java.util.Set<java.lang.String> getExcludedFields()
EnhancedRandom.nextObject(Class, String...)).java.lang.Object getRootObject()
getType().java.lang.Object getCurrentObject()
java.lang.String getCurrentField()
int getRandomizationDepth()
EnhancedRandomParameters getParameters()
EnhancedRandom.Copyright © 2019. All Rights Reserved.