protected boolean isBait(Participant participant) { if (participant == null) { throw new IllegalArgumentException("Participant must not be null."); } if (participant.hasExperimentalRoles()) { for (ExperimentalRole role : participant.getExperimentalRoles()) { // search for bait log.debug("Checking if participant (id:" + participant.getId() + ") is a bait."); if (XrefUtils.hasPsiId(role.getXref(), BAIT_MI_REF)) { log.debug("Yes it is."); return true; } log.debug("No it is not."); } } return false; }
if (participant.hasExperimentalRoles()) { for (ExperimentalRole role : participant.getExperimentalRoles()) { if(exp==null || role.getExperiments().contains(exp) || role.getExperiments().isEmpty()) {
if (xmlParticipant.hasExperimentalRoles()) {
.create(Evidence.class, genUri(Evidence.class, "p",participant.getId())); if(participant.hasExperimentalRoles() || participant.hasExperimentalInteractors() || participant.hasFeatures())
if ( participant.hasExperimentalRoles() ) { for ( ExperimentalRole er : participant.getExperimentalRoles() ) { if ( er.hasExperimentRefs() ) {
if ( mParticipant.hasExperimentalRoles() ) { if ( jParticipant.getExperimentalRoleList() == null ) { jParticipant.setExperimentalRoleList( new ParticipantType.ExperimentalRoleList() );
if ( mParticipant.hasExperimentalRoles() ) { if ( jParticipant.getExperimentalRoleList() == null ) { jParticipant.setExperimentalRoleList( new psidev.psi.mi.xml254.jaxb.ExperimentalRoleList() );