tom

Added private default constructors for serialization.

......@@ -9,6 +9,11 @@ public class AbstractElement extends AbstractModel implements Element {
protected final ElementId id;
// For serialization
public AbstractElement() {
id = null;
}
/**
* Creates a network element attributed to the specified provider.
*
......
......@@ -9,6 +9,11 @@ public class AbstractModel implements Provided {
private final ProviderId providerId;
// For serialization
public AbstractModel() {
providerId = null;
}
/**
* Creates a model entity attributed to the specified provider.
*
......
......@@ -17,6 +17,15 @@ public class DefaultDevice extends AbstractElement implements Device {
private final String hwVersion;
private final String swVersion;
// For serialization
private DefaultDevice() {
this.type = null;
this.manufacturer = null;
this.hwVersion = null;
this.swVersion = null;
this.serialNumber = null;
}
/**
* Creates a network element attributed to the specified provider.
*
......