org.mmbase.util.xml
Class DocumentSerializable
java.lang.Object
org.mmbase.util.xml.DocumentSerializable
- All Implemented Interfaces:
- Cloneable, PublicCloneable, Serializable
- public class DocumentSerializable
- extends Object
- implements Serializable, PublicCloneable
Wraps an Document to be certainly serializable (and cloneable). If it is not by itself (IIRC
the Xerces implementation is serializable), then this class serializes to a stringification.
This can be used if a Serializable class needs an Document member. Choose for a
DocumentSerializable member in stead, and use getDocument().
- Since:
- MMBase-1.8
- Version:
- $Id: DocumentSerializable.java,v 1.4 2006/01/06 17:36:43 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
DocumentSerializable
public DocumentSerializable(Document d)
getDocument
public final Document getDocument()
toString
public String toString()
hashCode
public int hashCode()
equals
public boolean equals(Object o)
clone
public Object clone()
- Specified by:
clone in interface PublicCloneable
MMBase build 1.8.1.20060716