Interface Copyable


public interface Copyable
Interface implemented by XJC-generated classes to provide a fast deep-copy without marshalling/unmarshalling.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deep-copy this object and its descendants.
    copyTo(Object target)
    Deep-copy this object and its descendants to the provided target object.
  • Method Details

    • copy

      Object copy()
      Deep-copy this object and its descendants.

      The returned copy and its descendants will have all parent pointers set.

    • copyTo

      Object copyTo(Object target)
      Deep-copy this object and its descendants to the provided target object.

      The returned copy and its descendants will have all parent pointers set.