Stubpce Update
[transportpce.git] / tests / stubpce / src / main / java / org / opendaylight / transportpce / stubpce / topology / LogicalConnectionPoint.java
1 /*
2  * Copyright © 2017 Orange, 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
9 package org.opendaylight.transportpce.stubpce.topology;
10
11 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
12 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
13
14
15 /**
16  * class to build Logical
17  * Connection Point.
18  *
19  * @author <a href="mailto:martial.coulibaly@gfi.com">Martial Coulibaly</a> on
20  *         behalf of Orange
21  */
22 @JacksonXmlRootElement(localName = "logical-connection-point")
23 public class LogicalConnectionPoint {
24     @JacksonXmlProperty(localName = "tp-id")
25     private String tpId;
26     @JacksonXmlProperty(localName = "node-id")
27     private String nodeId;
28
29     public LogicalConnectionPoint(@JacksonXmlProperty(localName = "tp-id") final String tpId,
30             @JacksonXmlProperty(localName = "node-id") final String nodeId) {
31         this.setTpId(tpId);
32         this.setNodeId(nodeId);
33     }
34
35     public String getTpId() {
36         return tpId;
37     }
38
39     public void setTpId(String tpId) {
40         this.tpId = tpId;
41     }
42
43     public String getNodeId() {
44         return nodeId;
45     }
46
47     public void setNodeId(String nodeId) {
48         this.nodeId = nodeId;
49     }
50
51     @Override
52     public String toString() {
53         java.lang.String name = "[";
54         java.lang.StringBuilder builder = new java.lang.StringBuilder(name);
55         if (tpId != null) {
56             builder.append("tpId=");
57             builder.append(tpId);
58             builder.append(", ");
59         }
60         if (nodeId != null) {
61             builder.append("nodeId=");
62             builder.append(nodeId);
63         }
64         return builder.append(']').toString();
65
66     }
67
68 }