|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xml.XPathFactory
A factory to simplify the use of XPaths Currently each time a new XPath implementation is developed the createXPath(String, Class) method must be modified to be able to create XPath objects of that type.
Constructor Summary | |
XPathFactory()
|
Method Summary | |
static XPath |
createXPath(java.lang.String xpath,
java.lang.Class root)
NOTE: This method is the only method that needs to be modified by developers |
static XPath |
createXPath(java.lang.String xpath,
java.lang.Object root)
Creates an XPath that can evaluate the root object. |
static java.util.List |
find(java.lang.String xpath,
java.util.List elements,
java.lang.Class root)
Returns a list of the nodes that are identified by this XPath expression. |
static java.util.List |
find(java.lang.String xpath,
java.lang.Object root)
Returns a list of the nodes that are identified by this XPath expression. |
static java.util.List |
nodePaths(java.lang.String xpath,
java.util.List elements,
java.lang.Class root)
Returns a list of the node paths for all the solutions to the XPath expression In other words all the nodes from the root to the identified node are included in the nodepath |
static java.util.List |
nodePaths(java.lang.String xpath,
java.lang.Object root)
Returns a list of the node paths for all the solutions to the XPath expression In other words all the nodes from the root to the identified node are included in the nodepath |
static java.util.List |
value(java.lang.String xpath,
java.util.List elements,
java.lang.Class root)
Returns a list of the values of the nodes that are identified by this XPath expression. |
static java.util.List |
value(java.lang.String xpath,
java.lang.Object root)
Returns a list of the values of the nodes that are identified by this XPath expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XPathFactory()
Method Detail |
public static XPath createXPath(java.lang.String xpath, java.lang.Class root)
xpath
- The string representation of the XPathroot
- The class type of the root object. This class is used to determine which type of
XPath object should be instantiated
public static XPath createXPath(java.lang.String xpath, java.lang.Object root)
xpath
- The string representation of the XPathroot
- An instance of the class that the XPath will be used with. This object is used to determine which type of
XPath object should be instantiated
public static java.util.List find(java.lang.String xpath, java.lang.Object root)
xpath
- The string representation of the XPathroot
- An instance of the class that the XPath will be used with. This object is used to determine which type of
XPath object should be instantiated
public static java.util.List value(java.lang.String xpath, java.lang.Object root)
xpath
- The string representation of the XPathroot
- An instance of the class that the XPath will be used with. This object is used to determine which type of
XPath object should be instantiated
public static java.util.List nodePaths(java.lang.String xpath, java.lang.Object root)
xpath
- The string representation of the XPathroot
- An instance of the class that the XPath will be used with. This object is used to determine which type of
XPath object should be instantiated
public static java.util.List find(java.lang.String xpath, java.util.List elements, java.lang.Class root)
xpath
- The string representation of the XPathelements
- The elements to be compared with the first term in the xpathroot
- The class that the XPath will be used with. This class is used to determine which type of
XPath object should be instantiated
public static java.util.List value(java.lang.String xpath, java.util.List elements, java.lang.Class root)
xpath
- The string representation of the XPathelements
- The elements to be compared with the first term in the xpathroot
- The class that the XPath will be used with. This class is used to determine which type of
XPath object should be instantiated
public static java.util.List nodePaths(java.lang.String xpath, java.util.List elements, java.lang.Class root)
xpath
- The string representation of the XPathelements
- The elements to be compared with the first term in the xpathroot
- The class that the XPath will be used with. This class is used to determine which type of
XPath object should be instantiated
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |