예제 #1
0
 @Override
 public PartitionScheduleT createCopy() {
   final PartitionScheduleT _newObject;
   try {
     _newObject = ((PartitionScheduleT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   _newObject.value = this.value;
   _newObject.description = this.description;
   _newObject.name = this.name;
   _newObject.timeBudgetUs = this.timeBudgetUs;
   _newObject.timePeriodUs = this.timePeriodUs;
   return _newObject;
 }
예제 #2
0
 @Override
 public PartitionScheduleT createCopy(
     final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
   final PartitionScheduleT _newObject;
   try {
     _newObject = ((PartitionScheduleT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   final PropertyTree valuePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("value"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (valuePropertyTree != null)
       : ((valuePropertyTree == null) || (!valuePropertyTree.isLeaf())))) {
     _newObject.value = this.value;
   }
   final PropertyTree descriptionPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("description"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (descriptionPropertyTree != null)
       : ((descriptionPropertyTree == null) || (!descriptionPropertyTree.isLeaf())))) {
     _newObject.description = this.description;
   }
   final PropertyTree namePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("name"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (namePropertyTree != null)
       : ((namePropertyTree == null) || (!namePropertyTree.isLeaf())))) {
     _newObject.name = this.name;
   }
   final PropertyTree timeBudgetUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timeBudgetUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timeBudgetUsPropertyTree != null)
       : ((timeBudgetUsPropertyTree == null) || (!timeBudgetUsPropertyTree.isLeaf())))) {
     _newObject.timeBudgetUs = this.timeBudgetUs;
   }
   final PropertyTree timePeriodUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timePeriodUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timePeriodUsPropertyTree != null)
       : ((timePeriodUsPropertyTree == null) || (!timePeriodUsPropertyTree.isLeaf())))) {
     _newObject.timePeriodUs = this.timePeriodUs;
   }
   return _newObject;
 }