public void setLocalSubject(Object value) { super.setLocalSubject(value); Annotable ann=(Annotable) ((HasFacade)value).findMyFacade(); ann.getAnnotations().add(findMyFacade()); }
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; }