public void addAccounts(HasAccounts element, Collection<Account> accounts, Object ignoreForErasure) { if ((accounts !=null) && (accounts.size()!=0)) { LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } addAccounts(element,ll); } } public void addAccounts(HasAccounts element, Collection<AccountRef> accounts) {
public EmbeddedAnnotation newEmbeddedAnnotation(String id, String property, Object value, Collection<Account> accs) { LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newEmbeddedAnnotation(id,property,value,ll,null); }
public Overlaps newOverlaps(Collection<Account> accounts) { Overlaps res=of.createOverlaps(); LinkedList ll=new LinkedList(); int i=0; for (Account acc: accounts) { if (i==2) break; ll.add(newAccountRef(acc)); i++; } res.getAccount().addAll(ll); return res; }
public Annotation newAnnotation(String id, Role role, String property, Object value, Collection<Account> accs) { RoleRef rid=newRoleRef(role); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,rid,property,value,ll); }
public Annotation newAnnotation(String id, Annotation a, String property, Object value, Collection<Account> accs) { AnnotationRef aid=newAnnotationRef(a); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,aid,property,value,ll); }
public Annotation newAnnotation(String id, WasTriggeredBy edge, String property, Object value, Collection<Account> accs) { DependencyRef cid=newDependencyRef(edge); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,cid,property,value,ll); }
public Annotation newAnnotation(String id, Used edge, String property, Object value, Collection<Account> accs) { DependencyRef cid=newDependencyRef(edge); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,cid,property,value,ll); } public Annotation newAnnotation(String id,
public Annotation newAnnotation(String id, Process p, String property, Object value, Collection<Account> accs) { ProcessRef pid=newProcessRef(p); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,pid,property,value,ll); }
public Annotation newAnnotation(String id, WasControlledBy edge, String property, Object value, Collection<Account> accs) { DependencyRef cid=newDependencyRef(edge); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,cid,property,value,ll); } public Annotation newAnnotation(String id,
public Annotation newAnnotation(String id, Artifact a, String property, Object value, Collection<Account> accs) { ArtifactRef aid=newArtifactRef(a); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,aid,property,value,ll); } public Annotation newAnnotation(String id,
public Annotation newAnnotation(String id, WasDerivedFrom edge, String property, Object value, Collection<Account> accs) { DependencyRef cid=newDependencyRef(edge); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,cid,property,value,ll); } public Annotation newAnnotation(String id,
public Annotation newAnnotation(String id, WasGeneratedBy edge, String property, Object value, Collection<Account> accs) { DependencyRef cid=newDependencyRef(edge); LinkedList<AccountRef> ll=new LinkedList(); if (accs!=null) { for (Account acc: accs) { ll.add(newAccountRef(acc)); } } return newAnnotation(id,cid,property,value,ll); } public Annotation newAnnotation(String id,
public WasTriggeredByStar newWasTriggeredByStar(Process p1, Process p2, Collection<Account> accounts) { ProcessRef pid1=newProcessRef(p1); ProcessRef pid2=newProcessRef(p2); LinkedList<AccountRef> ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasTriggeredByStar(pid1,pid2,ll); }
public WasDerivedFromStar newWasDerivedFromStar(Artifact a1, Artifact a2, Collection<Account> accounts) { ArtifactRef aid1=newArtifactRef(a1); ArtifactRef aid2=newArtifactRef(a2); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasDerivedFromStar(aid1,aid2,ll); }
public WasGeneratedByStar newWasGeneratedByStar(Artifact a, Process p, Collection<Account> accounts) { ArtifactRef aid=newArtifactRef(a); ProcessRef pid=newProcessRef(p); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasGeneratedByStar(aid,pid,ll); }
public UsedStar newUsedStar(Process p, Artifact a, Collection<Account> accounts) { ProcessRef pid=newProcessRef(p); ArtifactRef aid=newArtifactRef(a); LinkedList ll=new LinkedList(); if (accounts!=null) { for (Account acc: accounts) { ll.add(newAccountRef(acc)); } } return newUsedStar(pid,aid,ll); }
public WasDerivedFrom newWasDerivedFrom(String id, Artifact a1, Artifact a2, Collection<Account> accounts) { ArtifactRef aid1=newArtifactRef(a1); ArtifactRef aid2=newArtifactRef(a2); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasDerivedFrom(id,aid1,aid2,ll); }
public WasGeneratedBy newWasGeneratedBy(String id, Artifact a, Role role, Process p, Collection<Account> accounts) { ArtifactRef aid=newArtifactRef(a); ProcessRef pid=newProcessRef(p); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasGeneratedBy(id,aid,role,pid,ll); }
public WasControlledBy newWasControlledBy(String id, Process p, Role role, Agent ag, Collection<Account> accounts) { AgentRef agid=newAgentRef(ag); ProcessRef pid=newProcessRef(p); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasControlledBy(id,pid,role,agid,ll); }
public WasTriggeredBy newWasTriggeredBy(String id, Process p1, Process p2, Collection<Account> accounts) { ProcessRef pid1=newProcessRef(p1); ProcessRef pid2=newProcessRef(p2); LinkedList<AccountRef> ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasTriggeredBy(id,pid1,pid2,ll); }