org.apache.tapestry.util.io
Class EnumAdaptor
java.lang.Object
|
+--org.apache.tapestry.util.io.EnumAdaptor
- All Implemented Interfaces:
- ISqueezeAdaptor
- public class EnumAdaptor
- extends Object
- implements ISqueezeAdaptor
Adaptor for Enum
classes.
- Since:
- 3.0
- Version:
- $Id: EnumAdaptor.java,v 1.2 2003/04/17 21:34:01 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumAdaptor
public EnumAdaptor()
squeeze
public String squeeze(DataSqueezer squeezer,
Object o)
throws IOException
- Description copied from interface:
ISqueezeAdaptor
- Converts the data object into a String.
- Specified by:
squeeze
in interface ISqueezeAdaptor
- Following copied from interface:
org.apache.tapestry.util.io.ISqueezeAdaptor
- Throws:
IOException
- if the object can't be converted.
unsqueeze
public Object unsqueeze(DataSqueezer squeezer,
String str)
throws IOException
- Description copied from interface:
ISqueezeAdaptor
- Converts a String back into an appropriate object.
- Specified by:
unsqueeze
in interface ISqueezeAdaptor
- Following copied from interface:
org.apache.tapestry.util.io.ISqueezeAdaptor
- Throws:
IOException
- if the String can't be converted.
register
public void register(DataSqueezer squeezer)
- Description copied from interface:
ISqueezeAdaptor
- Invoked to ask an adaptor to register itself to the squeezer.
- Specified by:
register
in interface ISqueezeAdaptor