Пример #1
0
 public SecurityEvent copy() {
   SecurityEvent dst = new SecurityEvent();
   dst.event = event == null ? null : event.copy(dst);
   dst.participant = new ArrayList<SecurityEventParticipantComponent>();
   for (SecurityEventParticipantComponent i : participant) dst.participant.add(i.copy(dst));
   dst.source = source == null ? null : source.copy(dst);
   dst.object = new ArrayList<SecurityEventObjectComponent>();
   for (SecurityEventObjectComponent i : object) dst.object.add(i.copy(dst));
   return dst;
 }
Пример #2
0
 public SecurityEventObjectComponent copy(SecurityEvent e) {
   SecurityEventObjectComponent dst = e.new SecurityEventObjectComponent();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.reference = reference == null ? null : reference.copy();
   dst.type = type == null ? null : type.copy();
   dst.role = role == null ? null : role.copy();
   dst.lifecycle = lifecycle == null ? null : lifecycle.copy();
   dst.sensitivity = sensitivity == null ? null : sensitivity.copy();
   dst.name = name == null ? null : name.copy();
   dst.query = query == null ? null : query.copy();
   dst.detail = new ArrayList<SecurityEventObjectDetailComponent>();
   for (SecurityEventObjectDetailComponent i : detail) dst.detail.add(i.copy(e));
   return dst;
 }