public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getValue()); hashCodeBuilder.append(this.getId()); }
/** * Create an instance of {@link Role } * */ public Role createRole() { return new Role(); }
public void addEdgeLabel(Edge e, HashMap<String,String> properties) { String label=null; String type=of.getType(e); if (type!=null) { label=type; } else if (getEdgePrintRole(e)) { Role role=of.getRole(e); if (role!=null && role.getValue()!=null) { label=displayRole(role.getValue()); properties.put("fontsize","8"); } } if (label!=null) { properties.put("label",convertEdgeLabel(label)); if (properties.get("fontsize")==null) { properties.put("fontsize","10"); } } }
ProvenanceRole role; if (thisRole!=null) { role=pcf.newRole(thisRole.getValue()); } else { role=pcf.newRole(UNKNOWN_ROLE); if (!(thisRole.getAnnotation().isEmpty())) { RdfProvenanceRole rdfRole=(RdfProvenanceRole) role; Resource roleSubject=rdfRole.getSubject(); mc.addTriples(triplifyAnnotations(roleSubject,thisRole.getAnnotation())); ProvenanceRole role; if (thisRole!=null) { role=pcf.newRole(thisRole.getValue()); } else { role=pcf.newRole(UNKNOWN_ROLE); if (!(thisRole.getAnnotation().isEmpty())) { RdfProvenanceRole rdfRole=(RdfProvenanceRole) role; Resource roleSubject=rdfRole.getSubject(); mc.addTriples(triplifyAnnotations(roleSubject,thisRole.getAnnotation())); ProvenanceAgent cause=agentTable.get(causeId); ProvenanceProcess effect=processTable.get(effectId); ProvenanceRole role = pcf.newRole(((WasControlledBy)e).getRole().getValue()); if (accounts.isEmpty()) { ProvenanceAccount account=accountTable.get(NULL_ACCOUNT); if (!(thisRole.getAnnotation().isEmpty())) {
public RdfRole(ElmoManager manager, QName qname) { this.manager=manager; this.qname=qname; this.prefix=qname.getNamespaceURI(); super.setId(qname.getLocalPart()); //super.setValue((manager.find(qname)); }
public void setValue(String value) { super.setValue(value); org.openprovenance.rdf.Role r=findMyFacade(); r.setValue(value); }
public boolean equals(Object object) { if (!(object instanceof Role)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
/** * generic processing of a process-artifact dependency * @param procID * @param artId * @param role * @param workflowId * @param workflowRun * @param artifactIsInput */ private Port processProcessArtifactDep(ProcessRef procID, ArtifactRef artId, Role role, String workflowId, String workflowRun, boolean artifactIsInput) { String procName = ((org.openprovenance.model.Process) procID.getRef()).getId(); String portName = role.getValue(); String value = ((Artifact) artId.getRef()).getId(); portName = removeBlanks(portName); return processProcessArtifactDep(procName, value, portName, workflowId, workflowRun, artifactIsInput); }
public void setId(String value) { super.setId(value); qname = new QName(prefix, value); manager.designate(qname, org.openprovenance.rdf.Role.class); }
r.equals(u.getRole())) { addNewAccounts(u.getAccount(),accs); result=u;
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Role)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Role that = ((Role) object); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getValue(), that.getValue()); equalsBuilder.append(this.getId(), that.getId()); }
ProvenanceRole role; if (thisRole!=null) { role=pcf.newRole(thisRole.getValue()); } else { role=pcf.newRole(UNKNOWN_ROLE); ProvenanceRole role; if (thisRole!=null) { role=pcf.newRole(thisRole.getValue()); } else { role=pcf.newRole(UNKNOWN_ROLE); ProvenanceAgent cause=agentTable.get(causeId); ProvenanceProcess effect=processTable.get(effectId); ProvenanceRole role = pcf.newRole(((WasControlledBy)e).getRole().getValue()); if (accounts.isEmpty()) { ProvenanceAccount account=accountTable.get(NULL_ACCOUNT);
r.equals(u.getRole())) { addNewAccounts(u.getAccount(),accs); result=u;
public void toString(ToStringBuilder toStringBuilder) { { List<JAXBElement<? extends EmbeddedAnnotation>> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } { String theValue; theValue = this.getValue(); toStringBuilder.append("value", theValue); } { String theId; theId = this.getId(); toStringBuilder.append("id", theId); } }
r.equals(u.getRole())) { addNewAccounts(u.getAccount(),accs); result=u;