import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
*
*/
@XmlAccessorType(XmlAccessType.NONE)
+@XmlRootElement
public class Node implements Serializable {
private static final long serialVersionUID = 1L;
* surround.
*/
public static final class NodeIDType {
- private static final ConcurrentHashMap<String, Class> compatibleType =
- new ConcurrentHashMap<String, Class>();
+ private static final ConcurrentHashMap<String, Class<? extends Object>> compatibleType =
+ new ConcurrentHashMap<String, Class<? extends Object>>();
/**
* Identifier for an OpenFlow node
*/
* @return true if registered, false otherwise
*/
public static boolean registerIDType(String type,
- Class compatibleID) {
+ Class<? extends Object> compatibleID) {
if (compatibleType.get(type) != null) {
return false;
} else {