java.lang.ObjectXPath.XPathString
private static final class XPath.XPathString
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 |
Field Detail |
---|
private java.lang.String xPath
Constructor Detail |
---|
public XPath.XPathString(java.lang.String xpath)
xpath
- the XPath expression.Method Detail |
---|
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- if no XPath could be built
from the read object.