public final class XPathUtils extends java.lang.Object
null
parameters!Modifier and Type | Class and Description |
---|---|
static class |
XPathUtils.ElementListIterator |
static class |
XPathUtils.NodeListIterator |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,javax.xml.xpath.XPathExpression> |
pathMap
Maps (and caches) the XPath
String to its compiled
XPathExpression . |
Modifier | Constructor and Description |
---|---|
private |
XPathUtils()
Thou shalt not create an instantiation of this class!
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<org.w3c.dom.Element> |
elements(ucar.unidata.idv.IntegratedDataViewer idv,
ucar.unidata.idv.IdvResourceManager.IdvResource collectionId,
java.lang.String xPath) |
static XPathUtils.ElementListIterator |
elements(org.w3c.dom.Node root) |
static XPathUtils.ElementListIterator |
elements(org.w3c.dom.Node root,
java.lang.String xPath) |
static XPathUtils.ElementListIterator |
elements(java.lang.String xmlFile,
java.lang.String xPath) |
static java.util.List<org.w3c.dom.Element> |
elements(ucar.unidata.xml.XmlResourceCollection collection,
java.lang.String xPath) |
static org.w3c.dom.NodeList |
eval(org.w3c.dom.Node root,
java.lang.String xPath) |
static org.w3c.dom.NodeList |
eval(java.lang.String xmlFile,
java.lang.String xPath) |
static java.util.List<org.w3c.dom.Node> |
eval(ucar.unidata.xml.XmlResourceCollection collection,
java.lang.String xPath) |
static javax.xml.xpath.XPathExpression |
expr(java.lang.String xPath) |
static org.w3c.dom.Document |
loadXml(java.io.File xmlFile) |
static org.w3c.dom.Document |
loadXml(java.io.InputStream in) |
static org.w3c.dom.Document |
loadXml(java.lang.String xmlFile) |
static java.util.List<org.w3c.dom.Node> |
nodes(ucar.unidata.idv.IntegratedDataViewer idv,
ucar.unidata.idv.IdvResourceManager.IdvResource collectionId,
java.lang.String xPath) |
static XPathUtils.NodeListIterator |
nodes(org.w3c.dom.Node root) |
static XPathUtils.NodeListIterator |
nodes(org.w3c.dom.Node root,
java.lang.String xPath) |
static XPathUtils.NodeListIterator |
nodes(java.lang.String xmlFile,
java.lang.String xPath) |
static java.util.List<org.w3c.dom.Node> |
nodes(ucar.unidata.xml.XmlResourceCollection collection,
java.lang.String xPath) |
private static final java.util.Map<java.lang.String,javax.xml.xpath.XPathExpression> pathMap
String
to its compiled
XPathExpression
.private XPathUtils()
public static javax.xml.xpath.XPathExpression expr(java.lang.String xPath)
public static java.util.List<org.w3c.dom.Node> eval(ucar.unidata.xml.XmlResourceCollection collection, java.lang.String xPath)
public static org.w3c.dom.NodeList eval(java.lang.String xmlFile, java.lang.String xPath)
public static org.w3c.dom.NodeList eval(org.w3c.dom.Node root, java.lang.String xPath)
public static java.util.List<org.w3c.dom.Node> nodes(ucar.unidata.idv.IntegratedDataViewer idv, ucar.unidata.idv.IdvResourceManager.IdvResource collectionId, java.lang.String xPath)
public static java.util.List<org.w3c.dom.Node> nodes(ucar.unidata.xml.XmlResourceCollection collection, java.lang.String xPath)
public static XPathUtils.NodeListIterator nodes(java.lang.String xmlFile, java.lang.String xPath)
public static XPathUtils.NodeListIterator nodes(org.w3c.dom.Node root, java.lang.String xPath)
public static XPathUtils.NodeListIterator nodes(org.w3c.dom.Node root)
public static java.util.List<org.w3c.dom.Element> elements(ucar.unidata.idv.IntegratedDataViewer idv, ucar.unidata.idv.IdvResourceManager.IdvResource collectionId, java.lang.String xPath)
public static java.util.List<org.w3c.dom.Element> elements(ucar.unidata.xml.XmlResourceCollection collection, java.lang.String xPath)
public static XPathUtils.ElementListIterator elements(java.lang.String xmlFile, java.lang.String xPath)
public static XPathUtils.ElementListIterator elements(org.w3c.dom.Node root)
public static XPathUtils.ElementListIterator elements(org.w3c.dom.Node root, java.lang.String xPath)
public static org.w3c.dom.Document loadXml(java.lang.String xmlFile)
public static org.w3c.dom.Document loadXml(java.io.File xmlFile)
public static org.w3c.dom.Document loadXml(java.io.InputStream in)