Class ChainingModel<T>

    • Constructor Detail

      • ChainingModel

        public ChainingModel​(Object modelObject)
    • Method Detail

      • setObject

        public void setObject​(T object)
        Description copied from interface: IModel
        Sets the model object.
        Specified by:
        setObject in interface IModel<T>
        Parameters:
        object - The model object
      • getObject

        public T getObject()
        Description copied from interface: IModel
        Gets the model object.
        Specified by:
        getObject in interface IModel<T>
        Returns:
        The model object
      • getTarget

        public final Object getTarget()
        Returns:
        The target - object or model
      • setTarget

        protected final ChainingModel<T> setTarget​(Object modelObject)
        Sets a new target - object or model
        Returns:
        this object
      • getChainedModel

        public IModel<?> getChainedModel()
        Returns:
        The target - if it is a model, null otherwise
      • getInnermostModelOrObject

        public final Object getInnermostModelOrObject()
        Returns:
        The innermost model or the object if the target is not a model