Package org.apache.tapestry5.internal
Class ZeroNullFieldStrategy
-
- org.apache.tapestry5.internal.ZeroNullFieldStrategy
-
- All Implemented Interfaces:
NullFieldStrategy
public class ZeroNullFieldStrategy extends implements NullFieldStrategy
Treats nulls to or from the client as if they were 0's.
-
-
Constructor Summary
Constructors Constructor Description ZeroNullFieldStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description replaceFromClient()
Returns "0".replaceToClient()
Returns the value 0.
-
-
-
Constructor Detail
-
ZeroNullFieldStrategy
public ZeroNullFieldStrategy()
-
-
Method Detail
-
replaceToClient
public replaceToClient()
Returns the value 0.- Specified by:
replaceToClient
in interfaceNullFieldStrategy
-
replaceFromClient
public replaceFromClient()
Returns "0".- Specified by:
replaceFromClient
in interfaceNullFieldStrategy
- Returns:
- replacement value (this must not be null)
-
-