return false; if ( !interactionDetection.equals( experimentDescriptionTag.interactionDetection ) ) { 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 InteractionDetectionTag interactionDetection ) { final XrefTag psiDef = interactionDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteraction cvInteraction = null; try { cvInteraction = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvInteraction.class,id); if ( cvInteraction == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteraction by PSI definition: " + id ) ); } else { System.out.println( "Found CvInteraction " + id + " as " + cvInteraction.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, cvInteraction ); } } }
CvDatabase.PSI_MI ); try { interactionDetection = new InteractionDetectionTag( interactionXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( interactionDetectionXrefElement,
public static void check( final InteractionDetectionTag interactionDetection ) { final XrefTag psiDef = interactionDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteraction cvInteraction = null; try { cvInteraction = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvInteraction.class,id); if ( cvInteraction == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteraction by PSI definition: " + id ) ); } else { System.out.println( "Found CvInteraction " + id + " as " + cvInteraction.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, cvInteraction ); } } }
CvDatabase.PSI_MI ); try { interactionDetection = new InteractionDetectionTag( interactionXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( interactionDetectionXrefElement,
public static void check( final InteractionDetectionTag interactionDetection ) { final XrefTag psiDef = interactionDetection.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteraction cvInteraction = null; try { cvInteraction = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCvObjectDao(CvInteraction.class).getByXref(id); if ( cvInteraction == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteraction by PSI definition: " + id ) ); } else { System.out.println( "Found CvInteraction " + id + " as " + cvInteraction.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, cvInteraction ); } } }
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 ( !interactionDetection.equals( experimentDescriptionTag.interactionDetection ) ) { return false;
CvDatabase.PSI_MI ); try { interactionDetection = new InteractionDetectionTag( interactionXref ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( interactionDetectionXrefElement,
final String interactionDetectionId = experimentDescription.getInteractionDetection().getPsiDefinition().getId(); final CvInteraction cvInteraction = InteractionDetectionChecker.getCvInteraction( interactionDetectionId ); experiment.setCvInteraction( cvInteraction );
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 ( !interactionDetection.equals( experimentDescriptionTag.interactionDetection ) ) { return false;
final String interactionDetectionId = experimentDescription.getInteractionDetection().getPsiDefinition().getId(); final CvInteraction cvInteraction = InteractionDetectionChecker.getCvInteraction( interactionDetectionId ); experiment.setCvInteraction( cvInteraction );
final String interactionDetectionId = experimentDescription.getInteractionDetection().getPsiDefinition().getId(); final CvInteraction cvInteraction = InteractionDetectionChecker.getCvInteraction( interactionDetectionId ); experiment.setCvInteraction( cvInteraction );