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,
String fieldName,
Object bridge) |
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 propertyName)
The context has an internal stack for graph navigation.
|
ConversionContext |
setConvertedTypeId(IndexedTypeIdentifier type)
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 setConvertedTypeId(IndexedTypeIdentifier type)
ConversionContext
setConvertedTypeId
in interface ConversionContext
type
- the type which is going to be convertedpublic ConversionContext pushProperty(String propertyName)
ConversionContext
ConversionContext.popProperty()
,
especially after exceptions.pushProperty
in interface ConversionContext
propertyName
- the name of 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, String fieldName, Object bridge)
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