org.exist.atom.util
Class DOM

java.lang.Object
  extended by org.exist.atom.util.DOM

public class DOM
extends Object

Author:
R. Alexander Milowski

Method Summary
static Element findChild(Element parent, String namespaceName, String localName)
           
static void findChildren(Element parent, String namespaceName, String localName, NodeHandler filter)
           
static void forEachChild(Element parent, NodeHandler filter)
           
static void removeChildren(Element parent)
           
static void replaceText(Element textE, String value)
           
static Element replaceTextElement(Element parent, String namespaceName, String localName, String value, boolean firstChild)
           
static Element replaceTextElement(Element parent, String namespaceName, String localName, String value, boolean firstChild, boolean wrap)
           
static String textContent(Node n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forEachChild

public static void forEachChild(Element parent,
                                NodeHandler filter)

findChildren

public static void findChildren(Element parent,
                                String namespaceName,
                                String localName,
                                NodeHandler filter)

findChild

public static Element findChild(Element parent,
                                String namespaceName,
                                String localName)

replaceTextElement

public static Element replaceTextElement(Element parent,
                                         String namespaceName,
                                         String localName,
                                         String value,
                                         boolean firstChild)

replaceTextElement

public static Element replaceTextElement(Element parent,
                                         String namespaceName,
                                         String localName,
                                         String value,
                                         boolean firstChild,
                                         boolean wrap)

replaceText

public static void replaceText(Element textE,
                               String value)

removeChildren

public static void removeChildren(Element parent)

textContent

public static String textContent(Node n)


Copyright (C) Wolfgang Meier. All rights reserved.