/** A factory method to create an instance of a usage {@link Used} * @param activity the identifier of the <a href="http://www.w3.org/TR/prov-dm/#usage.activity">activity</a> that used an entity * @param entity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#usage.entity">entity</a> being used * @return an instance of {@link Used} */ public Used newUsed(QualifiedName activity, QualifiedName entity) { Used res = newUsed((QualifiedName)null); res.setActivity(activity); res.setEntity(entity); return res; }
/** A factory method to create an instance of a usage {@link Used} * @param activity the identifier of the <a href="http://www.w3.org/TR/prov-dm/#usage.activity">activity</a> that used an entity * @param entity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#usage.entity">entity</a> being used * @return an instance of {@link Used} */ public Used newUsed(QualifiedName activity, QualifiedName entity) { Used res = newUsed((QualifiedName)null); res.setActivity(activity); res.setEntity(entity); return res; }
/** A factory method to create an instance of a usage {@link Used} * @param id an optional identifier for a usage * @param activity the identifier of the <a href="http://www.w3.org/TR/prov-dm/#usage.activity">activity</a> that used an entity * @param entity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#usage.entity">entity</a> being used * @return an instance of {@link Used} */ public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity) { Used res = newUsed(id); res.setActivity(activity); res.setEntity(entity); return res; }
/** A factory method to create an instance of a usage {@link Used} * @param id an optional identifier for a usage * @param activity the identifier of the <a href="http://www.w3.org/TR/prov-dm/#usage.activity">activity</a> that used an entity * @param entity an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#usage.entity">entity</a> being used * @return an instance of {@link Used} */ public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity) { Used res = newUsed(id); res.setActivity(activity); res.setEntity(entity); return res; }
public Used newUsed(QualifiedName id, QualifiedName aid, String role, QualifiedName eid) { Used res = newUsed(id); res.setActivity(aid); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); res.setEntity(eid); return res; }
public Used newUsed(QualifiedName id, QualifiedName aid, String role, QualifiedName eid) { Used res = newUsed(id); res.setActivity(aid); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); res.setEntity(eid); return res; }
public void doAction(org.openprovenance.prov.model.Used use) { if (use.getId()!=null) use.setId(uniquify(use.getId())); use.setEntity(uniquify(use.getEntity())); use.setActivity(uniquify(use.getActivity())); doActionAttributes(use); }
switch (i) { case 0: a.setId((QualifiedName)val); return; case 1: a.setActivity((QualifiedName)val); return; case 2: a.setEntity((QualifiedName)val); return; case 3: a.setTime((XMLGregorianCalendar)val); return;
switch (i) { case 0: a.setId((QualifiedName)val); return; case 1: a.setActivity((QualifiedName)val); return; case 2: a.setEntity((QualifiedName)val); return; case 3: a.setTime((XMLGregorianCalendar)val); return;
time = optionalTime("prov:time", attributeMap); Used wUB = pf.newUsed(id); wUB.setActivity(activity2); if (entity2 != null) wUB.setEntity(entity2);
time = optionalTime("prov:time", attributeMap); Used wUB = pf.newUsed(id); wUB.setActivity(activity2); if (entity2 != null) wUB.setEntity(entity2);