|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.util.xml.XMLUtils
public class XMLUtils
This class should collect various XML manipulation utilities not found in JAXP APIs.
| Constructor Summary | |
|---|---|
XMLUtils()
|
|
| Method Summary | |
|---|---|
static Element |
findFirstChild(Node parent,
String name)
Finds the first direct child element named "name" under the specified parent. |
static String |
getAttributeValue(Element parent,
String attribute)
Helper method, that returns the attribute value or null, if the attribute is not defined. |
static List<Element> |
getChildren(Element parent,
String tagName)
Builds a list of direct child Nodes of an Element with the specified
tag name. |
static Object |
loadBean(String content,
Object prototype,
Lookup context)
|
static String |
saveBean(Object bean,
Lookup context)
|
static void |
throwWrappedIOException(Throwable cause)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtils()
| Method Detail |
|---|
public static String getAttributeValue(Element parent,
String attribute)
public static Element findFirstChild(Node parent,
String name)
parent - The parent to search inname - The tag name to search for
public static List<Element> getChildren(Element parent,
String tagName)
Nodes of an Element with the specified
tag name. This method does not respect XML namespaces.
Note that the DOM method getElementsByTagName returns all descendants
that use the specified tag, not just direct children.
public static void throwWrappedIOException(Throwable cause)
throws IOException
IOException
public static Object loadBean(String content,
Object prototype,
Lookup context)
throws IOException
IOException
public static String saveBean(Object bean,
Lookup context)
throws IOException
IOException
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||