Class XmlHelper

java.lang.Object
org.apache.felix.obrplugin.XmlHelper

public class XmlHelper extends Object
Provide XML helper methods to support pre-Java5 runtimes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    based on public Java5 javadoc of org.w3c.dom.Node.getTextContent method
    private static String
    based on the following quote from public Java5 javadoc of org.w3c.dom.Node.getTextContent method: "concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes.
    static void
    setTextContent(Node node, String text)
    based on public Java5 javadoc of org.w3c.dom.Node.setTextContent method

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlHelper

      public XmlHelper()
  • Method Details

    • getTextContent

      public static String getTextContent(Node node)
      based on public Java5 javadoc of org.w3c.dom.Node.getTextContent method
    • mergeTextContent

      private static String mergeTextContent(NodeList nodes)
      based on the following quote from public Java5 javadoc of org.w3c.dom.Node.getTextContent method: "concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children"
    • setTextContent

      public static void setTextContent(Node node, String text)
      based on public Java5 javadoc of org.w3c.dom.Node.setTextContent method