Package org.apache.myfaces.view
Interface ViewDeclarationLanguageStrategy
-
- All Known Implementing Classes:
FaceletViewDeclarationLanguageStrategy
public interface ViewDeclarationLanguageStrategyThis class represents a supportedViewDeclarationLanguagein 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 thehandles(java.lang.String)method of each ofthe registered support and using the first match.- Since:
- 2.0
- Version:
- $Revision$ $Date$
- Author:
- Simon Lessard (latest modification by $Author$)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMinimalImplicitOutcome(String viewId)Return a string that can be used as a outcome for the viewId, usually removing the extension.ViewDeclarationLanguagegetViewDeclarationLanguage()Gets theViewDeclarationLanguagerepresented by this support.booleanhandles(String viewId)Determines if theViewDeclarationLanguagerepresented by this support should be used to handle the specified view identifier.
-
-
-
Method Detail
-
getViewDeclarationLanguage
ViewDeclarationLanguage getViewDeclarationLanguage()
Gets theViewDeclarationLanguagerepresented by this support.- Returns:
- the
ViewDeclarationLanguagerepresented by this support
-
handles
boolean handles(String viewId)
Determines if theViewDeclarationLanguagerepresented by this support should be used to handle the specified view identifier.- Parameters:
viewId- the view identifier- Returns:
trueif theViewDeclarationLanguagerepresented by this support should be used to handle the specified view identifier,falseotherwise
-
-