org.dellroad.stuff.vaadin7.PropertyExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dellroad-stuff-vaadin7 Show documentation
Show all versions of dellroad-stuff-vaadin7 Show documentation
DellRoad Stuff classes related to the Vaadin GUI framework.
/*
* Copyright (C) 2022 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