public Type newType(String type) { Type res=of.createType(); res.setValue(type); return res; }
public WasGeneratedBy newWasGeneratedBy(String id, Artifact a, Role role, Process p, String type, Collection<Account> accounts) { WasGeneratedBy wgb=newWasGeneratedBy(id,a,role,p,accounts); addAnnotation(wgb,of.createType(newType(type))); return wgb; }
public Used newUsed(String id, Process p, Role role, Artifact a, String type, Collection<Account> accounts) { Used res=newUsed(id,p,role,a,accounts); addAnnotation(res,of.createType(newType(type))); return res; }
public WasControlledBy newWasControlledBy(String id, Process p, Role role, Agent ag, String type, Collection<Account> accounts) { WasControlledBy wcb=newWasControlledBy(id,p,role,ag,accounts); addAnnotation(wcb,of.createType(newType(type))); return wcb; }
public WasDerivedFrom newWasDerivedFrom(String id, Artifact a1, Artifact a2, String type, Collection<Account> accounts) { WasDerivedFrom wdf=newWasDerivedFrom(id,a1,a2,accounts); addAnnotation(wdf,of.createType(newType(type))); return wdf; }
public WasTriggeredBy newWasTriggeredBy(String id, Process p1, Process p2, String type, Collection<Account> accounts) { WasTriggeredBy wtb=newWasTriggeredBy(p1,p2,accounts); wtb.setId(id); addAnnotation(wtb,of.createType(newType(type))); return wtb; }
return of.createType(type); Type type=newType((String)prop.getValue()); setIdForCompactAnnotation(type,ann.getId()); return of.createType(type);