org.mmbase.util.xml
Class DocumentSerializable

java.lang.Object
  extended byorg.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

Constructor Summary
DocumentSerializable(Document d)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 Document getDocument()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentSerializable

public DocumentSerializable(Document d)
Method Detail

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