org.apache.myfaces.shared.view
Class ViewDeclarationLanguageBase

java.lang.Object
  extended by javax.faces.view.ViewDeclarationLanguage
      extended by org.apache.myfaces.shared.view.ViewDeclarationLanguageBase
Direct Known Subclasses:
JspViewDeclarationLanguageBase

public abstract class ViewDeclarationLanguageBase
extends javax.faces.view.ViewDeclarationLanguage

Since:
2.0
Version:
$Revision: 696523 $ $Date: 2009-03-22 15:03:20 -0400 (mer., 17 sept. 2008) $
Author:
Simon Lessard (latest modification by $Author: slessard $)

Constructor Summary
ViewDeclarationLanguageBase()
           
 
Method Summary
protected abstract  java.lang.String calculateViewId(javax.faces.context.FacesContext context, java.lang.String viewId)
          Calculates the effective view identifier for the specified raw view identifier.
protected  void checkNull(java.lang.Object o, java.lang.String param)
          Check if the specified value of a param is null.
 javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, java.lang.String viewId)
          Process the specification required algorithm that is generic to all PDL.
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId)
          
protected abstract  void sendSourceNotFound(javax.faces.context.FacesContext context, java.lang.String message)
          Send a source not found to the client.
 
Methods inherited from class javax.faces.view.ViewDeclarationLanguage
buildView, getComponentMetadata, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, renderView, retargetAttachedObjects, retargetMethodExpressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewDeclarationLanguageBase

public ViewDeclarationLanguageBase()
Method Detail

createView

public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
                                                   java.lang.String viewId)
Process the specification required algorithm that is generic to all PDL.

Specified by:
createView in class javax.faces.view.ViewDeclarationLanguage
Parameters:
context -
viewId -

restoreView

public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
                                                    java.lang.String viewId)

Specified by:
restoreView in class javax.faces.view.ViewDeclarationLanguage

calculateViewId

protected abstract java.lang.String calculateViewId(javax.faces.context.FacesContext context,
                                                    java.lang.String viewId)
Calculates the effective view identifier for the specified raw view identifier.

Parameters:
context - le current FacesContext
viewId - the raw view identifier
Returns:
the effective view identifier

sendSourceNotFound

protected abstract void sendSourceNotFound(javax.faces.context.FacesContext context,
                                           java.lang.String message)
Send a source not found to the client. Although it can be considered ok in JSP mode, I think it's pretty lame to have this kind of requirement at VDL level considering VDL represents the page --> JSF tree link, not the transport layer required to send a SC_NOT_FOUND.

Parameters:
context - le current FacesContext
message - the message associated with the error

checkNull

protected void checkNull(java.lang.Object o,
                         java.lang.String param)
Check if the specified value of a param is null.

Parameters:
o - the parameter's value
param - the parameter's name
Throws:
java.lang.NullPointerException - if the value is null


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.