| java.lang.Object org.apache.solr.util.DOMUtil
DOMUtil | public class DOMUtil (Code) | | author: yonik version: $Id: DOMUtil.java 542679 2007-05-29 22:28:21Z ryan $ |
Method Summary | |
public static void | addToNamedList(Node nd, NamedList nlst, List arr) | public static List | childNodesToList(Node nd) | public static NamedList | childNodesToNamedList(Node nd) | public static String | getAttr(NamedNodeMap attrs, String name) | public static String | getAttr(Node nd, String name) | public static String | getAttr(NamedNodeMap attrs, String name, String missing_err) | public static String | getAttr(Node node, String name, String missing_err) | public static Node | getChild(Node node, String name) | public static String | getText(Node nd) Drop in replacement for Node.getTextContent(). | public static List | nodesToList(NodeList nlst) | public static NamedList | nodesToNamedList(NodeList nlst) | public static void | substituteSystemProperties(Node node) Replaces ${system.property[:default value]} references in all attributes
and text nodes of supplied node. | public static Map<String, String> | toMap(NamedNodeMap attrs) | public static Map<String, String> | toMapExcept(NamedNodeMap attrs, String... exclusions) |
getText | public static String getText(Node nd)(Code) | | Drop in replacement for Node.getTextContent().
This method is provided to support the same functionality as
Node.getTextContent() but in a way that is DOM Level 2 compatible.
See Also: DOM Object Model Core |
substituteSystemProperties | public static void substituteSystemProperties(Node node)(Code) | | Replaces ${system.property[:default value]} references in all attributes
and text nodes of supplied node. If the system property is not defined and no
default value is provided, a runtime exception is thrown.
Parameters: node - DOM node to walk for substitutions |
|
|