public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getProperty()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public void toString(ToStringBuilder toStringBuilder) { { List<Property> theProperty; theProperty = this.getProperty(); toStringBuilder.append("property", theProperty); } { List<AccountRef> theAccount; theAccount = this.getAccount(); toStringBuilder.append("account", theAccount); } { List<JAXBElement<? extends EmbeddedAnnotation>> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } { String theId; theId = this.getId(); toStringBuilder.append("id", theId); } }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof EmbeddedAnnotation)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final EmbeddedAnnotation that = ((EmbeddedAnnotation) object); equalsBuilder.append(this.getProperty(), that.getProperty()); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
public void sortAnnotations(List<JAXBElement<? extends EmbeddedAnnotation>> ll) { Collections.sort(ll, new Comparator() { public int compare(Object o1, Object o2) { JAXBElement j1=(JAXBElement) o1; JAXBElement j2=(JAXBElement) o2; EmbeddedAnnotation a1=(EmbeddedAnnotation) j1.getValue(); EmbeddedAnnotation a2=(EmbeddedAnnotation) j2.getValue(); if (a1.getId()==null) { if (a2.getId()==null) { return a1.getClass().getName().compareTo(a2.getClass().getName()); } else { return -1; } } else { if (a2.getId()==null) { return +1; } else { return a1.getId().compareTo(a2.getId()); } } }}); for (JAXBElement je: ll) { EmbeddedAnnotation a=(EmbeddedAnnotation) je.getValue(); sortProperties(a.getProperty()); sortByRef(a.getAccount()); } }
public void addNewAnnotations(Annotable res, List<JAXBElement<? extends org.openprovenance.model.EmbeddedAnnotation>> anns) { for (JAXBElement<? extends org.openprovenance.model.EmbeddedAnnotation> ann: anns) { EmbeddedAnnotation ea=ann.getValue(); if (ea.getId()!=null) addAnnotation(res,newEmbeddedAnnotation(ea.getId(), ea.getProperty(), ea.getAccount(), null)); } }
value); for (AccountRef aid: ann.getAccount()) { ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); RdfProvenanceAccount a2=(RdfProvenanceAccount) account;
public void addNewAnnotations(Annotable res, List<JAXBElement<? extends org.openprovenance.model.EmbeddedAnnotation>> anns) { for (JAXBElement<? extends org.openprovenance.model.EmbeddedAnnotation> ann: anns) { EmbeddedAnnotation ea=ann.getValue(); String label=getLabel(ea); if (label!=null) addAnnotation(res,newLabel(label)); String type=getType(ea); if (type!=null) addAnnotation(res,newType(type)); String profile=getProfile(ea); if (profile!=null) addAnnotation(res,newProfile(profile)); String pname=getPname(ea); if (pname!=null) addAnnotation(res,newPName(pname)); Object value=getValue(ea); if (value!=null) addAnnotation(res,newValue(value,getEncoding(ea))); if (ea.getId()!=null) addAnnotation(res,newEmbeddedAnnotation(ea.getId(), ea.getProperty(), newAccounts(ea.getAccount()), null)); } }