/** * Copy constructor. * * @param d */ public DiscoverInfo(DiscoverInfo d) { super(d); // Set node setNode(d.getNode()); // Copy features for (Feature f : d.features) { addFeature(f.clone()); } // Copy identities for (Identity i : d.identities) { addIdentity(i.clone()); } }
public Feature buildFeature(String id) { Feature x = (Feature) definitions.get(id); if (x != null) return (Feature) x.clone(); Debug.byebye("Feature " + id + " not found"); return null; }