org.apache.myfaces.view.facelets.tag
Class TagHandlerUtils

java.lang.Object
  extended by org.apache.myfaces.view.facelets.tag.TagHandlerUtils

public final class TagHandlerUtils
extends java.lang.Object

This class was created to gather some code from latest Facelets not existing in latest JSF 2.0 spec. Also, since it was created on the fly while converting, it's highly possible that methods in this class should be moved in a more logical location and/or removed.

Since:
2.0
Version:
$Revision: 696523 $ $Date: 2009-03-21 12:31:27 -0400 (mer., 17 sept. 2008) $
Author:
Simon Lessard (latest modification by $Author: slessard $)

Method Summary
static
<T> T
findFirstNextByType(javax.faces.view.facelets.FaceletHandler nextHandler, java.lang.Class<T> type)
          Find the first occurence of a tag handler that is instanceof T
static java.util.Collection<javax.faces.view.facelets.FaceletHandler> findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler, java.lang.Class<?>... type1)
           
static java.util.Collection<javax.faces.view.facelets.FaceletHandler> findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler, java.lang.Class<?> type1, java.lang.Class<?> type2)
           
static
<T> java.util.Collection<T>
findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler, java.lang.Class<T> type)
          From TagHandler: protected final Iterator findNextByType(Class type)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findFirstNextByType

public static <T> T findFirstNextByType(javax.faces.view.facelets.FaceletHandler nextHandler,
                                        java.lang.Class<T> type)
Find the first occurence of a tag handler that is instanceof T

Type Parameters:
T -
Parameters:
nextHandler -
type -
Returns:
Since:
2.0.1

findNextByType

public static <T> java.util.Collection<T> findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler,
                                                         java.lang.Class<T> type)
From TagHandler: protected final Iterator findNextByType(Class type)

Parameters:
type -
Returns:

findNextByType

public static java.util.Collection<javax.faces.view.facelets.FaceletHandler> findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler,
                                                                                            java.lang.Class<?>... type1)

findNextByType

public static java.util.Collection<javax.faces.view.facelets.FaceletHandler> findNextByType(javax.faces.view.facelets.FaceletHandler nextHandler,
                                                                                            java.lang.Class<?> type1,
                                                                                            java.lang.Class<?> type2)


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