Public Member Functions | Public Attributes | Private Member Functions | Static Private Attributes

de.mfuchs.xmlstorage.XPath Class Reference

Inheritance diagram for de.mfuchs.xmlstorage.XPath:
Inheritance graph
[legend]
Collaboration diagram for de.mfuchs.xmlstorage.XPath:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 43 of file XPath.java.


Constructor & Destructor Documentation

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().

    {
        _absolute = init(path);
    }

Here is the call graph for this function:


Member Function Documentation

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;
    }

Here is the call graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: