Re: Efficient read-only cloning?

Joe Kesselman scripsit:

> EntityReference is supposed to (appear to) contain a read-only copy of the
> data stored in the Entity. I'm looking for a more elegant method of
> achieving that.
 
I don't think you can, really.  The children of an EntityReference
can't be the same objects as the children of an Entity, because of
the Node.getParent() method, which must return a different result
in each case.  If you can figure a way around this problem, your
other problems are fairly straightforward.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

Received on Wednesday, 23 September 1998 12:15:11 UTC