Class ConstantConverter

java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
name.moore.kevin.ze.swing.parsers.ConstantConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

public class ConstantConverter extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Details

    • constants

      private Class constants
  • Constructor Details

    • ConstantConverter

      public ConstantConverter(Class c)
    • ConstantConverter

      public ConstantConverter()
  • Method Details

    • canConvert

      public boolean canConvert(Class type)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      Specified by:
      canConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
    • fromString

      public Object fromString(String str)
      Specified by:
      fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
      Specified by:
      fromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter