|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jec.util.XMLHelper
Helper class for commond XML handling tasks
Constructor Summary | |
XMLHelper()
|
Method Summary | |
static org.w3c.dom.Element |
createBrother(org.w3c.dom.Element el)
Creates an empty brother (same parent, same tag name) |
static org.w3c.dom.Element |
createBrother(org.w3c.dom.Element el,
java.lang.String text)
Creates an empty brother (same parent, same tag name) with a text node |
static java.lang.Object |
getChild(org.w3c.dom.Element el,
java.lang.String childName)
Returns children of a given Element. |
static java.lang.String |
getText(org.w3c.dom.Element el)
Returns the concatenation of every element's child text node |
static void |
setChild(org.w3c.dom.Element el,
java.lang.String childName,
java.lang.Object value)
Creates a new child element with the given name, removing any existing element for that name. |
static void |
setText(org.w3c.dom.Element el,
java.lang.String value)
Sets element's text, erasing previous value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLHelper()
Method Detail |
public static java.lang.String getText(org.w3c.dom.Element el)
public static void setText(org.w3c.dom.Element el, java.lang.String value)
public static java.lang.Object getChild(org.w3c.dom.Element el, java.lang.String childName)
public static void setChild(org.w3c.dom.Element el, java.lang.String childName, java.lang.Object value)
public static org.w3c.dom.Element createBrother(org.w3c.dom.Element el)
public static org.w3c.dom.Element createBrother(org.w3c.dom.Element el, java.lang.String text)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |