public Activity newActivity(QualifiedName q, String label) { Activity res = newActivity(q); if (label != null) res.getLabel().add(newInternationalizedString(label)); return res; }
public Activity newActivity(QualifiedName q, String label) { Activity res = newActivity(q); if (label != null) res.getLabel().add(newInternationalizedString(label)); return res; }
public Activity newActivity(QualifiedName id, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes) { Activity res = newActivity(id); res.setStartTime(startTime); res.setEndTime(endTime); setAttributes(res, attributes); return res; }
public Activity newActivity(QualifiedName id, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes) { Activity res = newActivity(id); res.setStartTime(startTime); res.setEndTime(endTime); setAttributes(res, attributes); 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; }
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 void testActivity1() { Activity a = pFactory.newActivity(q("a1")); makeDocAndTest(a, "target/activity1"); }
public void testActivity2() { Activity a = pFactory.newActivity(q("a2"), "activity2"); makeDocAndTest(a, "target/activity2"); }
public void testActivity4() { Activity a = pFactory.newActivity(q("a2"), "activity2"); addLabels(a); makeDocAndTest(a, "target/activity4"); }
public void testActivity5() { Activity a = pFactory.newActivity(q("a2"), "activity2"); addTypes(a); makeDocAndTest(a, "target/activity5"); }
public void testActivity6() { Activity a = pFactory.newActivity(q("a6"), "activity6"); addLocations(a); makeDocAndTest(a, "target/activity6"); }
public void testActivity7() { Activity a = pFactory.newActivity(q("a7"), "activity7"); addTypes(a); addLocations(a); addLabels(a); makeDocAndTest(a, "target/activity7"); }
public void testActivity3() { Activity a = pFactory.newActivity(q("a1")); a.setStartTime(pFactory.newTimeNow()); a.setEndTime(pFactory.newTimeNow()); makeDocAndTest(a, "target/activity3"); }
public void testActivity9() { Activity a = pFactory.newActivity(q("a9"), "activity9"); addTypes(a); addLocations(a); addLabels(a); addFurtherAttributes(a); makeDocAndTest(a, "target/activity9"); }
public void testActivity8() { Activity a = pFactory.newActivity(q("a8"), "activity8"); a.setStartTime(pFactory.newTimeNow()); a.setEndTime(pFactory.newTimeNow()); addTypes(a); addTypes(a); addLocations(a); addLocations(a); addLabels(a); addLabels(a); makeDocAndTest(a, "target/activity8"); }
public void testActivity0() { Activity a = pFactory.newActivity(q("a0")); addOthers(a, pFactory.newQualifiedName(EX_NS, "tag2", EX_PREFIX)); addOthers(a, pFactory.newQualifiedName(EX_NS, "tag3", EX2_PREFIX)); addOthers(a, pFactory.newQualifiedName(EX2_NS, "tag4", "ex4")); addOthers(a, pFactory.newQualifiedName(EX2_NS, "tag5", EX_PREFIX)); addLabels(a); addTypes(a); addLocations(a); makeDocAndTest(a,"target/attr_activity0"); }
public void testScruffyUsage1() { Used use1 = pFactory.newUsed(q("use1"), q("a1"), null, q("e1")); use1.setTime(pFactory.newTimeNow()); Used use2 = pFactory.newUsed(q("use1"), q("a1"), null, q("e1")); use2.setTime(pFactory.newISOTime("2012-12-03T21:08:16.686Z")); Entity e1 = pFactory.newEntity(q("e1")); Activity a1 = pFactory.newActivity(q("a1")); Statement[] opt = new Statement[] { e1, a1 }; Statement[] statements = new Statement[] { use1, use2 }; makeDocAndTest(statements, opt, "target/scruffy-usage1"); }
public void testScruffyEnd1() { WasEndedBy end1 = pFactory.newWasEndedBy(q("end1"), q("a1"), q("e1")); end1.setTime(pFactory.newTimeNow()); WasEndedBy end2 = pFactory.newWasEndedBy(q("end1"), q("a1"), q("e1")); end2.setTime(pFactory.newISOTime("2012-12-03T21:08:16.686Z")); Entity e1 = pFactory.newEntity(q("e1")); Activity a1 = pFactory.newActivity(q("a1")); Statement[] opt = new Statement[] { e1, a1 }; Statement[] statements = new Statement[] { end1, end2 }; makeDocAndTest(statements, opt, "target/scruffy-end1"); }
public void testScruffyInvalidation1() { WasInvalidatedBy inv1 = pFactory.newWasInvalidatedBy(q("inv1"), q("e1"), q("a1")); inv1.setTime(pFactory.newTimeNow()); WasInvalidatedBy inv2 = pFactory.newWasInvalidatedBy(q("inv1"), q("e1"), q("a1")); inv2.setTime(pFactory.newISOTime("2012-12-03T21:08:16.686Z")); Entity e1 = pFactory.newEntity(q("e1")); Activity a1 = pFactory.newActivity(q("a1")); Statement[] opt = new Statement[] { e1, a1 }; Statement[] statements = new Statement[] { inv1, inv2 }; makeDocAndTest(statements, opt, "target/scruffy-invalidation1"); }
public void testScruffyStart1() { WasStartedBy start1 = pFactory.newWasStartedBy(q("start1"), q("a1"), q("e1")); start1.setTime(pFactory.newTimeNow()); WasStartedBy start2 = pFactory.newWasStartedBy(q("start1"), q("a1"), q("e1")); start2.setTime(pFactory.newISOTime("2012-12-03T21:08:16.686Z")); Entity e1 = pFactory.newEntity(q("e1")); Activity a1 = pFactory.newActivity(q("a1")); Statement[] opt = new Statement[] { e1, a1 }; Statement[] statements = new Statement[] { start1, start2 }; makeDocAndTest(statements, opt, "target/scruffy-start1"); }