Interface IPropertyReflectionAwareModel<T>

  • Type Parameters:
    T -
    All Superinterfaces:
    org.apache.wicket.util.io.IClusterable, IDetachable, IModel<T>, Serializable
    All Known Implementing Classes:
    AbstractPropertyModel, PropertyModel

    public interface IPropertyReflectionAwareModel<T>
    extends IModel<T>
    Optional interface implemented by models that are able to provide reflection information about object property they interact with. The model doesn't have to support all property information in this interface. It is valid to return null for any method.
    Author:
    Matej Knopp
    • Method Detail

      • getPropertyField

        Field getPropertyField()
        Returns the field of model property or null if the field doesn't exist.
        Returns:
        Field or null
      • getPropertyGetter

        Method getPropertyGetter()
        Returns the getter method of model property or null if the method doesn't exist.
        Returns:
        Method or null
      • getPropertySetter

        Method getPropertySetter()
        Returns the setter method of model property or null if the method doesn't exist.
        Returns:
        Method or null