Class AbstractPropertyModel<T>

    • Constructor Detail

      • AbstractPropertyModel

        public AbstractPropertyModel​(java.lang.Object modelObject)
        Constructor
        Parameters:
        modelObject - The nested model object
    • Method Detail

      • getInnermostModelOrObject

        public final java.lang.Object getInnermostModelOrObject()
        Returns:
        The innermost model or the object if the target is not a model
      • setObject

        public void setObject​(T object)
        Applies the property expression on the model object using the given object argument.
        Specified by:
        setObject in interface IModel<T>
        Overrides:
        setObject in class ChainingModel<T>
        Parameters:
        object - The object that will be used when setting a value on the model object
      • getPropertyExpression

        public final java.lang.String getPropertyExpression()
        Gets the property expression for this model
        Returns:
        The property expression
      • getPropertyGetter

        public java.lang.reflect.Method getPropertyGetter()
        Gets the getter method of model property or null if the method doesn't exist.
        Specified by:
        getPropertyGetter in interface IPropertyReflectionAwareModel<T>
        Returns:
        Method or null
      • getPropertySetter

        public java.lang.reflect.Method getPropertySetter()
        Gets the setter method of model property or null if the method doesn't exist.
        Specified by:
        getPropertySetter in interface IPropertyReflectionAwareModel<T>
        Returns:
        Method or null
      • propertyExpression

        protected abstract java.lang.String propertyExpression()
        Returns:
        The property expression for the component