return false; if ( confidence != null ? !confidence.equals( interactionTag.confidence ) : interactionTag.confidence != null ) { return false;
public int hashCode() { int result; result = ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + interactionType.hashCode(); result = 29 * result + experiments.hashCode(); result = 29 * result + participants.hashCode(); result = 29 * result + xrefs.hashCode(); result = 29 * result + annotations.hashCode(); result = 29 * result + ( confidence != null ? confidence.hashCode() : 0 ); return result; }
/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
Collection _annotations = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().getByDescriptionLike(confidence.getValue()); annotation.setAnnotationText( confidence.getValue() ); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().persist( annotation );
/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
Collection _annotations = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().getByTextLike(confidence.getValue()); annotation.setAnnotationText( confidence.getValue() ); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().persist( annotation );
/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
public int hashCode() { int result; result = ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + interactionType.hashCode(); result = 29 * result + experiments.hashCode(); result = 29 * result + participants.hashCode(); result = 29 * result + xrefs.hashCode(); result = 29 * result + annotations.hashCode(); result = 29 * result + ( confidence != null ? confidence.hashCode() : 0 ); return result; }
return false; if ( confidence != null ? !confidence.equals( interactionTag.confidence ) : interactionTag.confidence != null ) { return false;
Collection _annotations = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().getByDescriptionLike(confidence.getValue()); annotation.setAnnotationText( confidence.getValue() ); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().persist( annotation );
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );
public int hashCode() { int result; result = ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + interactionType.hashCode(); result = 29 * result + experiments.hashCode(); result = 29 * result + participants.hashCode(); result = 29 * result + xrefs.hashCode(); result = 29 * result + annotations.hashCode(); result = 29 * result + ( confidence != null ? confidence.hashCode() : 0 ); return result; }
return false; if ( confidence != null ? !confidence.equals( interactionTag.confidence ) : interactionTag.confidence != null ) { return false;
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );