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 String
type
- 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 String
type
- 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 String
type
- field's typevalue
- field's valueSimpleFieldDebugInfo
public static ObjectFieldDebugInfo createFieldDebugInfo(String name, Class<?> type, List<FieldDebugInfo<?>> fields)
name
- field's name. Must be a non blank String
type
- field's class typefields
- The fields of the objectObjectFieldDebugInfo
public static ErrorFieldDebugInfo createFieldDebugInfo(String name, Class<?> type, Exception value)
name
- field's name. Must be a non blank String
type
- field's typevalue
- value error found during the value resolution of the fieldErrorFieldDebugInfo
public static SimpleFieldDebugInfo createFieldDebugInfo(String name, String type, Object value)
name
- field's name. Must be a non blank String
type
- field's type namevalue
- field's valueSimpleFieldDebugInfo
public static ObjectFieldDebugInfo createFieldDebugInfo(String name, String type, List<FieldDebugInfo<?>> fields)
name
- field's name. Must be a non blank String
type
- field's typefields
- The fields of the objectObjectFieldDebugInfo
public static ErrorFieldDebugInfo createFieldDebugInfo(String name, String type, Exception value)
name
- field's name. Must be a non blank String
type
- field's typevalue
- value error found during the value resolution of the fieldErrorFieldDebugInfo
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.