Example usage for org.apache.commons.beanutils Converter interface-usage

List of usage examples for org.apache.commons.beanutils Converter interface-usage

Introduction

In this page you can find the example usage for org.apache.commons.beanutils Converter interface-usage.

Usage

From source file net.servicefixture.converter.CalendarConverter.java

/**
 * Provides conversion logic for <code>java.util.Calendar</code>
 * 
 * @author Chunyun Zhao
 * @since Jul 28, 2006
 */

From source file com.plat4u.ghost.common.util.DateConverter.java

/**
 * DateConverter
 *
 * @author plat4u.com
 * @version 1.0
 */

From source file com.zaradai.kunzite.trader.config.statics.digester.OptionTypeConverter.java

public class OptionTypeConverter implements Converter {
    @Override
    public Object convert(Class type, Object value) {
        checkNotNull(type, "Type cant be null");
        checkNotNull(value, "Value cant be null");
        checkArgument(type.equals(OptionType.class), "Conversion target must be OptionType");

From source file com.zaradai.kunzite.trader.config.statics.digester.InstrumentTypeConverter.java

public class InstrumentTypeConverter implements Converter {
    @Override
    public Object convert(Class type, Object value) {
        checkNotNull(type, "Type cant be null");
        checkNotNull(value, "Value cant be null");
        checkArgument(type.equals(InstrumentType.class), "Conversion target must be InstrumentType");

From source file ca.sqlpower.architect.AscendDescendConverter.java

public class AscendDescendConverter implements Converter {

    @SuppressWarnings("unchecked")
    public Object convert(Class targetType, Object value) {
        if (value == null) {
            return null;

From source file com.glaf.core.util.converter.DoubleConverter.java

@SuppressWarnings({ "unchecked", "rawtypes" })
public class DoubleConverter implements Converter {

    public Object convert(Class type, Object value) {
        if (value == null) {
            return null;

From source file com.glaf.core.util.converter.IntegerConverter.java

@SuppressWarnings({ "unchecked", "rawtypes" })
public class IntegerConverter implements Converter {

    public Object convert(Class type, Object value) {
        if (value == null) {
            return null;

From source file com.glaf.core.util.converter.LongConverter.java

@SuppressWarnings({ "unchecked", "rawtypes" })
public class LongConverter implements Converter {

    public Object convert(Class type, Object value) {
        if (value == null) {
            return null;

From source file com.plat4u.ghost.common.util.DateStringConverter.java

/**
 * DateStringConverter
 *
 * @author plat4u.com
 * @version 1.0
 */

From source file org.nekorp.workflow.desktop.view.resource.DateConverter.java

/**
 *
 *
 */
@Component
public class DateConverter implements Converter {