net.sf.json.processors
Class DefaultDefaultValueProcessor

java.lang.Object
  extended by net.sf.json.processors.DefaultDefaultValueProcessor
All Implemented Interfaces:
DefaultValueProcessor

public class DefaultDefaultValueProcessor
extends Object
implements DefaultValueProcessor

Base implementation for DefaultDefaultValueProcessor.

Author:
Andres Almiray

Constructor Summary
DefaultDefaultValueProcessor()
           
 
Method Summary
 Object getDefaultValue(Class type)
          Returns an appropriate default value for a type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDefaultValueProcessor

public DefaultDefaultValueProcessor()
Method Detail

getDefaultValue

public Object getDefaultValue(Class type)
Description copied from interface: DefaultValueProcessor
Returns an appropriate default value for a type.

Specified by:
getDefaultValue in interface DefaultValueProcessor
Returns:
the default value for instances of type