Package org.apache.tapestry5.internal
Class ZeroNullFieldStrategy
java.lang.Object
org.apache.tapestry5.internal.ZeroNullFieldStrategy
- All Implemented Interfaces:
NullFieldStrategy
Treats nulls to or from the client as if they were 0's.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns "0".Returns the value 0.
-
Constructor Details
-
ZeroNullFieldStrategy
public ZeroNullFieldStrategy()
-
-
Method Details
-
replaceToClient
Returns the value 0.- Specified by:
replaceToClient
in interfaceNullFieldStrategy
-
replaceFromClient
Returns "0".- Specified by:
replaceFromClient
in interfaceNullFieldStrategy
- Returns:
- replacement value (this must not be null)
-