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

org.beanio.internal.compiler.PropertyAccessorFactory Maven / Gradle / Ivy

Go to download

A Java un/marshalling library for CSV, XML, delimited and fixed length stream formats.

There is a newer version: 2.1.0
Show newest version
package org.beanio.internal.compiler;

import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;

import org.beanio.internal.parser.PropertyAccessor;

/**
 * Factory interface for creating {@link PropertyAccessor}
 * implementations.
 * 
 * @author Kevin Seim
 * @since 2.0.1
 */
public interface PropertyAccessorFactory {

    /**
     * Creates a new {@link PropertyAccessor}.
     * @param parent the parent bean object type
     * @param descriptor the {@link PropertyDescriptor} to access
     * @param carg the constructor argument index
     * @return the new {@link PropertyAccessor}
     */
    public PropertyAccessor getPropertyAccessor(
        Class parent, PropertyDescriptor descriptor, int carg);
    
    /**
     * Creates a new {@link PropertyAccessor}.
     * @param parent the parent bean object type
     * @param field the {@link Field} to access
     * @param carg the constructor argument index
     * @return the new {@link PropertyAccessor}
     */
    public PropertyAccessor getPropertyAccessor(
        Class parent, Field field, int carg);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy