public void addAnnotation(org.openprovenance.model.Annotable annotable, org.openprovenance.model.Annotation ann) { System.out.println("*********** adding a annotations "); annotable.getAnnotation().add(of.createAnnotation(ann)); }
public void addAnnotation(Annotable annotable, List<EmbeddedAnnotation> anns) { List<JAXBElement<? extends EmbeddedAnnotation>> annotations=annotable.getAnnotation(); for (EmbeddedAnnotation ann: anns) { annotations.add(of.createAnnotation(ann)); } }
public void addAnnotation(Annotable annotable, EmbeddedAnnotation ann) { annotable.getAnnotation().add(of.createAnnotation(ann)); }
public Annotation newAnnotation(String id, Object o, List<Property> properties, Collection<AccountRef> accs) { Annotation res=of.createAnnotation(); res.setId(id); res.setLocalSubject(o); for (Property property: properties) { addProperty(res,property); } addAccounts(res,accs); return res; }
public Annotation newAnnotation(String id, Ref ref, String property, Object value, Collection<AccountRef> accs) { Annotation res=of.createAnnotation(); res.setId(id); res.setLocalSubject(ref.getRef()); addProperty(res,newProperty(property,value)); addAccounts(res,accs); return res; }
return of.createAnnotation(ann);