Esempio n. 1
0
 public Builder(final _B _parentBuilder, final IpmModuleHmT _other, final boolean _copy) {
   this._parentBuilder = _parentBuilder;
   if (_other != null) {
     if (_copy) {
       _storedValue = null;
       this.systemStateEntry =
           ((_other.systemStateEntry == null)
               ? null
               : _other.systemStateEntry.newCopyBuilder(this));
       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)));
         }
       }
       this.moduleCallback = _other.moduleCallback;
     } else {
       _storedValue = _other;
     }
   } else {
     _storedValue = null;
   }
 }
Esempio n. 2
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;
   }
 }
Esempio n. 3
0
 /**
  * Instantiates a IpmModuleHmT copying the state of another IpmModuleHmT
  *
  * @param _other The original IpmModuleHmT from which to copy state.
  */
 public IpmModuleHmT(final IpmModuleHmT _other) {
   this.systemStateEntry =
       ((_other.systemStateEntry == null) ? null : _other.systemStateEntry.createCopy());
   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()));
     }
   }
   this.moduleCallback = _other.moduleCallback;
 }
Esempio n. 4
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) {
   _other.systemStateEntry =
       ((this.systemStateEntry == null) ? null : this.systemStateEntry.newCopyBuilder(_other));
   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)));
     }
   }
   _other.moduleCallback = this.moduleCallback;
 }
Esempio n. 5
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;
 }
Esempio n. 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 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;
   }
 }
Esempio n. 7
0
 @Override
 public IpmModuleHmT clone() {
   final IpmModuleHmT _newObject;
   try {
     _newObject = ((IpmModuleHmT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   _newObject.systemStateEntry =
       ((this.systemStateEntry == null) ? null : this.systemStateEntry.clone());
   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.clone()));
     }
   }
   return _newObject;
 }
Esempio n. 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;
   }
 }