org.apache.shindig.gadgets.parse.caja
Class CajaCssUtils

java.lang.Object
  extended by org.apache.shindig.gadgets.parse.caja.CajaCssUtils

public final class CajaCssUtils
extends Object

Utility functions for traversing Caja's CSS DOM


Method Summary
static
<T extends com.google.caja.parser.css.CssTree>
List<T>
children(com.google.caja.parser.css.CssTree node, Class<T> nodeType)
          Get the immediate children of the passed node with the specified node type
static
<T extends com.google.caja.parser.css.CssTree>
List<T>
descendants(com.google.caja.parser.css.CssTree node, Class<T> nodeType)
          Get all descendants of the passed node with the specified node type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

children

public static <T extends com.google.caja.parser.css.CssTree> List<T> children(com.google.caja.parser.css.CssTree node,
                                                                              Class<T> nodeType)
Get the immediate children of the passed node with the specified node type


descendants

public static <T extends com.google.caja.parser.css.CssTree> List<T> descendants(com.google.caja.parser.css.CssTree node,
                                                                                 Class<T> nodeType)
Get all descendants of the passed node with the specified node type



Copyright © 2007-2012. All Rights Reserved.