Public Member Functions | |
XPath () | |
XPath (String path) | |
Public Attributes | |
final boolean | _absolute |
Private Member Functions | |
boolean | init (String path) |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Definition at line 43 of file XPath.java.
de.mfuchs.xmlstorage.XPath.XPath | ( | ) |
Definition at line 49 of file XPath.java.
References de.mfuchs.xmlstorage.XPath._absolute.
{ _absolute = false; }
de.mfuchs.xmlstorage.XPath.XPath | ( | String | path ) |
Definition at line 54 of file XPath.java.
References de.mfuchs.xmlstorage.XPath._absolute, and de.mfuchs.xmlstorage.XPath.init().
boolean de.mfuchs.xmlstorage.XPath.init | ( | String | path ) | [private] |
Definition at line 59 of file XPath.java.
References de.mfuchs.xmlstorage.XPathElement.parse().
Referenced by de.mfuchs.xmlstorage.XPath.XPath().
{ boolean absolute; int idx = 0; // Is this an absolute path? if (path.length()>0 && path.charAt(0)=='/') { absolute = true; ++idx; } else absolute = false; // parse path while(idx < path.length()) { XPathElement elem = new XPathElement(); idx = elem.parse(path, idx); if (idx == -1) break; add(elem); if (idx >= path.length()) break; if (path.charAt(idx) == '/') ++idx; } return absolute; }
final boolean de.mfuchs.xmlstorage.XPath._absolute |
Definition at line 47 of file XPath.java.
Referenced by de.mfuchs.xmlstorage.XMLPos.go(), and de.mfuchs.xmlstorage.XPath.XPath().
final long de.mfuchs.xmlstorage.XPath.serialVersionUID = 1L [static, private] |
Definition at line 45 of file XPath.java.