org.talika.tarsis.command.view
Class ViewImpl

java.lang.Object
  extended by org.talika.tarsis.command.view.ViewImpl
All Implemented Interfaces:
View
Direct Known Subclasses:
ForwardView, IncludeView, RedirectView

public class ViewImpl
extends java.lang.Object
implements View

Default implementation of View interface.

Version:
$Revision: 113 $
Author:
Jose M. Palomar

Field Summary
 
Fields inherited from interface org.talika.tarsis.command.view.View
DEFAULT_VIEW_NAME, FORWARD, INCLUDE, INPUT_VIEW_NAME, REDIRECT
 
Constructor Summary
ViewImpl(java.lang.String name, java.lang.String path, int type)
          Constructs a new ViewImpl object for given name, path and type.
 
Method Summary
 java.lang.String getName()
          Returns name of view.
 java.lang.String getPath()
          Returns path fo view.
 int getType()
          Returns view's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewImpl

public ViewImpl(java.lang.String name,
                java.lang.String path,
                int type)
Constructs a new ViewImpl object for given name, path and type.

Parameters:
name - String name of view.
path - String path fo view.
type - int type of view.
Method Detail

getName

public final java.lang.String getName()
Returns name of view.

Specified by:
getName in interface View
Returns:
String name of view.
See Also:
View.getName()

getPath

public final java.lang.String getPath()
Returns path fo view.

Specified by:
getPath in interface View
Returns:
String path fo view.
See Also:
View.getPath()

getType

public final int getType()
Returns view's type. View's can be FORWARD, REDIRECT or INCLUDE.

Specified by:
getType in interface View
Returns:
int view's type.
See Also:
View.getType()


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.