Class SetConverter

java.lang.Object
org.directwebremoting.convert.ArrayConverter
ch.tocco.nice2.netui.impl.dwr.convert.SetConverter
All Implemented Interfaces:
org.directwebremoting.extend.Converter

@Component public class SetConverter extends org.directwebremoting.convert.ArrayConverter
Outbound: Converts a Set to a JS array. Inbound: Converts a JS array to a Set of strings.
  • Constructor Details

    • SetConverter

      public SetConverter()
  • Method Details

    • convertInbound

      public Object convertInbound(Class<?> paramType, org.directwebremoting.extend.InboundVariable data) throws org.directwebremoting.ConversionException
      Specified by:
      convertInbound in interface org.directwebremoting.extend.Converter
      Overrides:
      convertInbound in class org.directwebremoting.convert.ArrayConverter
      Throws:
      org.directwebremoting.ConversionException
    • convertOutbound

      public org.directwebremoting.extend.OutboundVariable convertOutbound(Object data, org.directwebremoting.extend.OutboundContext outctx) throws org.directwebremoting.ConversionException
      Specified by:
      convertOutbound in interface org.directwebremoting.extend.Converter
      Overrides:
      convertOutbound in class org.directwebremoting.convert.ArrayConverter
      Throws:
      org.directwebremoting.ConversionException