Class XPath.XPathString
java.lang.Object
XPath.XPathString
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- XPath
private static final class XPath.XPathString
- extends java.lang.Object
- implements java.io.Serializable
The XPathString is dedicated to serialize instances of XPath subclasses in a implementation-independent manner.
XPathString ensures that only string data are serialized. Upon deserialization, XPathString relies on XPath factory method to to create instances of the concrete XPath wrapper currently configured.
Field Summary |
---|
private java.lang.String | xPath The XPath expression as a string. |
Constructor Summary |
---|
XPath.XPathString(java.lang.String xpath) Creates a new XPathString instance from the specified XPath expression. |
Method Summary |
---|
private java.lang.Object | readResolve() [Serialization support] Resolves the read XPathString objects into XPath implementations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xPath
private java.lang.String xPath
- The XPath expression as a string.
XPath.XPathString
public XPath.XPathString(java.lang.String xpath)
- Creates a new XPathString instance from the specified XPath expression.
- Parameters:
xpath
- the XPath expression.
readResolve
private java.lang.Object readResolve()
throws java.io.ObjectStreamException
- [Serialization support] Resolves the read XPathString objects into XPath implementations.
- Returns:
- an instance of a concrete implementation of XPath.
- Throws:
java.io.ObjectStreamException
- if no XPath could be built from the read object.