return false; if ( !participantDetection.equals( experimentDescriptionTag.participantDetection ) ) { return false;
public int hashCode() { int result; result = shortlabel.hashCode(); result = 29 * result + fullname.hashCode(); result = 29 * result + bibRef.hashCode(); result = 29 * result + hostOrganism.hashCode(); result = 29 * result + interactionDetection.hashCode(); result = 29 * result + participantDetection.hashCode(); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + ( annotations != null ? annotations.hashCode() : 0 ); result = 29 * result + ( additionalBibRef != null ? additionalBibRef.hashCode() : 0 ); return result; }
public static void check( final ParticipantDetectionTag participantDetection ) { final XrefTag psiDef = participantDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvIdentification cvIdentification = null; try { cvIdentification = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvIdentification.class,id); if ( cvIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvIdentification for the PSI definition: " + id ) ); } else { System.out.println( "Found ParticipantDetection " + id + " as " + cvIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteraction " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvIdentification ); } } }
CvDatabase.PSI_MI ); try { participantDetection = new ParticipantDetectionTag( participantXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( participantDetectionXrefElement,
public static void check( final ParticipantDetectionTag participantDetection ) { final XrefTag psiDef = participantDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvIdentification cvIdentification = null; try { cvIdentification = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvIdentification.class,id); if ( cvIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvIdentification for the PSI definition: " + id ) ); } else { System.out.println( "Found ParticipantDetection " + id + " as " + cvIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteraction " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvIdentification ); } } }
CvDatabase.PSI_MI ); try { participantDetection = new ParticipantDetectionTag( participantXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( participantDetectionXrefElement,
public static void check( final ParticipantDetectionTag participantDetection ) { final XrefTag psiDef = participantDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvIdentification cvIdentification = null; try { cvIdentification = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCvObjectDao(CvIdentification.class).getByXref(id); if ( cvIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvIdentification for the PSI definition: " + id ) ); } else { System.out.println( "Found ParticipantDetection " + id + " as " + cvIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteraction " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvIdentification ); } } }
public int hashCode() { int result; result = shortlabel.hashCode(); result = 29 * result + fullname.hashCode(); result = 29 * result + bibRef.hashCode(); result = 29 * result + hostOrganism.hashCode(); result = 29 * result + interactionDetection.hashCode(); result = 29 * result + participantDetection.hashCode(); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + ( annotations != null ? annotations.hashCode() : 0 ); result = 29 * result + ( additionalBibRef != null ? additionalBibRef.hashCode() : 0 ); return result; }
return false; if ( !participantDetection.equals( experimentDescriptionTag.participantDetection ) ) { return false;
CvDatabase.PSI_MI ); try { participantDetection = new ParticipantDetectionTag( participantXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( participantDetectionXrefElement,
final String participantDetectionId = experimentDescription.getParticipantDetection().getPsiDefinition().getId(); final CvIdentification cvIdentification = ParticipantDetectionChecker.getCvIdentification( participantDetectionId ); experiment.setCvIdentification( cvIdentification );
public int hashCode() { int result; result = shortlabel.hashCode(); result = 29 * result + fullname.hashCode(); result = 29 * result + bibRef.hashCode(); result = 29 * result + hostOrganism.hashCode(); result = 29 * result + interactionDetection.hashCode(); result = 29 * result + participantDetection.hashCode(); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + ( annotations != null ? annotations.hashCode() : 0 ); result = 29 * result + ( additionalBibRef != null ? additionalBibRef.hashCode() : 0 ); return result; }
return false; if ( !participantDetection.equals( experimentDescriptionTag.participantDetection ) ) { return false;
final String participantDetectionId = experimentDescription.getParticipantDetection().getPsiDefinition().getId(); final CvIdentification cvIdentification = ParticipantDetectionChecker.getCvIdentification( participantDetectionId ); experiment.setCvIdentification( cvIdentification );
final String participantDetectionId = experimentDescription.getParticipantDetection().getPsiDefinition().getId(); final CvIdentification cvIdentification = ParticipantDetectionChecker.getCvIdentification( participantDetectionId ); experiment.setCvIdentification( cvIdentification );