List of usage examples for org.apache.commons.beanutils Converter interface-usage
From source file org.webguitoolkit.ui.controls.util.conversion.IConverter.java
/** * Interface to be implemented by the format converters * * @author Martin */ public interface IConverter extends Converter, Serializable {
From source file net.kornr.swit.site.ColorConverter.java
public class ColorConverter implements Converter { public Object convert(Class clzz, Object obj) { if (Color.class.equals(clzz) == false) throw new ConversionException("Not a color conversion!");
From source file com.ocpsoft.pretty.faces.config.convert.TrailingSlashConverter.java
public class TrailingSlashConverter implements Converter { @SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { return Enum.valueOf(TrailingSlash.class, ((String) value).toUpperCase()); }
From source file storybook.model.NullConverter.java
/** * @author martin * */ public class NullConverter implements Converter {
From source file com.ocpsoft.pretty.faces.config.convert.RedirectConverter.java
public class RedirectConverter implements Converter { @SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { String item = (String) value; if ("301".equals(item)) {
From source file com.github.dozermapper.core.converters.EnumConverter.java
/** * Internal class for converting Supported Data Types to Enum. Only intended for internal use. */ public class EnumConverter implements Converter { @SuppressWarnings({ "unchecked", "rawtypes" })
From source file com.ctrip.infosec.rule.converter.Ip2ProvinceCityConverter.java
/** * * @author zhengby */ @Service("ip2ProvinceCityConverter") public class Ip2ProvinceCityConverter implements Converter {
From source file com.ocpsoft.pretty.faces.config.convert.PhaseIdConverter.java
public class PhaseIdConverter implements Converter { @SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { PhaseId result = null; if ("ANY_PHASE".equals(value)) { result = PhaseId.ANY_PHASE;
From source file edu.cornell.mannlib.semservices.util.XMLGregorianCalendarConverter.java
public final class XMLGregorianCalendarConverter implements Converter { // Constructors /** * Create a {@link Converter} that will throw a {@link ConversionException}
From source file org.raml.parser.utils.BooleanConverter.java
public class BooleanConverter implements Converter { /* * (non-Javadoc) * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, * java.lang.Object)