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 org.toobsframework.data.beanutil.converter.DateToStringConverter.java

public class DateToStringConverter implements Converter {

    public Object convert(Class arg0, Object value) {
        if (value == null) {
            return ((String) null);
        } else if (value instanceof java.util.Date) {

From source file is.illuminati.block.spyros.garmin.parser.digester.LengthConverter.java

public class LengthConverter implements Converter {

    /**
     * Convert a value to a {@link Length}.
     * 
     * @param type type (class) to convert to.

From source file jp.go.nict.langrid.p2pgridbasis.data.langrid.converter.InstanceTypeConverter.java

public class InstanceTypeConverter implements Converter {

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

From source file jp.go.nict.langrid.p2pgridbasis.data.langrid.converter.ServiceContainerTypeConverter.java

public class ServiceContainerTypeConverter implements Converter {

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

From source file com.rodaxsoft.mailgun.converters.CampaignConverter.java

/**
 * Campaign converter. 
 * Converts a {@link JSONObject} into a {@link Campaign} instance.
 * @author John Boyer
 * @version 2015-08-18
 */

From source file com.subakva.formicid.converters.PathConverter.java

public class PathConverter implements Converter {

    private final Container container;

    public PathConverter(Container container) {
        this.container = container;

From source file com.cyclopsgroup.waterview.utils.DateConverter.java

/**
 * @author <a href="mailto:jiaqi.guo@gmail.com">Jiaqi Guo</a>
 * 
 * Date commons beanutils converter
 */
class DateConverter implements Converter {

From source file jp.go.nict.langrid.p2pgridbasis.data.langrid.converter.URIConverter.java

public class URIConverter implements Converter {
    public Object convert(Class type, Object value) {
        if (value == null) {
            return null;
        }

From source file com.cyw.common.util.bean.DateConverter.java

/**
 * <p>
 * Standard {@link Converter} implementation that converts an incoming String
 * into a <code>java.sql.Date</code> object, optionally using a default value or
 * throwing a {@link ConversionException} if a conversion error occurs.
 * </p>

From source file org.gbif.registry.metasync.util.converter.DateTimeConverter.java

/**
 * Used by commons-digester (via commons-beanutils) to convert Strings into {@link DateTime}s from Joda Time assuming
 * that all those Strings are in ISO 8601 form but where the time is optional.
 */
public class DateTimeConverter implements Converter {