JDOM
2.0.5

Serialized Form


Package org.jdom2

Class org.jdom2.Attribute extends org.jdom2.CloneBase implements Serializable

serialVersionUID: 200L

Serialized Fields

name

java.lang.String name
The local name of the Attribute


namespace

Namespace namespace
The Namespace of the Attribute


value

java.lang.String value
The value of the Attribute


type

AttributeType type
The type of the Attribute


specified

boolean specified
Specified attributes are part of the XML, unspecified attributes are 'defaulted' from a DTD.

Class org.jdom2.CDATA extends Text implements Serializable

serialVersionUID: 200L

Class org.jdom2.Comment extends Content implements Serializable

serialVersionUID: 200L

Serialized Fields

text

java.lang.String text
Text of the Comment

Class org.jdom2.Content extends org.jdom2.CloneBase implements Serializable

serialVersionUID: 200L

Serialized Fields

ctype

Content.CType ctype
The content type enumerate value for this Content

Class org.jdom2.DataConversionException extends JDOMException implements Serializable

serialVersionUID: 200L

Class org.jdom2.DocType extends Content implements Serializable

serialVersionUID: 200L

Serialized Fields

elementName

java.lang.String elementName
The element being constrained


publicID

java.lang.String publicID
The public ID of the DOCTYPE


systemID

java.lang.String systemID
The system ID of the DOCTYPE


internalSubset

java.lang.String internalSubset
The internal subset of the DOCTYPE

Class org.jdom2.Document extends org.jdom2.CloneBase implements Serializable

serialVersionUID: 200L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Read an Element off the ObjectInputStream.

Throws:
java.io.IOException - if there is a reading problem.
java.lang.ClassNotFoundException - when a class cannot be found
See Also:
Document.writeObject(ObjectOutputStream)

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Serialize out the Element.

Serial Data:
Document Properties are not serialized!

The Stream protocol is:

  1. The BaseURI using default Serialization.
  2. The count of child Content
  3. The actual Child Content.
Throws:
java.io.IOException - if there is a writing problem.
Serialized Fields

baseURI

java.lang.String baseURI
See http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/core.html#baseURIs-Considerations

Class org.jdom2.Element extends Content implements Serializable

serialVersionUID: 200L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Read an Element off the ObjectInputStream.

Throws:
java.io.IOException - if there is a reading problem.
java.lang.ClassNotFoundException - when a class cannot be found
See Also:
Element.writeObject(ObjectOutputStream)

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Serialize out the Element.

Serial Data:
The Stream protocol is:
  1. The Element name and Namespace using default Serialization.
  2. The count of additional Namespace Declarations.
  3. The actual additional Namespace Declarations.
  4. The count of Attributes.
  5. The actual Attributes.
  6. The count of child Content
  7. The actual Child Content.
Throws:
java.io.IOException - if there is a writing problem.
Serialized Fields

name

java.lang.String name
The local name of the element


namespace

Namespace namespace
The namespace of the element

Class org.jdom2.EntityRef extends Content implements Serializable

serialVersionUID: 200L

Serialized Fields

name

java.lang.String name
The name of the EntityRef


publicID

java.lang.String publicID
The PublicID of the EntityRef


systemID

java.lang.String systemID
The SystemID of the EntityRef

Class org.jdom2.IllegalAddException extends java.lang.IllegalArgumentException implements Serializable

serialVersionUID: 200L

Class org.jdom2.IllegalDataException extends java.lang.IllegalArgumentException implements Serializable

serialVersionUID: 200L

Class org.jdom2.IllegalNameException extends java.lang.IllegalArgumentException implements Serializable

serialVersionUID: 200L

Class org.jdom2.IllegalTargetException extends java.lang.IllegalArgumentException implements Serializable

serialVersionUID: 200L

Class org.jdom2.JDOMException extends java.lang.Exception implements Serializable

serialVersionUID: 200L

Class org.jdom2.Namespace extends java.lang.Object implements Serializable

serialVersionUID: 200L

Serialization Methods

readResolve

private java.lang.Object readResolve()
                              throws java.io.InvalidObjectException
Because Namespace is serialized by proxy, the reading of direct Namespace instances is illegal and prohibited.

Throws:
java.io.InvalidObjectException - always

writeReplace

private java.lang.Object writeReplace()
Serializes Namespace by using a proxy serialization instance.

Serial Data:
The proxy deals with the protocol.

Class org.jdom2.ProcessingInstruction extends Content implements Serializable

serialVersionUID: 200L

Serialized Fields

target

java.lang.String target
The target of the PI


rawData

java.lang.String rawData
The data for the PI as a String

Class org.jdom2.Text extends Content implements Serializable

serialVersionUID: 200L

Serialized Fields

value

java.lang.String value
The actual character content


Package org.jdom2.filter

Class org.jdom2.filter.AbstractFilter extends java.lang.Object implements Serializable

serialVersionUID: 200L

Class org.jdom2.filter.AttributeFilter extends AbstractFilter<Attribute> implements Serializable

serialVersionUID: 200L

Serialized Fields

name

java.lang.String name
The element name


namespace

Namespace namespace
The element namespace

Class org.jdom2.filter.ContentFilter extends AbstractFilter<Content> implements Serializable

serialVersionUID: 200L

Serialized Fields

filterMask

int filterMask
The JDOM object mask

Class org.jdom2.filter.ElementFilter extends AbstractFilter<Element> implements Serializable

serialVersionUID: 200L

Serialized Fields

name

java.lang.String name
The element name


namespace

Namespace namespace
The element namespace


Package org.jdom2.input

Class org.jdom2.input.JDOMParseException extends JDOMException implements Serializable

serialVersionUID: 200L

Serialized Fields

partialDocument

Document partialDocument
The portion of the document that was successfully built before the parse error occurred.


Package org.jdom2.located

Class org.jdom2.located.LocatedCDATA extends CDATA implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedComment extends Comment implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedDocType extends DocType implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedElement extends Element implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedEntityRef extends EntityRef implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedProcessingInstruction extends ProcessingInstruction implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Class org.jdom2.located.LocatedText extends Text implements Serializable

serialVersionUID: 200L

Serialized Fields

line

int line

col

int col

Package org.jdom2.transform

Class org.jdom2.transform.XSLTransformException extends JDOMException implements Serializable

serialVersionUID: 200L


Package org.jdom2.xpath

Class org.jdom2.xpath.XPath extends java.lang.Object implements Serializable

serialVersionUID: 200L

Serialization Methods

writeReplace

protected final java.lang.Object writeReplace()
                                       throws java.io.ObjectStreamException
Deprecated. 
[Serialization support] Returns the alternative object to write to the stream when serializing this object. This method returns an instance of a dedicated nested class to serialize XPath expressions independently of the concrete implementation being used.

Note: Subclasses are not allowed to override this method to ensure valid serialization of all implementations.

Throws:
java.io.ObjectStreamException - never.

Package org.jdom2.xpath.jaxen

Class org.jdom2.xpath.jaxen.JDOMXPath extends XPath implements Serializable

serialVersionUID: 200L

Serialized Fields

navigator

org.jdom2.xpath.jaxen.JDOMNavigator navigator
Deprecated. 
The current context for XPath expression evaluation. The navigator is responsible for exposing JDOM content to Jaxen, including the wrapping of Namespace instances in NamespaceContainer

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.


JDOM
2.0.5

Copyright 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.