2 * Copyright © 2017 Orange, Inc. and others. All rights reserved.
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
9 package org.opendaylight.transportpce.stubpce.topology;
11 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
12 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
16 * class to build Logical
19 * @author <a href="mailto:martial.coulibaly@gfi.com">Martial Coulibaly</a> on
22 @JacksonXmlRootElement(localName = "logical-connection-point")
23 public class LogicalConnectionPoint {
24 @JacksonXmlProperty(localName = "tp-id")
26 @JacksonXmlProperty(localName = "node-id")
27 private String nodeId;
29 public LogicalConnectionPoint(@JacksonXmlProperty(localName = "tp-id") final String tpId,
30 @JacksonXmlProperty(localName = "node-id") final String nodeId) {
32 this.setNodeId(nodeId);
35 public String getTpId() {
39 public void setTpId(String tpId) {
43 public String getNodeId() {
47 public void setNodeId(String nodeId) {
52 public String toString() {
53 java.lang.String name = "[";
54 java.lang.StringBuilder builder = new java.lang.StringBuilder(name);
56 builder.append("tpId=");
61 builder.append("nodeId=");
62 builder.append(nodeId);
64 return builder.append(']').toString();