FindBugs™ 1.3.9

edu.umd.cs.findbugs.xml
Class XPathFind

java.lang.Object
  extended by edu.umd.cs.findbugs.xml.XPathFind

public abstract class XPathFind
extends java.lang.Object

Find nodes in a dom4j tree that match a particular XPath expression. The main() driver prints out information about matching nodes in an XML document.

For example, to find the list of non-disabled detectors in a FindBugs plugin descriptor, you can use the expression

/FindbugsPlugin/Detector[boolean(@disabled)=false()]/@class

Author:
David Hovemeyer

Constructor Summary
XPathFind(org.dom4j.Document document)
           
 
Method Summary
 void find(java.lang.String xpath)
           
static void main(java.lang.String[] argv)
           
protected abstract  void match(org.dom4j.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathFind

public XPathFind(org.dom4j.Document document)
Method Detail

find

public void find(java.lang.String xpath)

match

protected abstract void match(org.dom4j.Node node)

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.