-
public class DomUtilDomUtil class.
-
-
Method Summary
Modifier and Type Method Description static voidsaveDom(OutputStream os, Element e)save dom into ouputstream static StringgetAttribute(Node node, String attrName)getAttribute. static StringgetId(Node node)getId. static StringgetId(Node node, boolean prefix)getId. static StringgetClassString(Node node)getClassString. static Set<String>getClasses(Node node)getClasses. static Set<String>getClasses(Node node, String prefix)getClasses. static Set<String>getSimpleSelectors(Node node)TODO : Use real css selector static StringgetPrettyName(Node node)getPrettyName. -
-
Method Detail
-
saveDom
static void saveDom(OutputStream os, Element e)
save dom into ouputstream
- Parameters:
os- a java.io.OutputStream object.e- a org.w3c.dom.Element object.
-
getAttribute
static String getAttribute(Node node, String attrName)
getAttribute.
- Parameters:
node- a org.w3c.dom.Node object.attrName- a java.lang.String object.
-
getId
static String getId(Node node)
getId.
- Parameters:
node- a org.w3c.dom.Node object.
-
getId
static String getId(Node node, boolean prefix)
getId.
- Parameters:
node- a org.w3c.dom.Node object.prefix- a boolean.
-
getClassString
static String getClassString(Node node)
getClassString.
- Parameters:
node- a org.w3c.dom.Node object.
-
getClasses
static Set<String> getClasses(Node node)
getClasses.
- Parameters:
node- a org.w3c.dom.Node object.
-
getClasses
static Set<String> getClasses(Node node, String prefix)
getClasses.
- Parameters:
node- a org.w3c.dom.Node object.prefix- a java.lang.String object.
-
getSimpleSelectors
static Set<String> getSimpleSelectors(Node node)
TODO : Use real css selector
- Parameters:
node- a org.w3c.dom.Node object.
-
getPrettyName
static String getPrettyName(Node node)
getPrettyName.
- Parameters:
node- a org.w3c.dom.Node object.
-
-
-
-