Package com.jk.web.mvc
Class MvcPageModelBinding
java.lang.Object
com.jk.web.mvc.MvcPageModelBinding
This class represents a binding between an MVC page and its associated model
class.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newMvcPageModelBinding
.MvcPageModelBinding
(String pagePath, Class<?> model) This method constructs a newMvcPageModelBinding
with a page path and model class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getModel()
This method gets the model class associated with the binding.getPage()
This method retrieves the MVC page associated with the binding.void
This method sets the model class associated with the binding to the provided one.void
This method sets the MVC page associated with the binding to the provided value.
-
Constructor Details
-
MvcPageModelBinding
public MvcPageModelBinding()This method constructs a newMvcPageModelBinding
. -
MvcPageModelBinding
This method constructs a newMvcPageModelBinding
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
This method gets the model class associated with the binding.- Returns:
- the model class associated with the binding.
-
setModel
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
This method retrieves the MVC page associated with the binding.- Returns:
- the MVC page associated with the binding.
-
setPage
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.
-