Class ChainingModel<T>

    • Constructor Detail

      • ChainingModel

        public ChainingModel​(java.lang.Object target)
        Instantiates a new ChainingModel.
        Parameters:
        target - the target object
    • Method Detail

      • attach

        public void attach()
        Attach an object.
        Specified by:
        attach in interface Attachable
      • detach

        public void detach()
        Unsets this property model's instance variables and detaches the model.
        Specified by:
        detach in interface IDetachable
      • setChainedModel

        public void setChainedModel​(IModel<?> model)
        Sets the chained model.
        Specified by:
        setChainedModel in interface IChainingModel<T>
        Parameters:
        model - the new chained model
      • getObject

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

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

        protected final java.lang.Object getTarget()
        Returns:
        The target - object or model
      • setTarget

        protected final ChainingModel<T> setTarget​(java.lang.Object modelObject)
        Sets a new target - object or model.
        Parameters:
        modelObject - the model object
        Returns:
        this object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object