Package org.apache.myfaces.view
Interface ViewDeclarationLanguageStrategy
- All Known Implementing Classes:
FaceletViewDeclarationLanguageStrategy
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$ $Date$
- Author:
- Simon Lessard (latest modification by $Author$)
-
Method Summary
Modifier and TypeMethodDescriptiongetMinimalImplicitOutcome
(String viewId) Return a string that can be used as a outcome for the viewId, usually removing the extension.Gets theViewDeclarationLanguage
represented by this support.boolean
Determines if theViewDeclarationLanguage
represented by this support should be used to handle the specified view identifier.
-
Method Details
-
getViewDeclarationLanguage
ViewDeclarationLanguage getViewDeclarationLanguage()Gets theViewDeclarationLanguage
represented by this support.- Returns:
- the
ViewDeclarationLanguage
represented by this support
-
handles
Determines if theViewDeclarationLanguage
represented by this support should be used to handle the specified view identifier.- Parameters:
viewId
- the view identifier- Returns:
true
if theViewDeclarationLanguage
represented by this support should be used to handle the specified view identifier,false
otherwise
-
getMinimalImplicitOutcome
Return a string that can be used as a outcome for the viewId, usually removing the extension.- Parameters:
viewId
-- Returns:
- Since:
- 2.3
-