org.codehaus.waffle.view
Class View

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

public class View
extends java.lang.Object

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

  1. the path of the view
  2. the controller object
which allows for more granular decisions on how to handle a View.

Author:
Michael Ward, Mauro Talevi

Constructor Summary
View(java.lang.String path, java.lang.Object controller)
          Creates a View
 
Method Summary
 java.lang.Object getController()
          Returns the Controller this View originated from
 java.lang.String getPath()
          Returns the view path
 java.lang.String getValue()
          Deprecated. Use #getPath()
 
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 path,
            java.lang.Object controller)
Creates a View

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

getPath

public java.lang.String getPath()
Returns the view path

Returns:
The View path

getValue

public java.lang.String getValue()
Deprecated. Use #getPath()


getController

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

Returns:
The Controller instance


Copyright © 2008. All Rights Reserved.