Beispiel #1
0
 public Builder(
     final _B _parentBuilder,
     final DestDataPortsT _other,
     final boolean _copy,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   this._parentBuilder = _parentBuilder;
   if (_other != null) {
     if (_copy) {
       _storedValue = null;
       final PropertyTree destDataPortPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("destDataPort"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (destDataPortPropertyTree != null)
           : ((destDataPortPropertyTree == null) || (!destDataPortPropertyTree.isLeaf())))) {
         if (_other.destDataPort == null) {
           this.destDataPort = null;
         } else {
           this.destDataPort =
               new ArrayList<DestDataPortT.Builder<DestDataPortsT.Builder<_B>>>();
           for (DestDataPortT _item : _other.destDataPort) {
             this.destDataPort.add(
                 ((_item == null)
                     ? null
                     : _item.newCopyBuilder(this, destDataPortPropertyTree, _propertyTreeUse)));
           }
         }
       }
     } else {
       _storedValue = _other;
     }
   } else {
     _storedValue = null;
   }
 }
Beispiel #2
0
 @Override
 public DestDataPortsT createCopy(
     final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
   final DestDataPortsT _newObject;
   try {
     _newObject = ((DestDataPortsT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   final PropertyTree destDataPortPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("destDataPort"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (destDataPortPropertyTree != null)
       : ((destDataPortPropertyTree == null) || (!destDataPortPropertyTree.isLeaf())))) {
     if (this.destDataPort == null) {
       _newObject.destDataPort = null;
     } else {
       _newObject.destDataPort = new ArrayList<DestDataPortT>();
       for (DestDataPortT _item : this.destDataPort) {
         _newObject.destDataPort.add(
             ((_item == null)
                 ? null
                 : _item.createCopy(destDataPortPropertyTree, _propertyTreeUse)));
       }
     }
   }
   return _newObject;
 }
Beispiel #3
0
 public Builder(
     final _B _parentBuilder,
     final IpmModuleHmT _other,
     final boolean _copy,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   this._parentBuilder = _parentBuilder;
   if (_other != null) {
     if (_copy) {
       _storedValue = null;
       final PropertyTree systemStateEntryPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("systemStateEntry"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (systemStateEntryPropertyTree != null)
           : ((systemStateEntryPropertyTree == null)
               || (!systemStateEntryPropertyTree.isLeaf())))) {
         this.systemStateEntry =
             ((_other.systemStateEntry == null)
                 ? null
                 : _other.systemStateEntry.newCopyBuilder(
                     this, systemStateEntryPropertyTree, _propertyTreeUse));
       }
       final PropertyTree errorCodeAvailablePropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("errorCodeAvailable"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (errorCodeAvailablePropertyTree != null)
           : ((errorCodeAvailablePropertyTree == null)
               || (!errorCodeAvailablePropertyTree.isLeaf())))) {
         if (_other.errorCodeAvailable == null) {
           this.errorCodeAvailable = null;
         } else {
           this.errorCodeAvailable =
               new ArrayList<ErrorCodeAvailableT.Builder<IpmModuleHmT.Builder<_B>>>();
           for (ErrorCodeAvailableT _item : _other.errorCodeAvailable) {
             this.errorCodeAvailable.add(
                 ((_item == null)
                     ? null
                     : _item.newCopyBuilder(
                         this, errorCodeAvailablePropertyTree, _propertyTreeUse)));
           }
         }
       }
       final PropertyTree moduleCallbackPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("moduleCallback"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (moduleCallbackPropertyTree != null)
           : ((moduleCallbackPropertyTree == null) || (!moduleCallbackPropertyTree.isLeaf())))) {
         this.moduleCallback = _other.moduleCallback;
       }
     } else {
       _storedValue = _other;
     }
   } else {
     _storedValue = null;
   }
 }
Beispiel #4
0
 @Override
 public IpmModuleHmT createCopy(
     final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
   final IpmModuleHmT _newObject;
   try {
     _newObject = ((IpmModuleHmT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   final PropertyTree systemStateEntryPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("systemStateEntry"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (systemStateEntryPropertyTree != null)
       : ((systemStateEntryPropertyTree == null) || (!systemStateEntryPropertyTree.isLeaf())))) {
     _newObject.systemStateEntry =
         ((this.systemStateEntry == null)
             ? null
             : this.systemStateEntry.createCopy(systemStateEntryPropertyTree, _propertyTreeUse));
   }
   final PropertyTree errorCodeAvailablePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("errorCodeAvailable"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (errorCodeAvailablePropertyTree != null)
       : ((errorCodeAvailablePropertyTree == null)
           || (!errorCodeAvailablePropertyTree.isLeaf())))) {
     if (this.errorCodeAvailable == null) {
       _newObject.errorCodeAvailable = null;
     } else {
       _newObject.errorCodeAvailable = new ArrayList<ErrorCodeAvailableT>();
       for (ErrorCodeAvailableT _item : this.errorCodeAvailable) {
         _newObject.errorCodeAvailable.add(
             ((_item == null)
                 ? null
                 : _item.createCopy(errorCodeAvailablePropertyTree, _propertyTreeUse)));
       }
     }
   }
   final PropertyTree moduleCallbackPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("moduleCallback"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (moduleCallbackPropertyTree != null)
       : ((moduleCallbackPropertyTree == null) || (!moduleCallbackPropertyTree.isLeaf())))) {
     _newObject.moduleCallback = this.moduleCallback;
   }
   return _newObject;
 }
