public final class ContextualExceptionBridgeHelper extends Object implements ConversionContext
Type | Property and Description |
---|---|
ConversionContext |
pop
Pops the last pushed property from the stack.
|
ConversionContext |
pushIdentifier
In case the next conversion fails, the error message will point to the
document id of the currently indexed type.
|
Constructor and Description |
---|
ContextualExceptionBridgeHelper() |
Modifier and Type | Method and Description |
---|---|
protected BridgeException |
buildBridgeException(Exception e,
String method) |
FieldBridge |
oneWayConversionContext(FieldBridge delegate)
Decorates a FieldBridge.
|
ConversionContext |
popProperty()
Pops the last pushed property from the stack.
|
ConversionContext |
pushIdentifierProperty()
In case the next conversion fails, the error message will point to the
document id of the currently indexed type.
|
ConversionContext |
pushProperty(String property)
The context has an internal stack for graph navigation.
|
ConversionContext |
setClass(Class<?> clazz)
In case the next conversion fails, the error message will point to this type.
|
StringBridge |
stringConversionContext(StringBridge delegate)
Decorates a StringBridge.
|
TwoWayFieldBridge |
twoWayConversionContext(TwoWayFieldBridge delegate)
Decorates a TwoWayFieldBridge.
|
public ConversionContext popProperty
popProperty
in interface ConversionContext
public ConversionContext pushIdentifierProperty
pushIdentifierProperty
in interface ConversionContext
public ConversionContext setClass(Class<?> clazz)
ConversionContext
setClass
in interface ConversionContext
clazz
- the class type which is going to be convertedpublic ConversionContext pushProperty(String property)
ConversionContext
ConversionContext.popProperty()
,
especially after exceptions.pushProperty
in interface ConversionContext
property
- the property which is being followed for embedded indexingpublic ConversionContext popProperty()
ConversionContext
ConversionContext.pushIdentifierProperty()
and ConversionContext.pushProperty(String)
}popProperty
in interface ConversionContext
public ConversionContext pushIdentifierProperty()
ConversionContext
pushIdentifierProperty
in interface ConversionContext
protected BridgeException buildBridgeException(Exception e, String method)
public FieldBridge oneWayConversionContext(FieldBridge delegate)
ConversionContext
oneWayConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.public TwoWayFieldBridge twoWayConversionContext(TwoWayFieldBridge delegate)
ConversionContext
twoWayConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.public StringBridge stringConversionContext(StringBridge delegate)
ConversionContext
stringConversionContext
in interface ConversionContext
delegate
- set the bridge that shall be used by the decoration.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved