예제 #1
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;
 }
예제 #2
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;
   }
 }