net.sf.json.processors
Interface DefaultValueProcessor

All Known Implementing Classes:
DefaultDefaultValueProcessor

public interface DefaultValueProcessor

Defines the default value for a type when its value is null.

Author:
Andres Almiray

Method Summary
 java.lang.Object getDefaultValue(java.lang.Class type)
          Returns an appropriate default value for a type.
 

Method Detail

getDefaultValue

java.lang.Object getDefaultValue(java.lang.Class type)
Returns an appropriate default value for a type.

Parameters:
type -
Returns:
the default value for instances of type


Copyright © 2006-2010 Json-lib. All Rights Reserved.