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

org.dellroad.stuff.vaadin7.PropertyExtractor Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show newest version

/*
 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved.
 */

package org.dellroad.stuff.vaadin7;

/**
 * Classes that can extract {@link com.vaadin.data.Property} values from Java objects.
 *
 * @param  target object type for extraction
 */
public interface PropertyExtractor {

    /**
     * Read the value of the property defined by {@code propertyDef} from the given object.
     *
     * @param obj Java object
     * @param propertyDef definition of which property to read
     * @param  value type
     * @return property value
     * @throws IllegalArgumentException if this instance does not recognize {@code propertyDef}
     * @throws NullPointerException if either parameter is null
     */
     V getPropertyValue(T obj, PropertyDef propertyDef);
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy