edu.wisc.ssec.mcidasv.util
Class XPathUtils

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.util.XPathUtils

public final class XPathUtils
extends Object

Documentation is still forthcoming, but remember that no methods accept null parameters!


Nested Class Summary
static class XPathUtils.ElementListIterator
           
static class XPathUtils.NodeListIterator
           
 
Field Summary
private static Map<String,XPathExpression> pathMap
          Maps (and caches) the XPath String to its compiled XPathExpression.
 
Constructor Summary
private XPathUtils()
          Thou shalt not create an instantiation of this class!
 
Method Summary
static List<Element> elements(IntegratedDataViewer idv, IdvResourceManager.IdvResource collectionId, String xPath)
           
static XPathUtils.ElementListIterator elements(Node root)
           
static XPathUtils.ElementListIterator elements(Node root, String xPath)
           
static XPathUtils.ElementListIterator elements(String xmlFile, String xPath)
           
static List<Element> elements(XmlResourceCollection collection, String xPath)
           
static NodeList eval(Node root, String xPath)
           
static NodeList eval(String xmlFile, String xPath)
           
static List<Node> eval(XmlResourceCollection collection, String xPath)
           
static XPathExpression expr(String xPath)
           
static Document loadXml(File xmlFile)
           
static Document loadXml(InputStream in)
           
static Document loadXml(String xmlFile)
           
static List<Node> nodes(IntegratedDataViewer idv, IdvResourceManager.IdvResource collectionId, String xPath)
           
static XPathUtils.NodeListIterator nodes(Node root)
           
static XPathUtils.NodeListIterator nodes(Node root, String xPath)
           
static XPathUtils.NodeListIterator nodes(String xmlFile, String xPath)
           
static List<Node> nodes(XmlResourceCollection collection, String xPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathMap

private static final Map<String,XPathExpression> pathMap
Maps (and caches) the XPath String to its compiled XPathExpression.

Constructor Detail

XPathUtils

private XPathUtils()
Thou shalt not create an instantiation of this class!

Method Detail

expr

public static XPathExpression expr(String xPath)

eval

public static List<Node> eval(XmlResourceCollection collection,
                              String xPath)

eval

public static NodeList eval(String xmlFile,
                            String xPath)

eval

public static NodeList eval(Node root,
                            String xPath)

nodes

public static List<Node> nodes(IntegratedDataViewer idv,
                               IdvResourceManager.IdvResource collectionId,
                               String xPath)

nodes

public static List<Node> nodes(XmlResourceCollection collection,
                               String xPath)

nodes

public static XPathUtils.NodeListIterator nodes(String xmlFile,
                                                String xPath)

nodes

public static XPathUtils.NodeListIterator nodes(Node root,
                                                String xPath)

nodes

public static XPathUtils.NodeListIterator nodes(Node root)

elements

public static List<Element> elements(IntegratedDataViewer idv,
                                     IdvResourceManager.IdvResource collectionId,
                                     String xPath)

elements

public static List<Element> elements(XmlResourceCollection collection,
                                     String xPath)

elements

public static XPathUtils.ElementListIterator elements(String xmlFile,
                                                      String xPath)

elements

public static XPathUtils.ElementListIterator elements(Node root)

elements

public static XPathUtils.ElementListIterator elements(Node root,
                                                      String xPath)

loadXml

public static Document loadXml(String xmlFile)

loadXml

public static Document loadXml(File xmlFile)

loadXml

public static Document loadXml(InputStream in)