HDIV API 2.0.4

org.hdiv.web.util
Class TagUtils

java.lang.Object
  extended by org.hdiv.web.util.TagUtils

public abstract class TagUtils
extends java.lang.Object

Utility class for tag library.

Since:
HDIV 2.0.3
Author:
Gorka Vicente

Constructor Summary
TagUtils()
           
 
Method Summary
static javax.servlet.jsp.tagext.Tag getAncestorOfType(javax.servlet.jsp.tagext.Tag tag, java.lang.Class ancestorTagClass)
          Determine whether the supplied Tag has any ancestor tag of the supplied type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagUtils

public TagUtils()
Method Detail

getAncestorOfType

public static javax.servlet.jsp.tagext.Tag getAncestorOfType(javax.servlet.jsp.tagext.Tag tag,
                                                             java.lang.Class ancestorTagClass)
Determine whether the supplied Tag has any ancestor tag of the supplied type.

Parameters:
tag - the tag whose ancestors are to be checked
ancestorTagClass - the ancestor Class being searched for
Returns:
true if the supplied Tag has any ancestor tag of the supplied type
Throws:
java.lang.IllegalArgumentException - if either of the supplied arguments is null; or if the supplied ancestorTagClass is not type-assignable to the Tag class

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.