Beispiel #5
0
 /**
  * Instantiates a DestDataPortsT copying the state of another DestDataPortsT
  *
  * @param _propertyTreeUse Meaning of the {@link PropertyPath}: Exclude or include members
  *     contained in property path.
  * @param _propertyTree A restricting {@link PropertyPath} that defines which nodes of the source
  *     object tree should actually be copied.
  * @param _other The original DestDataPortsT from which to copy state.
  */
 public DestDataPortsT(
     final DestDataPortsT _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree destDataPortPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("destDataPort"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (destDataPortPropertyTree != null)
       : ((destDataPortPropertyTree == null) || (!destDataPortPropertyTree.isLeaf())))) {
     if (_other.destDataPort == null) {
       this.destDataPort = null;
     } else {
       this.destDataPort = new ArrayList<DestDataPortT>();
       for (DestDataPortT _item : _other.destDataPort) {
         this.destDataPort.add(
             ((_item == null)
                 ? null
                 : _item.createCopy(destDataPortPropertyTree, _propertyTreeUse)));
       }
     }
   }
 }
Beispiel #6
0
 /**
  * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method
  * and should not be called directly by client code.
  *
  * @param _other A builder instance to which the state of this object will be copied.
  */
 public <_B> void copyTo(
     final DestDataPortsT.Builder<_B> _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree destDataPortPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("destDataPort"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (destDataPortPropertyTree != null)
       : ((destDataPortPropertyTree == null) || (!destDataPortPropertyTree.isLeaf())))) {
     if (this.destDataPort == null) {
       _other.destDataPort = null;
     } else {
       _other.destDataPort = new ArrayList<DestDataPortT.Builder<DestDataPortsT.Builder<_B>>>();
       for (DestDataPortT _item : this.destDataPort) {
         _other.destDataPort.add(
             ((_item == null)
                 ? null
                 : _item.newCopyBuilder(_other, destDataPortPropertyTree, _propertyTreeUse)));
       }
     }
   }
 }
Beispiel #7
0
 /**
  * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method
  * and should not be called directly by client code.
  *
  * @param _other A builder instance to which the state of this object will be copied.
  */
 public <_B> void copyTo(
     final IpmModuleHmT.Builder<_B> _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree systemStateEntryPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("systemStateEntry"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (systemStateEntryPropertyTree != null)
       : ((systemStateEntryPropertyTree == null) || (!systemStateEntryPropertyTree.isLeaf())))) {
     _other.systemStateEntry =
         ((this.systemStateEntry == null)
             ? null
             : this.systemStateEntry.newCopyBuilder(
                 _other, systemStateEntryPropertyTree, _propertyTreeUse));
   }
   final PropertyTree errorCodeAvailablePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("errorCodeAvailable"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (errorCodeAvailablePropertyTree != null)
       : ((errorCodeAvailablePropertyTree == null)
           || (!errorCodeAvailablePropertyTree.isLeaf())))) {
     if (this.errorCodeAvailable == null) {
       _other.errorCodeAvailable = null;
     } else {
       _other.errorCodeAvailable =
           new ArrayList<ErrorCodeAvailableT.Builder<IpmModuleHmT.Builder<_B>>>();
       for (ErrorCodeAvailableT _item : this.errorCodeAvailable) {
         _other.errorCodeAvailable.add(
             ((_item == null)
                 ? null
                 : _item.newCopyBuilder(
                     _other, errorCodeAvailablePropertyTree, _propertyTreeUse)));
       }
     }
   }
   final PropertyTree moduleCallbackPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("moduleCallback"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (moduleCallbackPropertyTree != null)
       : ((moduleCallbackPropertyTree == null) || (!moduleCallbackPropertyTree.isLeaf())))) {
     _other.moduleCallback = this.moduleCallback;
   }
 }
