All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tecacet.util.introspection.MapPropertyAccessor Maven / Gradle / Ivy

Go to download

JFlat's purpose is to convert flat files to Java Beans and vice versa. Some supported formats are CSV, fixed-width, arbitrary delimiters, and excel files. There are also tools to generate Java Beans to/from JDBC and Swing tables. JFlat is highly extensible and can be adopted to support additional formats.

The newest version!
package com.tecacet.util.introspection;

import java.util.Map;

/**
 * Default property accessor for a map 
 * 
 * @author Dimitri Papaioannou
 *
 */
public class MapPropertyAccessor implements PropertyAccessor> {

    @Override
    public Object getProperty(Map bean, String propertyName) throws BeanIntrospectorException {
        return bean.get(propertyName);
    }

    @Override
    public void setProperty(Map bean, String propertyName, Object value)
            throws BeanIntrospectorException {
        bean.put(propertyName, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy