/** * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data. * * @param entry */ private static void loadGlobalContext( Element entry ) { // process all eventual experiment (COULD BE EMPTY) globalExperiments = new ExperimentListParser(); globalExperiments.process( entry ); // process all eventual interactors (COULD BE EMPTY) globalParticipants = new ParticipantListParser(); globalParticipants.process( entry ); }
ref = ( (Element) experimentRef ).getAttribute( "ref" ); final ExperimentDescriptionTag e = (ExperimentDescriptionTag) experimentList.getExperiments().get( ref ); if ( e != null ) { localExperiments.add( e ); final ExperimentListParser experimentList = new ExperimentListParser(); experimentList.process( root ); localExperiments.addAll( experimentList.getExperiments().values() );
public static EntryTag process( Element entry ) { loadGlobalContext( entry ); // process all interactions InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants ); Collection interactions = interactionList.process( entry ); EntryTag entryTag = null; try { entryTag = new EntryTag( globalExperiments.getExperiments(), globalParticipants.getInteractors(), interactions ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) ); } return entryTag; } }
ref = ( (Element) experimentRef ).getAttribute( "ref" ); final ExperimentDescriptionTag e = (ExperimentDescriptionTag) experimentList.getExperiments().get( ref ); if ( e != null ) { localExperiments.add( e ); final ExperimentListParser experimentList = new ExperimentListParser(); experimentList.process( root ); localExperiments.addAll( experimentList.getExperiments().values() );
public static EntryTag process( Element entry ) { loadGlobalContext( entry ); // process all interactions InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants ); Collection interactions = interactionList.process( entry ); EntryTag entryTag = null; try { entryTag = new EntryTag( globalExperiments.getExperiments(), globalParticipants.getInteractors(), interactions ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) ); } return entryTag; } }
ref = ( (Element) experimentRef ).getAttribute( "ref" ); final ExperimentDescriptionTag e = (ExperimentDescriptionTag) experimentList.getExperiments().get( ref ); if ( e != null ) { localExperiments.add( e ); final ExperimentListParser experimentList = new ExperimentListParser(); experimentList.process( root ); localExperiments.addAll( experimentList.getExperiments().values() );
/** * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data. * * @param entry */ private static void loadGlobalContext( Element entry ) { // process all eventual experiment (COULD BE EMPTY) globalExperiments = new ExperimentListParser(); globalExperiments.process( entry ); // process all eventual interactors (COULD BE EMPTY) globalParticipants = new ParticipantListParser(); globalParticipants.process( entry ); }
public static EntryTag process( Element entry ) { loadGlobalContext( entry ); // process all interactions InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants ); Collection interactions = interactionList.process( entry ); EntryTag entryTag = null; try { entryTag = new EntryTag( globalExperiments.getExperiments(), globalParticipants.getInteractors(), interactions ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) ); } return entryTag; } }
/** * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data. * * @param entry */ private static void loadGlobalContext( Element entry ) { // process all eventual experiment (COULD BE EMPTY) globalExperiments = new ExperimentListParser(); globalExperiments.process( entry ); // process all eventual interactors (COULD BE EMPTY) globalParticipants = new ParticipantListParser(); globalParticipants.process( entry ); }
experiment = (ExperimentDescriptionTag) experimentList.getExperiments().get( id ); if ( experiment != null ) { final String msg = "WARNING - the experiment id: " + id + "is defined several times. " +
experiment = (ExperimentDescriptionTag) experimentList.getExperiments().get( id ); if ( experiment != null ) { final String msg = "WARNING - the experiment id: " + id + "is defined several times. " +
experiment = (ExperimentDescriptionTag) experimentList.getExperiments().get( id ); if ( experiment != null ) { final String msg = "WARNING - the experiment id: " + id + "is defined several times. " +