public class StepTemplateUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
retrieveValue(StepTemplateConfig templateConfig,
int index,
java.lang.String[] fields,
java.lang.Object object)
Example:
fields = {"object", "names", "hash"} from 'template part' = {object.names.hash}
templateConfig - default
|
public static java.lang.String retrieveValue(StepTemplateConfig templateConfig, int index, java.lang.String[] fields, java.lang.Object object) throws java.lang.NoSuchFieldException
Given:
object - some object
names - the List containing 3 String objects with hashes: {25,32,57}
hash - field, which value should be retrieved
Result: "[25,32,57]"
templateConfig - StepTemplateConfig for result formattingindex - Index of the current field, from the template partfields - Fields of the template partobject - Value of the current fieldString representation of object field(s) value(s).java.lang.NoSuchFieldException - if field not found