blob: 898da31acc1b0c9149b9669ed57b3b511d5a5e70 [file] [log] [blame]
Pavlin Radoslavov5363c2a2013-02-18 09:55:42 -08001package net.floodlightcontroller.util;
2
3/**
4 * The class representing a Caller ID for an ONOS component.
5 */
6public 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}