Class Copying

java.lang.Object
aas_core.aas3_0.copying.Copying

public class Copying extends Object
Allow for making shallow and deep copies of AAS model instances.
  • Constructor Details

    • Copying

      public Copying()
  • Method Details

    • shallow

      public static <T extends IClass> T shallow(T that)
      Make a shallow copy of that.

      All the properties are copied by reference. This includes also the lists. Hence, a list property is copied by reference, and not, as sometimes might be expected, as a new list of underlying references.

      Parameters:
      that - to be copied in a shallow manner
    • deep

      public static <T extends IClass> T deep(T that)
      Make a recursively a deep copy of that.
      Parameters:
      that - to be deeply copied in a recursive manner