/** A factory method to create an instance of a generation {@link WasGeneratedBy} * @param id an optional identifier for a usage * @param entity an identifier for the created <a href="http://www.w3.org/TR/prov-dm/#generation.entity">entity</a> * @param activity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#generation.activity">activity</a> that creates the entity * @return an instance of {@link WasGeneratedBy} */ public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity) { WasGeneratedBy res=newWasGeneratedBy(id,entity,null,activity); return res; }
/** A factory method to create an instance of a generation {@link WasGeneratedBy} * @param id an optional identifier for a usage * @param entity an identifier for the created <a href="http://www.w3.org/TR/prov-dm/#generation.entity">entity</a> * @param activity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#generation.activity">activity</a> that creates the entity * @return an instance of {@link WasGeneratedBy} */ public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity) { WasGeneratedBy res=newWasGeneratedBy(id,entity,null,activity); return res; }
@Override public Object doAction(WasGeneratedBy s) { return newWasGeneratedBy(s); }
@Override public Object doAction(WasGeneratedBy s) { return newWasGeneratedBy(s); }
public WasGeneratedBy newWasGeneratedBy(Entity a, String role, Activity p) { return newWasGeneratedBy((QualifiedName) null, a, role, p); }
public WasGeneratedBy newWasGeneratedBy(Entity a, String role, Activity p) { return newWasGeneratedBy((QualifiedName) null, a, role, p); }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) { WasGeneratedBy res=newWasGeneratedBy(id,entity,null,activity); res.setTime(time); setAttributes(res, attributes); return res; }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) { WasGeneratedBy res=newWasGeneratedBy(id,entity,null,activity); res.setTime(time); setAttributes(res, attributes); return res; }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g) { WasGeneratedBy wgb = newWasGeneratedBy(g.getId(), g.getEntity(), null, g.getActivity()); wgb.setId(g.getId()); wgb.setTime(g.getTime()); wgb.getOther().addAll(g.getOther()); wgb.getRole().addAll(g.getRole()); wgb.getType().addAll(g.getType()); wgb.getLabel().addAll(g.getLabel()); wgb.getLocation().addAll(g.getLocation()); return wgb; }
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g) { WasGeneratedBy wgb = newWasGeneratedBy(g.getId(), g.getEntity(), null, g.getActivity()); wgb.setId(g.getId()); wgb.setTime(g.getTime()); wgb.getOther().addAll(g.getOther()); wgb.getRole().addAll(g.getRole()); wgb.getType().addAll(g.getType()); wgb.getLabel().addAll(g.getLabel()); wgb.getLocation().addAll(g.getLocation()); return wgb; }
public void testGeneration1() { WasGeneratedBy gen = pFactory.newWasGeneratedBy(q("gen1"), q("e1"), null, null); makeDocAndTest(gen, "target/generation1"); }
public void testGeneration6() { WasGeneratedBy gen = pFactory.newWasGeneratedBy((QualifiedName) null, q("e1"), null, q("a1")); makeDocAndTest(gen, "target/generation6"); }
public void testGeneration2() { WasGeneratedBy gen = pFactory.newWasGeneratedBy(q("gen2"), q("e1"), null, q("a1")); makeDocAndTest(gen, "target/generation2"); }
public void testGeneration3() { WasGeneratedBy gen = pFactory.newWasGeneratedBy(q("gen3"), q("e1"), "somerole", q("a1")); gen.getRole().add(pFactory.newRole("otherRole", name.XSD_STRING)); makeDocAndTest(gen, "target/generation3"); }
public void testGeneration4() { WasGeneratedBy gen = pFactory.newWasGeneratedBy(q("gen4"), q("e1"), "somerole", q("a1")); gen.setTime(pFactory.newTimeNow()); makeDocAndTest(gen, "target/generation4"); }
public void testGeneration7() { WasGeneratedBy gen = pFactory.newWasGeneratedBy((QualifiedName) null, q("e1"), "somerole", q("a1")); gen.setTime(pFactory.newTimeNow()); addTypes(gen); addLocations(gen); addLabels(gen); addFurtherAttributes(gen); makeDocAndTest(gen, "target/generation7"); }
public void testGeneration5() { WasGeneratedBy gen = pFactory.newWasGeneratedBy(q("gen4"), q("e1"), "somerole", q("a1")); gen.setTime(pFactory.newTimeNow()); addTypes(gen); addLocations(gen); addLabels(gen); addFurtherAttributes(gen); makeDocAndTest(gen, "target/generation5"); }
public void testGeneration0() { WasGeneratedBy a = pFactory.newWasGeneratedBy((QualifiedName)null, q("e1"), null, q("a1")); 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); addRoles(a); addTypes(a); addLocations(a); makeDocAndTest(a,"target/attr_generation0"); }