public interface FieldRuleResult
Modifier and Type | Method and Description |
---|---|
FieldRuleError |
getError()
Returns field rule evaluation error.
|
String |
getTargetField()
Retrieves the target field name corresponding to this field rule evaluation.
|
Object |
getValue()
Retrieves the value for the evaluated target field, already converted into the appropriate ValueType.
|
<T> T |
getValueByType(ValueType<T> type)
Retrieves the value for the evaluated target field, converted to the type passed in.
|
boolean |
hasError()
Identifies if there was an error when evaluating this field rule.
|
String getTargetField()
Object getValue()
getValueByType(ValueType)
.
If there was an error during field rule evaluation this throws an exception.
For example, if hasError()
returns true
this will throw an exception.
<T> T getValueByType(ValueType<T> type)
If there was an error during field rule evaluation this throws an exception.
For example, if hasError()
returns true
this will throw an exception.
T
- type of Java class that is backing a ValueType
type
- the type that the value to be converted intoboolean hasError()
FieldRuleError getError()
Copyright © Veeva Systems 2017–2020. All rights reserved.