Pavlin Radoslavov | 5363c2a | 2013-02-18 09:55:42 -0800 | [diff] [blame^] | 1 | package net.floodlightcontroller.util; |
| 2 | |
| 3 | /** |
| 4 | * The class representing a Caller ID for an ONOS component. |
| 5 | */ |
| 6 | public class CallerId { |
| 7 | private String value; |
| 8 | |
| 9 | /** |
| 10 | * Default constructor. |
| 11 | */ |
| 12 | public CallerId() {} |
| 13 | |
| 14 | /** |
| 15 | * Constructor from a string value. |
| 16 | * |
| 17 | * @param value the value to use. |
| 18 | */ |
| 19 | public CallerId(String value) { |
| 20 | this.value = value; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Get the value of the Caller ID. |
| 25 | * |
| 26 | * @return the value of the Caller ID. |
| 27 | */ |
| 28 | public String value() { return value; } |
| 29 | |
| 30 | /** |
| 31 | * Set the value of the Caller ID. |
| 32 | * |
| 33 | * @param value the value to set. |
| 34 | */ |
| 35 | public void setValue(String value) { |
| 36 | this.value = value; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Convert the Caller ID value to a string. |
| 41 | * |
| 42 | * @return the Caller ID value to a string. |
| 43 | */ |
| 44 | @Override |
| 45 | public String toString() { |
| 46 | return value; |
| 47 | } |
| 48 | } |