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 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: 1194861 $ $Date: 2011-10-29 05:02:34 -0500 (Sat, 29 Oct 2011) $
Author:
Simon Lessard (latest modification by $Author: struberg $)

Method Summary
static
<T> T
findFirstNextByType(FaceletHandler nextHandler, Class<T> type)
          Find the first occurence of a tag handler that is instanceof T
static Collection<FaceletHandler> findNextByType(FaceletHandler nextHandler, Class<?>... type1)
           
static Collection<FaceletHandler> findNextByType(FaceletHandler nextHandler, Class<?> type1, Class<?> type2)
           
static
<T> Collection<T>
findNextByType(FaceletHandler nextHandler, 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(FaceletHandler nextHandler,
                                        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> Collection<T> findNextByType(FaceletHandler nextHandler,
                                               Class<T> type)
From TagHandler: protected final Iterator findNextByType(Class type)

Parameters:
type -
Returns:

findNextByType

public static Collection<FaceletHandler> findNextByType(FaceletHandler nextHandler,
                                                        Class<?>... type1)

findNextByType

public static Collection<FaceletHandler> findNextByType(FaceletHandler nextHandler,
                                                        Class<?> type1,
                                                        Class<?> type2)


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