Adding copyright notice
[controller.git] / opendaylight / md-sal / sal-zeromq-connector / src / main / java / org / opendaylight / controller / sal / connector / remoterpc / router / zeromq / RouteIdentifierImpl.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.connector.remoterpc.router.zeromq;
9
10 import org.opendaylight.controller.sal.connector.api.RpcRouter;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
13
14 import java.io.Serializable;
15
16 /**
17  * User: abhishk2
18  */
19 public class RouteIdentifierImpl implements RpcRouter.RouteIdentifier<QName, QName, InstanceIdentifier>,Serializable {
20
21   private QName context;
22   private QName type;
23   private InstanceIdentifier route;
24
25   @Override
26   public QName getContext() {
27     return this.context;
28   }
29
30   @Override
31   public QName getType() {
32     return this.type;
33   }
34
35   @Override
36   public InstanceIdentifier getRoute() {
37     return this.route;
38   }
39
40   public void setContext(QName context) {
41     this.context = context;
42   }
43
44   public void setType(QName type) {
45     this.type = type;
46   }
47
48   public void setRoute(InstanceIdentifier route) {
49     this.route = route;
50   }
51
52   @Override
53   public String toString() {
54     return "RouteIdentifierImpl{" +
55         "context=" + context +
56         ", type=" + type +
57         ", route=" + route +
58         '}';
59   }
60 }