Returns a deep copy of this node with no parent, that can be added to the current document or a different one.
Per Bloch, the Cloneable
interface is just a mess and should be avoided. However, I do not follow his suggestion of a copy constructor exclusively because it is useful to be able to copy a node without knowing its more specific type. Ken Arnold agrees with this. It's more effective for subclasses that can return an instance of the subclass.
|
|
|
|
|
|
|
|