String name
Attribute
Namespace namespace
Namespace
of the Attribute
String value
Attribute
AttributeType type
Attribute
boolean specified
String text
Comment
Content.CType ctype
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
- if there is a reading problem.ClassNotFoundException
- when a class cannot be foundDocument.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream out) throws IOException
The Stream protocol is:
IOException
- if there is a writing problem.String baseURI
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
- if there is a reading problem.ClassNotFoundException
- when a class cannot be foundElement.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream out) throws IOException
IOException
- if there is a writing problem.private Object readResolve() throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
String value
Document partialDocument
protected final Object writeReplace() throws ObjectStreamException
Note: Subclasses are not allowed to override this method to ensure valid serialization of all implementations.
ObjectStreamException
- never.org.jdom2.xpath.jaxen.JDOMNavigator navigator
Because of the need to wrap Namespace, we also need to unwrap namespace. Further, we can't re-use the details from one 'selectNodes' to another because the Document tree may have been modified between, and also, we do not want to be holding on to memory.
Finally, we want to pre-load the NamespaceContext with the namespaces that are in scope for the contextNode being searched.
So, we need to reset the Navigator before and after each use. try{} finally {} to the rescue.
Copyright ? 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.