Beispiel #8
0
 /**
  * Instantiates a IpmModuleHmT copying the state of another IpmModuleHmT
  *
  * @param _propertyTreeUse Meaning of the {@link PropertyPath}: Exclude or include members
  *     contained in property path.
  * @param _propertyTree A restricting {@link PropertyPath} that defines which nodes of the source
  *     object tree should actually be copied.
  * @param _other The original IpmModuleHmT from which to copy state.
  */
 public IpmModuleHmT(
     final IpmModuleHmT _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree systemStateEntryPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("systemStateEntry"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (systemStateEntryPropertyTree != null)
       : ((systemStateEntryPropertyTree == null) || (!systemStateEntryPropertyTree.isLeaf())))) {
     this.systemStateEntry =
         ((_other.systemStateEntry == null)
             ? null
             : _other.systemStateEntry.createCopy(systemStateEntryPropertyTree, _propertyTreeUse));
   }
   final PropertyTree errorCodeAvailablePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("errorCodeAvailable"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (errorCodeAvailablePropertyTree != null)
       : ((errorCodeAvailablePropertyTree == null)
           || (!errorCodeAvailablePropertyTree.isLeaf())))) {
     if (_other.errorCodeAvailable == null) {
       this.errorCodeAvailable = null;
     } else {
       this.errorCodeAvailable = new ArrayList<ErrorCodeAvailableT>();
       for (ErrorCodeAvailableT _item : _other.errorCodeAvailable) {
         this.errorCodeAvailable.add(
             ((_item == null)
                 ? null
                 : _item.createCopy(errorCodeAvailablePropertyTree, _propertyTreeUse)));
       }
     }
   }
   final PropertyTree moduleCallbackPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("moduleCallback"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (moduleCallbackPropertyTree != null)
       : ((moduleCallbackPropertyTree == null) || (!moduleCallbackPropertyTree.isLeaf())))) {
     this.moduleCallback = _other.moduleCallback;
   }
 }
 public Builder(
     final _B _parentBuilder,
     final PartitionScheduleT _other,
     final boolean _copy,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   this._parentBuilder = _parentBuilder;
   if (_other != null) {
     if (_copy) {
       _storedValue = null;
       final PropertyTree valuePropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("value"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (valuePropertyTree != null)
           : ((valuePropertyTree == null) || (!valuePropertyTree.isLeaf())))) {
         this.value = _other.value;
       }
       final PropertyTree descriptionPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("description"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (descriptionPropertyTree != null)
           : ((descriptionPropertyTree == null) || (!descriptionPropertyTree.isLeaf())))) {
         this.description = _other.description;
       }
       final PropertyTree namePropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("name"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (namePropertyTree != null)
           : ((namePropertyTree == null) || (!namePropertyTree.isLeaf())))) {
         this.name = _other.name;
       }
       final PropertyTree timeBudgetUsPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("timeBudgetUs"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (timeBudgetUsPropertyTree != null)
           : ((timeBudgetUsPropertyTree == null) || (!timeBudgetUsPropertyTree.isLeaf())))) {
         this.timeBudgetUs = _other.timeBudgetUs;
       }
       final PropertyTree timePeriodUsPropertyTree =
           ((_propertyTree == null) ? null : _propertyTree.get("timePeriodUs"));
       if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
           ? (timePeriodUsPropertyTree != null)
           : ((timePeriodUsPropertyTree == null) || (!timePeriodUsPropertyTree.isLeaf())))) {
         this.timePeriodUs = _other.timePeriodUs;
       }
     } else {
       _storedValue = _other;
     }
   } else {
     _storedValue = null;
   }
 }
 /**
  * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method
  * and should not be called directly by client code.
  *
  * @param _other A builder instance to which the state of this object will be copied.
  */
 public <_B> void copyTo(
     final PartitionScheduleT.Builder<_B> _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree valuePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("value"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (valuePropertyTree != null)
       : ((valuePropertyTree == null) || (!valuePropertyTree.isLeaf())))) {
     _other.value = this.value;
   }
   final PropertyTree descriptionPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("description"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (descriptionPropertyTree != null)
       : ((descriptionPropertyTree == null) || (!descriptionPropertyTree.isLeaf())))) {
     _other.description = this.description;
   }
   final PropertyTree namePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("name"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (namePropertyTree != null)
       : ((namePropertyTree == null) || (!namePropertyTree.isLeaf())))) {
     _other.name = this.name;
   }
   final PropertyTree timeBudgetUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timeBudgetUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timeBudgetUsPropertyTree != null)
       : ((timeBudgetUsPropertyTree == null) || (!timeBudgetUsPropertyTree.isLeaf())))) {
     _other.timeBudgetUs = this.timeBudgetUs;
   }
   final PropertyTree timePeriodUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timePeriodUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timePeriodUsPropertyTree != null)
       : ((timePeriodUsPropertyTree == null) || (!timePeriodUsPropertyTree.isLeaf())))) {
     _other.timePeriodUs = this.timePeriodUs;
   }
 }
 @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;
 }