public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d) { WasDerivedFrom wdf=newWasDerivedFrom(d.getId(), d.getEffect(), d.getCause(), d.getAccount()); wdf.getAnnotation().addAll(d.getAnnotation()); return wdf; }
public RdfWasDerivedFrom(ElmoManager manager, QName qname) { this.manager=manager; this.qname=qname; this.prefix=qname.getNamespaceURI(); super.setId(qname.getLocalPart()); }
ArtifactRef aid2=wasDerivedFrom.getEffect(); Artifact a2=(Artifact)(aid2.getRef()); ArtifactRef aid1=wasDerivedFrom.getCause(); Artifact a1=(Artifact)(aid1.getRef()); Collection<AccountRef> accs=wasDerivedFrom.getAccount(); if ((aid1.equals(d.getCause())) && (aid2.equals(d.getEffect()))) { addNewAccounts(d.getAccount(),accs); result=d; found=true;
public WasDerivedFrom newWasDerivedFrom(String id, ArtifactRef aid1, ArtifactRef aid2, Collection<AccountRef> accounts) { WasDerivedFrom res=of.createWasDerivedFrom(); res.setId(autoGenerateId(wasDerivedFromIdPrefix,id)); res.setCause(aid2); res.setEffect(aid1); addAccounts(res,accounts); return res; }
public void setCause(org.openprovenance.model.ArtifactRef value) { super.setCause(value); QName q=((RdfArtifact)(value.getRef())).getQName(); org.openprovenance.rdf.Artifact a=(org.openprovenance.rdf.Artifact)manager.find(q); org.openprovenance.rdf.WasDerivedFrom d=findMyFacade(); d.setCause(a); }
public void setEffect(org.openprovenance.model.ArtifactRef value) { super.setEffect(value); QName q=((RdfArtifact)(value.getRef())).getQName(); org.openprovenance.rdf.Artifact a=(org.openprovenance.rdf.Artifact)manager.find(q); org.openprovenance.rdf.WasDerivedFrom d=findMyFacade(); d.setEffect(a); }
/** * Create an instance of {@link WasDerivedFrom } * */ public WasDerivedFrom createWasDerivedFrom() { return new WasDerivedFrom(); }
List<AccountRef> accountIDs = dep.getAccount(); ArtifactRef fromArtId = dep.getCause(); ArtifactRef toArtId = dep.getEffect();
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public void setId(String value) { super.setId(value); qname = new QName(prefix, value); manager.designate(qname, org.openprovenance.rdf.WasDerivedFrom.class); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasDerivedFrom)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasDerivedFrom that = ((WasDerivedFrom) object); equalsBuilder.append(this.getEffect(), that.getEffect()); equalsBuilder.append(this.getCause(), that.getCause()); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getTime(), that.getTime()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
public void toString(ToStringBuilder toStringBuilder) { theEffect = this.getEffect(); toStringBuilder.append("effect", theEffect); theCause = this.getCause(); toStringBuilder.append("cause", theCause); theAccount = this.getAccount(); toStringBuilder.append("account", theAccount); theTime = this.getTime(); toStringBuilder.append("time", theTime); theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); theId = this.getId(); toStringBuilder.append("id", theId);
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d) { WasDerivedFrom wdf=newWasDerivedFrom(d.getId(), newArtifactRef(artifactRegister2.get(((Artifact)d.getEffect().getRef()).getId())), newArtifactRef(artifactRegister2.get(((Artifact)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wdf.getAnnotation().addAll(d.getAnnotation()); return wdf; }