コード例 #1
0
ファイル: THeaderFault.java プロジェクト: vitlav/siu
 public Object copyTo(Object target, CopyBuilder copyBuilder) {
   final THeaderFault copy =
       ((target == null) ? ((THeaderFault) createCopy()) : ((THeaderFault) target));
   {
     QName sourceMessage;
     sourceMessage = this.getMessage();
     QName copyMessage = ((QName) copyBuilder.copy(sourceMessage));
     copy.setMessage(copyMessage);
   }
   {
     String sourcePart;
     sourcePart = this.getPart();
     String copyPart = ((String) copyBuilder.copy(sourcePart));
     copy.setPart(copyPart);
   }
   {
     UseChoice sourceUse;
     sourceUse = this.getUse();
     UseChoice copyUse = ((UseChoice) copyBuilder.copy(sourceUse));
     copy.setUse(copyUse);
   }
   {
     String sourceEncodingStyle;
     sourceEncodingStyle = this.getEncodingStyle();
     String copyEncodingStyle = ((String) copyBuilder.copy(sourceEncodingStyle));
     copy.setEncodingStyle(copyEncodingStyle);
   }
   {
     String sourceNamespace;
     sourceNamespace = this.getNamespace();
     String copyNamespace = ((String) copyBuilder.copy(sourceNamespace));
     copy.setNamespace(copyNamespace);
   }
   return copy;
 }
コード例 #2
0
ファイル: Prior.java プロジェクト: Biomathapha/Broadwick
 public Object copyTo(Object target, CopyBuilder copyBuilder) {
   if (null == target) {
     throw new IllegalArgumentException(
         "Target argument must not be null for abstract copyable classes.");
   }
   final Prior copy = ((Prior) target);
   {
     String sourceHint;
     sourceHint = this.getHint();
     String copyHint = ((String) copyBuilder.copy(sourceHint));
     copy.setHint(copyHint);
   }
   {
     Double sourceInitialVal;
     sourceInitialVal = this.getInitialVal();
     Double copyInitialVal = ((Double) copyBuilder.copy(sourceInitialVal));
     copy.setInitialVal(copyInitialVal);
   }
   {
     String sourceId;
     sourceId = this.getId();
     String copyId = ((String) copyBuilder.copy(sourceId));
     copy.setId(copyId);
   }
   return copy;
 }
コード例 #3
0
ファイル: BaseMqttMessage.java プロジェクト: 0x7678/mqtt-spy
 public Object copyTo(Object target, CopyBuilder copyBuilder) {
   final BaseMqttMessage copy =
       ((target == null) ? ((BaseMqttMessage) createCopy()) : ((BaseMqttMessage) target));
   {
     String sourceValue;
     sourceValue = this.getValue();
     String copyValue = ((String) copyBuilder.copy(sourceValue));
     copy.setValue(copyValue);
   }
   {
     String sourceTopic;
     sourceTopic = this.getTopic();
     String copyTopic = ((String) copyBuilder.copy(sourceTopic));
     copy.setTopic(copyTopic);
   }
   {
     Integer sourceQos;
     sourceQos = this.getQos();
     Integer copyQos = ((Integer) copyBuilder.copy(sourceQos));
     copy.setQos(copyQos);
   }
   {
     Boolean sourceRetained;
     sourceRetained = this.isRetained();
     Boolean copyRetained = ((Boolean) copyBuilder.copy(sourceRetained));
     copy.setRetained(copyRetained);
   }
   return copy;
 }
コード例 #4
0
ファイル: Keybase.java プロジェクト: vitlav/siu
 public Object copyTo(Object target, CopyBuilder copyBuilder) {
   final Keybase copy = ((target == null) ? ((Keybase) createCopy()) : ((Keybase) target));
   super.copyTo(copy, copyBuilder);
   {
     Selector sourceSelector;
     sourceSelector = this.getSelector();
     Selector copySelector = ((Selector) copyBuilder.copy(sourceSelector));
     copy.setSelector(copySelector);
   }
   {
     List<Field> sourceField;
     sourceField = this.getField();
     List<Field> copyField = ((List<Field>) copyBuilder.copy(sourceField));
     copy.field = null;
     List<Field> uniqueFieldl = copy.getField();
     uniqueFieldl.addAll(copyField);
   }
   {
     String sourceName;
     sourceName = this.getName();
     String copyName = ((String) copyBuilder.copy(sourceName));
     copy.setName(copyName);
   }
   return copy;
 }