public abstract class TypedUpdater extends Object implements Updater
Updater
's.
Strongly type Updater
's perform conversions based on this
the expected type before the bean update is invoked.Constructor and Description |
---|
TypedUpdater() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
executeUpdate(Context context,
Object bean,
Object value)
Updates the bean with the given value.
|
Class |
getValueType()
Gets the type expected.
|
protected void |
handleException(Context context,
Exception e)
Strategy method to allow derivations to handle exceptions differently.
|
void |
setValueType(Class valueType)
Sets the type expected.
|
void |
update(Context context,
Object newValue)
Updates the current bean context with the given String value
|
public void update(Context context, Object newValue)
public Class getValueType()
update(org.apache.commons.betwixt.expression.Context, java.lang.Object)
will be converted on the basis of this type
before being passed to executeUpdate(org.apache.commons.betwixt.expression.Context, java.lang.Object, java.lang.Object)
.Class
giving expected type, not nullpublic void setValueType(Class valueType)
update(org.apache.commons.betwixt.expression.Context, java.lang.Object)
will be converted on the basis of this type
before being passed to executeUpdate(org.apache.commons.betwixt.expression.Context, java.lang.Object, java.lang.Object)
.valueType
- Class
giving expected type, not nullprotected abstract void executeUpdate(Context context, Object bean, Object value) throws Exception
bean
- value
- value after type conversionException
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.