edu.umd.cs.findbugs.xml

Class XPathFind

public abstract class XPathFind extends 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(Document document)
Method Summary
voidfind(String xpath)
static voidmain(String[] argv)
protected abstract voidmatch(Node node)

Constructor Detail

XPathFind

public XPathFind(Document document)

Method Detail

find

public void find(String xpath)

main

public static void main(String[] argv)

match

protected abstract void match(Node node)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.