public Activity addAttributes(Activity from, Activity to) { to.getLabel().addAll(from.getLabel()); to.getType().addAll(from.getType()); to.getLocation().addAll(from.getLocation()); to.getOther().addAll(from.getOther()); return to; }
public Activity addAttributes(Activity from, Activity to) { to.getLabel().addAll(from.getLabel()); to.getType().addAll(from.getType()); to.getLocation().addAll(from.getLocation()); to.getOther().addAll(from.getOther()); return to; }
public Activity newActivity(Activity a) { Activity res = newActivity(a.getId()); res.getType().addAll(a.getType()); res.getLabel().addAll(a.getLabel()); res.getLocation().addAll(a.getLocation()); res.setStartTime(a.getStartTime()); res.setEndTime(a.getEndTime()); return res; }
public Activity newActivity(Activity a) { Activity res = newActivity(a.getId()); res.getType().addAll(a.getType()); res.getLabel().addAll(a.getLabel()); res.getLocation().addAll(a.getLocation()); res.setStartTime(a.getStartTime()); res.setEndTime(a.getEndTime()); return res; }
@Override public void doAction(Activity a) { register(a.getId()); registerLocation(a.getLocation()); registerType(a.getType()); registerOther(a.getOther()); }
@Override public void doAction(Activity a) { register(a.getId()); registerLocation(a.getLocation()); registerType(a.getType()); registerOther(a.getOther()); }
public void testNamespaces4 () { Activity a1=pFactory.newActivity(q("a1")); a1.getLocation().add(pFactory.newLocation(pFactory.newQualifiedName(EXAMPLE_NS, "Amazing",null), name.PROV_QUALIFIED_NAME)); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(a1); Namespace nss=Namespace.gatherNamespaces(doc); //System.out.println("Default ns is: " + nss.getDefaultNamespace()); //System.out.println("All ns: " + nss.getPrefixes()); assertTrue(nss.getDefaultNamespace().equals(EXAMPLE_NS)); assertTrue(nss.getPrefixes().size()==3); assertTrue(nss.check("prov", NamespacePrefixMapper.PROV_NS)); assertTrue(nss.check("ex", EXAMPLE_NS)); assertTrue(nss.check("xsd", XSD_NS)); }