public class FieldDebugInfoFactory extends Object
FieldDebugInfo| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldDebugInfoFactory.FieldEvaluator
Evaluates a field to provide its value
|
| Modifier and Type | Method and Description |
|---|---|
static FieldDebugInfo<?> |
createFieldDebugInfo(String name,
Class<?> type,
AttributeEvaluator evaluator,
MuleEvent event)
Creates a debug info for a field
|
static ErrorFieldDebugInfo |
createFieldDebugInfo(String name,
Class<?> type,
Exception value)
Creates an error debug info for a field
|
static FieldDebugInfo |
createFieldDebugInfo(String name,
Class<?> type,
FieldDebugInfoFactory.FieldEvaluator evaluator)
Creates a debug info for a field
|
static ObjectFieldDebugInfo |
createFieldDebugInfo(String name,
Class<?> type,
List<FieldDebugInfo<?>> fields)
Creates a debug info for an object field
|
static SimpleFieldDebugInfo |
createFieldDebugInfo(String name,
Class<?> type,
Object value)
Creates a debug info for a simple field
|
static ErrorFieldDebugInfo |
createFieldDebugInfo(String name,
String type,
Exception value)
Creates an error debug info for a field
|
static ObjectFieldDebugInfo |
createFieldDebugInfo(String name,
String type,
List<FieldDebugInfo<?>> fields)
Creates a debug info for an object field
|
static SimpleFieldDebugInfo |
createFieldDebugInfo(String name,
String type,
Object value)
Creates a debug info for a simple field
|
public static FieldDebugInfo<?> createFieldDebugInfo(String name, Class<?> type, AttributeEvaluator evaluator, MuleEvent event)
name - field's name. Must be a non blank Stringtype - field's typeevaluator - evaluator used to obtain the field's valueevent - event used on the evaluator to obtain the field's valueSimpleFieldDebugInfo if the field evaluation is successful,
and a ErrorFieldDebugInfo otherwisepublic static FieldDebugInfo createFieldDebugInfo(String name, Class<?> type, FieldDebugInfoFactory.FieldEvaluator evaluator)
name - field's name. Must be a non blank Stringtype - field's typeevaluator - evaluator used to obtain the field's valueSimpleFieldDebugInfo if the field evaluation is successful,
and a ErrorFieldDebugInfo otherwisepublic static SimpleFieldDebugInfo createFieldDebugInfo(String name, Class<?> type, Object value)
name - field's name. Must be a non blank Stringtype - field's typevalue - field's valueSimpleFieldDebugInfopublic static ObjectFieldDebugInfo createFieldDebugInfo(String name, Class<?> type, List<FieldDebugInfo<?>> fields)
name - field's name. Must be a non blank Stringtype - field's class typefields - The fields of the objectObjectFieldDebugInfopublic static ErrorFieldDebugInfo createFieldDebugInfo(String name, Class<?> type, Exception value)
name - field's name. Must be a non blank Stringtype - field's typevalue - value error found during the value resolution of the fieldErrorFieldDebugInfopublic static SimpleFieldDebugInfo createFieldDebugInfo(String name, String type, Object value)
name - field's name. Must be a non blank Stringtype - field's type namevalue - field's valueSimpleFieldDebugInfopublic static ObjectFieldDebugInfo createFieldDebugInfo(String name, String type, List<FieldDebugInfo<?>> fields)
name - field's name. Must be a non blank Stringtype - field's typefields - The fields of the objectObjectFieldDebugInfopublic static ErrorFieldDebugInfo createFieldDebugInfo(String name, String type, Exception value)
name - field's name. Must be a non blank Stringtype - field's typevalue - value error found during the value resolution of the fieldErrorFieldDebugInfoCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.