public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getRole()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public Role getRole(Edge e) { if (e instanceof Used) { return ((Used) e).getRole(); } if (e instanceof WasGeneratedBy) { return ((WasGeneratedBy) e).getRole(); } if (e instanceof WasControlledBy) { return ((WasControlledBy) e).getRole(); } return null; }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasGeneratedBy)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasGeneratedBy that = ((WasGeneratedBy) object); equalsBuilder.append(this.getEffect(), that.getEffect()); equalsBuilder.append(this.getRole(), that.getRole()); 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()); }
theRole = this.getRole(); toStringBuilder.append("role", theRole);
ProcessRef procID = dep.getCause(); ArtifactRef artId = dep.getEffect(); Role role = dep.getRole();
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g) { WasGeneratedBy wgb=newWasGeneratedBy(g.getId(), g.getEffect(), g.getRole(), g.getCause(), g.getAccount()); wgb.setId(g.getId()); wgb.getAnnotation().addAll(g.getAnnotation()); return wgb; }
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy d) { WasGeneratedBy wgb=newWasGeneratedBy(d.getId(), newArtifactRef(artifactRegister2.get(((Artifact)d.getEffect().getRef()).getId())), newRole(d.getRole()), newProcessRef(processRegister2.get(((Process)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wgb.getAnnotation().addAll(d.getAnnotation()); if (d.getTime()!=null) wgb.setTime(newOTime(d.getTime())); return wgb; }
ProvenanceProcess cause=processTable.get(causeId); ProvenanceArtifact effect=artifactTable.get(effectId); Role thisRole=((WasGeneratedBy)e).getRole(); ProvenanceRole role; if (thisRole!=null) {
ProvenanceProcess cause=processTable.get(causeId); ProvenanceArtifact effect=artifactTable.get(effectId); Role thisRole=((WasGeneratedBy)e).getRole(); ProvenanceRole role; if (thisRole!=null) {
wgb.getRole().setId(null);