org.codehaus.groovy.grails.web.converters
Class AbstractConverter

java.lang.Object
  extended by org.codehaus.groovy.grails.web.converters.AbstractConverter
All Implemented Interfaces:
Converter
Direct Known Subclasses:
JSON, XML

public abstract class AbstractConverter
extends Object
implements Converter

Abstract base implementation of the Converter interface that provides a default toString() implementation

Author:
Siegfried Puchbauer

Field Summary
 
Fields inherited from interface org.codehaus.groovy.grails.web.converters.Converter
DEFAULT_REQUEST_ENCODING
 
Constructor Summary
AbstractConverter()
           
 
Method Summary
protected  BeanWrapper createBeanWrapper(Object o)
           
protected  boolean isJdk5Enum(Class type)
           
abstract  void setTarget(Object target)
           
 String toString()
          Renders the result to a String and returns it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.groovy.grails.web.converters.Converter
render, render
 

Constructor Detail

AbstractConverter

public AbstractConverter()
Method Detail

setTarget

public abstract void setTarget(Object target)

toString

public String toString()
Renders the result to a String and returns it

Overrides:
toString in class Object
Returns:
The converted object as a string

isJdk5Enum

protected boolean isJdk5Enum(Class type)

createBeanWrapper

protected BeanWrapper createBeanWrapper(Object o)


Copyright (c) 2005-2006 The Grails project