org.abstracthorizon.danube.mvc
Class ModelAndView

java.lang.Object
  extended by org.abstracthorizon.danube.mvc.ModelAndView

public class ModelAndView
extends Object

Simple class that combines model and view. Based on ModelAndView

Author:
Daniel Sendula

Field Summary
protected  Map<? extends Object,? extends Object> model
          Map that represents the model
protected  String view
          View name
 
Constructor Summary
ModelAndView(String view, Map<? extends Object,? extends Object> model)
          Constructor
 
Method Summary
 Map<? extends Object,? extends Object> getModel()
          Returns model as an map
 String getView()
          Returns view name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected String view
View name


model

protected Map<? extends Object,? extends Object> model
Map that represents the model

Constructor Detail

ModelAndView

public ModelAndView(String view,
                    Map<? extends Object,? extends Object> model)
Constructor

Parameters:
view - view name
model - map that represents the model
Method Detail

getView

public String getView()
Returns view name

Returns:
view name

getModel

public Map<? extends Object,? extends Object> getModel()
Returns model as an map

Returns:
model as an map


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.