org.apache.empire.jsf2.pages
Class PageDefinition

java.lang.Object
  extended by org.apache.empire.jsf2.pages.PageDefinition
All Implemented Interfaces:
Serializable

public class PageDefinition
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
PageDefinition(String path, Class<? extends Page> pageBeanClass)
          Constructs a page definition
PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent)
          Constructs a page definition
PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent, String pageBeanName)
          Constructs a page definition
PageDefinition(String path, Class<? extends Page> pageBeanClass, String pageBeanName)
          Constructs a page definition
 
Method Summary
static String decodeActionParam(String param)
           
 String getFileExtension()
           
 PageOutcome getOutcome()
           
 PageOutcome getOutcome(String action)
           
 Class<? extends Page> getPageBeanClass()
           
 String getPageBeanName()
           
protected  String getPageBeanNameFromPath(String path, String extension)
           
 PageDefinition getParent()
           
 String getPath()
           
 PageOutcome getRedirect()
           
 PageOutcome getRedirect(String action)
           
 PageOutcome getRedirectWithViewParams()
           
 PageOutcome getRedirectWithViewParams(String action)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageDefinition

public PageDefinition(String path,
                      Class<? extends Page> pageBeanClass,
                      PageDefinition parent,
                      String pageBeanName)
Constructs a page definition

Parameters:
path - the path of the view associated with this page
pageBeanClass - the page bean class associated with this page
parent - the parent page (if any). May be null
pageBeanName - the page bean name. If null this will be calculated from the path

PageDefinition

public PageDefinition(String path,
                      Class<? extends Page> pageBeanClass,
                      String pageBeanName)
Constructs a page definition

Parameters:
path - the path of the view associated with this page
pageBeanClass - the page bean class associated with this page
pageBeanName - the page bean name. If null this will be calculated from the path

PageDefinition

public PageDefinition(String path,
                      Class<? extends Page> pageBeanClass,
                      PageDefinition parent)
Constructs a page definition

Parameters:
path - the path of the view associated with this page
pageBeanClass - the page bean class associated with this page
parent - the parent page (if any). May be null

PageDefinition

public PageDefinition(String path,
                      Class<? extends Page> pageBeanClass)
Constructs a page definition

Parameters:
path - the path of the view associated with this page
pageBeanClass - the page bean class associated with this page
Method Detail

decodeActionParam

public static String decodeActionParam(String param)

getPageBeanNameFromPath

protected String getPageBeanNameFromPath(String path,
                                         String extension)

getPath

public String getPath()

getFileExtension

public String getFileExtension()

getPageBeanName

public String getPageBeanName()

getPageBeanClass

public Class<? extends Page> getPageBeanClass()

getParent

public PageDefinition getParent()

getOutcome

public PageOutcome getOutcome()

getOutcome

public PageOutcome getOutcome(String action)

getRedirect

public PageOutcome getRedirect()

getRedirect

public PageOutcome getRedirect(String action)

getRedirectWithViewParams

public PageOutcome getRedirectWithViewParams()

getRedirectWithViewParams

public PageOutcome getRedirectWithViewParams(String action)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.