|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.convert.BaseV20Converter
org.directwebremoting.convert.EnumConverter
public class EnumConverter
Converter for all primitive types
Constructor Summary | |
---|---|
EnumConverter()
|
Method Summary | |
---|---|
java.lang.Object |
convertInbound(java.lang.Class paramType,
InboundVariable iv,
InboundContext inctx)
Attempt to coerce the data from a string to an Object. |
OutboundVariable |
convertOutbound(java.lang.Object object,
OutboundContext outctx)
Return a javascript string that defines the variable named varName to have the contents of the converted object data. |
Methods inherited from class org.directwebremoting.convert.BaseV20Converter |
---|
setConverterManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.directwebremoting.extend.Converter |
---|
setConverterManager |
Constructor Detail |
---|
public EnumConverter()
Method Detail |
---|
public java.lang.Object convertInbound(java.lang.Class paramType, InboundVariable iv, InboundContext inctx) throws MarshallException
Converter
convertInbound
in interface Converter
paramType
- The type to convert toiv
- The data to convertinctx
- The map of data that we are working on
MarshallException
- If the conversion failed for some reasonpublic OutboundVariable convertOutbound(java.lang.Object object, OutboundContext outctx)
Converter
In contrast to convertInbound()
failures in converting
data on the way out should not stop processing, and we should carry on
if we can. Failures are probably down to some misconfiguration so as much
information about the error as can be safely generated to console logs is
good. In other words if you need to loop in outbound conversion then it
might be a good idea to catch issues inside the loop, log, and carry on.
convertOutbound
in interface Converter
object
- The data to convertoutctx
- A collection of objects already converted and the results
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |