org.apache.myfaces.view
Interface ViewDeclarationLanguageStrategy

All Known Implementing Classes:
FaceletViewDeclarationLanguageStrategy, JspViewDeclarationLanguageStrategy

public interface ViewDeclarationLanguageStrategy

This class represents a supported ViewDeclarationLanguage in the application. Notably, the default ViewDeclarationLanguageFactory maintains an ordered list of supported languages for the purpose of determining which one to use for a given view id by calling the handles(java.lang.String) method of each ofthe registered support and using the first match.

Since:
2.0
Version:
$Revision: 1187701 $ $Date: 2011-10-22 07:21:54 -0500 (Sat, 22 Oct 2011) $
Author:
Simon Lessard (latest modification by $Author: bommel $)

Method Summary
 ViewDeclarationLanguage getViewDeclarationLanguage()
          Gets the ViewDeclarationLanguage represented by this support.
 boolean handles(String viewId)
          Determines if the ViewDeclarationLanguage represented by this support should be used to handle the specified view identifier.
 

Method Detail

getViewDeclarationLanguage

ViewDeclarationLanguage getViewDeclarationLanguage()
Gets the ViewDeclarationLanguage represented by this support.

Returns:
the ViewDeclarationLanguage represented by this support

handles

boolean handles(String viewId)
Determines if the ViewDeclarationLanguage represented by this support should be used to handle the specified view identifier.

Parameters:
viewId - the view identifier
Returns:
true if the ViewDeclarationLanguage represented by this support should be used to handle the specified view identifier, false otherwise


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