private AutoattachImpl(AutoattachBuilder base) { if (base.getKey() == null) { this._key = new AutoattachKey( base.getAutoattachId() ); this._autoattachId = base.getAutoattachId(); } else { this._key = base.getKey(); this._autoattachId = _key.getAutoattachId(); } this._autoattachExternalIds = base.getAutoattachExternalIds(); this._autoattachUuid = base.getAutoattachUuid(); this._bridgeId = base.getBridgeId(); this._mappings = base.getMappings(); this._systemDescription = base.getSystemDescription(); this._systemName = base.getSystemName(); switch (base.augmentation.size()) { case 0: this.augmentation = Collections.emptyMap(); break; case 1: final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
(currentAutoattach != null) ? new AutoattachBuilder(currentAutoattach) : new AutoattachBuilder() .setAutoattachUuid(new Uuid(entry.getKey().toString())) .setAutoattachId(uri) .setKey(new AutoattachKey(uri)); autoAttachBuilder.setSystemName(autoAttach.getSystemNameColumn().getData()); autoAttachBuilder.setSystemDescription(autoAttach.getSystemDescriptionColumn().getData()); final Autoattach autoAttachEntry = autoAttachBuilder.build(); LOG.trace("Update Ovsdb Node {} with AutoAttach table entries {}", ovsdbNode.get().getNodeId(), autoAttachEntry);