@Override public GroupRemoved compose(TransactionId tXid) { GroupRemovedBuilder removedGroup = new GroupRemovedBuilder((Group) input); removedGroup.setTransactionId(tXid); removedGroup.setGroupRef(input.getGroupRef()); return removedGroup.build(); } };
@Override public GroupAdded compose(TransactionId tXid) { GroupAddedBuilder groupMod = new GroupAddedBuilder((Group) input); groupMod.setTransactionId(tXid); groupMod.setGroupRef(input.getGroupRef()); return groupMod.build(); } };
@Override public GroupUpdated compose(TransactionId tXid) { GroupUpdatedBuilder groupMod = new GroupUpdatedBuilder(input.getUpdatedGroup()); groupMod.setTransactionId(tXid); groupMod.setGroupRef(input.getGroupRef()); return groupMod.build(); } };
@Override public RpcResult<AddGroupOutput> apply(final RpcResult<UpdateGroupOutput> input) { UpdateGroupOutput updateGroupOutput = input.getResult(); AddGroupOutputBuilder addGroupOutput = new AddGroupOutputBuilder(); addGroupOutput.setTransactionId(updateGroupOutput.getTransactionId()); AddGroupOutput result = addGroupOutput.build(); RpcResult<AddGroupOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Add Group RPC result to MD-SAL"); return rpcResult; } };
@Override public RpcResult<RemoveGroupOutput> apply(RpcResult<UpdateGroupOutput> input) { UpdateGroupOutput updateGroupOutput = input.getResult(); RemoveGroupOutputBuilder removeGroupOutput = new RemoveGroupOutputBuilder(); removeGroupOutput.setTransactionId(updateGroupOutput.getTransactionId()); RemoveGroupOutput result = removeGroupOutput.build(); RpcResult<RemoveGroupOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Remove Group RPC result to MD-SAL"); return rpcResult; }
public org.opendaylight.yangtools.yang.binding.YangModuleInfo getModuleInfo() { return $YangModuleInfoImpl.getInstance(); } }
public UpdateGroupInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.GroupUpdate arg) { this._originalGroup = arg.getOriginalGroup(); this._updatedGroup = arg.getUpdatedGroup(); this._node = arg.getNode(); } public UpdateGroupInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg) {
public AddGroupOutput build() { return new AddGroupOutputImpl(this); }
public UpdateGroupInput build() { return new UpdateGroupInputImpl(this); }
public GroupAdded build() { return new GroupAddedImpl(this); }
public GroupRemoved build() { return new GroupRemovedImpl(this); }
public AddGroupInput build() { return new AddGroupInputImpl(this); }
public RemoveGroupOutput build() { return new RemoveGroupOutputImpl(this); }
public RemoveGroupInput build() { return new RemoveGroupInputImpl(this); }
public UpdateGroupOutput build() { return new UpdateGroupOutputImpl(this); }
public GroupUpdated build() { return new GroupUpdatedImpl(this); }
public AddGroupOutputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupOutput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupOutput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public RemoveGroupInputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.RemoveGroupInput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.RemoveGroupInput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public AddGroupInputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupInput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupInput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public RemoveGroupOutputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.RemoveGroupOutput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.RemoveGroupOutput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }