Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal
Class ZeroNullFieldStrategy

    java.lang.Object
      org.apache.tapestry5.internal.ZeroNullFieldStrategy

All Implemented Interfaces:
  NullFieldStrategy

    public class ZeroNullFieldStrategy

extends java.lang.Object
implements NullFieldStrategy

Treats nulls to or from the client as if they were 0's.

Constructor Summary
`ZeroNullFieldStrategy()`

Method Summary
`java.lang.String` | `replaceFromClient()` Returns "0".
`java.lang.Object` | `replaceToClient()` Returns the value 0.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ZeroNullFieldStrategy

    public ZeroNullFieldStrategy()

Method Detail

### replaceToClient

    public java.lang.Object replaceToClient()

  Returns the value 0.

  Specified by:
    `replaceToClient` in interface `NullFieldStrategy`

### replaceFromClient

    public java.lang.String replaceFromClient()

  Returns "0".

  Specified by:
    `replaceFromClient` in interface `NullFieldStrategy`
  Returns:
    replacement value (this must not be null)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.