/** * 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; }
@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; }
@Override public IpmModuleHmT createCopy() { final IpmModuleHmT _newObject; try { _newObject = ((IpmModuleHmT) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.systemStateEntry = ((this.systemStateEntry == null) ? null : this.systemStateEntry.createCopy()); 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())); } } _newObject.moduleCallback = this.moduleCallback; return _newObject; }
/** * 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; } }