Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame^] | 1 | package net.onrc.onos.api.batchoperation; |
| 2 | |
| 3 | /** |
| 4 | * A remove-operation entry of a batch operation. |
| 5 | */ |
| 6 | public class RemoveOperation implements BatchOperationEntry { |
| 7 | protected String targetId; |
| 8 | |
| 9 | /** |
| 10 | * Creates a remove-operation with specified target. |
| 11 | * |
| 12 | * @param targetId The target object ID to be assigned to this |
| 13 | * remove-operation. |
| 14 | */ |
| 15 | public RemoveOperation(String targetId) { |
| 16 | this.targetId = targetId; |
| 17 | } |
| 18 | |
| 19 | @Override |
| 20 | public BatchOperator getOperator() { |
| 21 | return BatchOperator.REMOVE; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Gets the target ID to be removed. |
| 26 | * |
| 27 | * @return The target ID to be removed. |
| 28 | */ |
| 29 | public String getTargetId() { |
| 30 | return targetId; |
| 31 | } |
| 32 | } |