|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.util.io.EnumAdaptor
public class EnumAdaptor
Adaptor for Enum
classes.
Constructor Summary | |
---|---|
EnumAdaptor()
|
Method Summary | |
---|---|
void |
register(DataSqueezer squeezer)
Invoked to ask an adaptor to register itself to the squeezer. |
String |
squeeze(DataSqueezer squeezer,
Object o)
Converts the data object into a String. |
Object |
unsqueeze(DataSqueezer squeezer,
String str)
Converts a String back into an appropriate object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnumAdaptor()
Method Detail |
---|
public String squeeze(DataSqueezer squeezer, Object o) throws IOException
ISqueezeAdaptor
squeeze
in interface ISqueezeAdaptor
IOException
- if the object can't be converted.public Object unsqueeze(DataSqueezer squeezer, String str) throws IOException
ISqueezeAdaptor
unsqueeze
in interface ISqueezeAdaptor
IOException
- if the String can't be converted.public void register(DataSqueezer squeezer)
ISqueezeAdaptor
register
in interface ISqueezeAdaptor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |