/** * Copyright (c) <2013> <Radware Ltd.> and others. All rights reserved. * * This program and the accompanying materials are made available under the terms of the Eclipse Public License * v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html * @author Gera Goft * @version 0.1 */ package org.opendaylight.defense4all.odl.pojos; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class ReceivedNode { // @JsonProperty("@id") public Object id; // @JsonProperty("@type") public String type; // "OF" (openflow), "PE" (pcep), "PK" (onepk), "PR" (production) public ReceivedNode() {this.id = null; this.type = null;} public ReceivedNode(Object id, String nodeType) {this.id = id; this.type = nodeType;} public String getType() {return this.type;} public void setType(String type) {this.type = type;} public Object getId() {return this.id;} public void setId(Object id) {this.id = id;} @Override public String toString() { return "Node [" + id.toString() + ":" + type + "]"; } }