org.apache.tapestry.internal
Class DefaultNullFieldStrategy

java.lang.Object
  extended by org.apache.tapestry.internal.DefaultNullFieldStrategy
All Implemented Interfaces:
NullFieldStrategy

public class DefaultNullFieldStrategy
extends Object
implements NullFieldStrategy

Default strategy, which is to do nothing: null values stay null.


Constructor Summary
DefaultNullFieldStrategy()
           
 
Method Summary
 String replaceFromClient()
          Returns the empty string.
 Object replaceToClient()
          Returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNullFieldStrategy

public DefaultNullFieldStrategy()
Method Detail

replaceToClient

public Object replaceToClient()
Returns null.

Specified by:
replaceToClient in interface NullFieldStrategy

replaceFromClient

public String replaceFromClient()
Returns the empty string.

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


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.