org.apache.wicket.model
Interface IPropertyReflectionAwareModel<T>

Type Parameters:
T -
All Superinterfaces:
IClusterable, IDetachable, IModel<T>, java.io.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 Summary
 java.lang.reflect.Field getPropertyField()
          Returns the field of model property or null if the field doesn't exist.
 java.lang.reflect.Method getPropertyGetter()
          Returns the getter method of model property or null if the method doesn't exist.
 java.lang.reflect.Method getPropertySetter()
          Returns the setter method of model property or null if the method doesn't exist.
 
Methods inherited from interface org.apache.wicket.model.IModel
getObject, setObject
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Method Detail

getPropertyField

java.lang.reflect.Field getPropertyField()
Returns the field of model property or null if the field doesn't exist.

Returns:
Field or null

getPropertyGetter

java.lang.reflect.Method getPropertyGetter()
Returns the getter method of model property or null if the method doesn't exist.

Returns:
Method or null

getPropertySetter

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

Returns:
Method or null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.