org.codehaus.waffle.view
Class View

java.lang.Object
  extended by org.codehaus.waffle.view.View
Direct Known Subclasses:
RedirectView, ResponderView

public class View
extends java.lang.Object

Represents the value of the view that the resolver will dispatch. View holds:

  1. the value from the controller method
  2. the controller object
this allows for more granular decisions on how to handle a View

Author:
Michael Ward

Constructor Summary
View(java.lang.String value, java.lang.Object controller)
          Creates a View
 
Method Summary
 java.lang.Object getController()
          Returns the Controller this View originated from
 java.lang.String getValue()
          Returns the view value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(java.lang.String value,
            java.lang.Object controller)
Creates a View

Parameters:
value - represents the name of the View to be resolved
controller - the controller where the view originated from
Method Detail

getValue

public java.lang.String getValue()
Returns the view value. The term "value" is used to be purposely open ended.

Returns:
The View value

getController

public java.lang.Object getController()
Returns the Controller this View originated from

Returns:
The Controller instance


Copyright © 2008. All Rights Reserved.