Class MvcPageModelBinding

java.lang.Object
com.jk.web.mvc.MvcPageModelBinding

public class MvcPageModelBinding extends Object
This class represents a binding between an MVC page and its associated model class.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • MvcPageModelBinding

      public MvcPageModelBinding()
      This method constructs a new MvcPageModelBinding.
    • MvcPageModelBinding

      public MvcPageModelBinding(String pagePath, Class<?> model)
      This method constructs a new MvcPageModelBinding with a page path and model class.
      Parameters:
      pagePath - Specifies the path to the MVC page.
      model - Specifies the model class associated with the page.
  • Method Details

    • getModel

      public Class<?> getModel()
      This method gets the model class associated with the binding.
      Returns:
      the model class associated with the binding.
    • setModel

      public void setModel(Class<?> model)
      This method sets the model class associated with the binding to the provided one.
      Parameters:
      model - Specifies the new model class associated with the binding.
    • getPage

      public MvcPage getPage()
      This method retrieves the MVC page associated with the binding.
      Returns:
      the MVC page associated with the binding.
    • setPage

      public void setPage(MvcPage page)
      This method sets the MVC page associated with the binding to the provided value.
      Parameters:
      page - Specifies the new MVC page associated with the binding.