public psidev.psi.mi.xml.model.Confidence fromJaxb( psidev.psi.mi.xml253.jaxb.ConfidenceListType.Confidence jConfidence ) throws ConverterException { if ( jConfidence == null ) { throw new IllegalArgumentException( "You must give a non null JAXB Confidence." ); } checkDependencies(); psidev.psi.mi.xml.model.Confidence mConfidence = new psidev.psi.mi.xml.model.Confidence(); // Initialise the model reading the Jaxb object // 1. set attributes mConfidence.setValue( jConfidence.getValue() ); // 2. set encapsulated objects mConfidence.setUnit( openCvTypeConverter.fromJaxb( jConfidence.getUnit(), psidev.psi.mi.xml.model.Unit.class ) ); // experiments if ( jConfidence.getExperimentRefList() != null ) { PsiDAO<ExperimentDescription> experimentDAO = factory.getExperimentDAO(); for ( Integer experimentId : jConfidence.getExperimentRefList().getExperimentReves() ) { ExperimentDescription experimentDescription = experimentDAO.retreive( experimentId ); if ( experimentDescription == null ) { mConfidence.getExperimentRefs().add( new ExperimentRef( experimentId ) ); } else { mConfidence.getExperiments().add( experimentDescription ); } } } return mConfidence; }
public psidev.psi.mi.xml.model.Confidence fromJaxb( psidev.psi.mi.xml254.jaxb.Confidence jConfidence ) throws ConverterException { if ( jConfidence == null ) { throw new IllegalArgumentException( "You must give a non null JAXB Confidence." ); } checkDependencies(); psidev.psi.mi.xml.model.Confidence mConfidence = new psidev.psi.mi.xml.model.Confidence(); // Initialise the model reading the Jaxb object // 1. set attributes mConfidence.setValue( jConfidence.getValue() ); // 2. set encapsulated objects mConfidence.setUnit( openCvTypeConverter.fromJaxb( jConfidence.getUnit(), psidev.psi.mi.xml.model.Unit.class ) ); // experiments if ( jConfidence.getExperimentRefList() != null ) { PsiDAO<ExperimentDescription> experimentDAO = factory.getExperimentDAO(); for ( Integer experimentId : jConfidence.getExperimentRefList().getExperimentReves() ) { ExperimentDescription experimentDescription = experimentDAO.retreive( experimentId ); if ( experimentDescription == null ) { mConfidence.getExperimentRefs().add( new ExperimentRef( experimentId ) ); } else { mConfidence.getExperiments().add( experimentDescription ); } } } return mConfidence; }
jConfidence.setExperimentRefList( new ExperimentRefList() ); for ( ExperimentDescription mExperiment : mConfidence.getExperiments() ) { jConfidence.getExperimentRefList().getExperimentReves().add( mExperiment.getId() );
jConfidence.setExperimentRefList( new ExperimentRefListType() ); for ( ExperimentDescription mExperiment : mConfidence.getExperiments() ) { jConfidence.getExperimentRefList().getExperimentReves().add( mExperiment.getId() );
conf.getExperiments().add( ed ); " all the interactions and participants then use references to pre-declared experiments or all the experiments are only described at the level of the interactions and no experiment reference can be used."); conf.getExperiments().add( ed );
c.getExperiments().add( ed ); " all the interactions and participants then use references to pre-declared experiments or all the experiments are only described at the level of the interactions and no experiment reference can be used."); c.getExperiments().add( ed );