element = createProteinExperimentalForm( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
element = createProteinParticipant( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
CvFeatureType parent = (CvFeatureType) iterator.next(); if ( isTaggedFeature( parent ) ) { return true;
proteinParticipantRef.setAttribute( "ref", getParticipantId( session, component ) ); proteinExperimentalFormElement.appendChild( proteinParticipantRef ); boolean isTagged = isTaggedFeature( feature.getCvFeatureType() ); Element isTaggedElement = session.createElement( "isTagged" ); Text isTaggedText = session.createTextNode( ( isTagged ? "true" : "false" ) );
/** * Gives the right version of the Psi XML generator according to the user's session * * @param session the user session that will indicate which version of the Psi generator is required * * @return */ public static Component2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Component2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Component2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Component2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
c2psi.createExperimentalForm( session, experimentalFormListElement, component );
proteinParticipantRef.setAttribute( "ref", getParticipantId( session, component ) ); proteinExperimentalFormElement.appendChild( proteinParticipantRef ); boolean isTagged = isTaggedFeature( feature.getCvFeatureType() ); Element isTaggedElement = session.createElement( "isTagged" ); Text isTaggedText = session.createTextNode( ( isTagged ? "true" : "false" ) );
/** * Gives the right version of the Psi XML generator according to the user's session * * @param session the user session that will indicate which version of the Psi generator is required * * @return */ public static Component2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Component2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Component2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Component2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
c2psi.createExperimentalForm( session, experimentalFormListElement, component );
proteinParticipantRef.setAttribute( "ref", getParticipantId( session, component ) ); proteinExperimentalFormElement.appendChild( proteinParticipantRef ); boolean isTagged = isTaggedFeature( feature.getCvFeatureType() ); Element isTaggedElement = session.createElement( "isTagged" ); Text isTaggedText = session.createTextNode( ( isTagged ? "true" : "false" ) );
element = createProteinExperimentalForm( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
element = createProteinParticipant( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
/** * Gives the right version of the Psi XML generator according to the user's session * * @param session the user session that will indicate which version of the Psi generator is required * * @return */ public static Component2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Component2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Component2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Component2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
CvFeatureType parent = (CvFeatureType) iterator.next(); if ( isTaggedFeature( parent ) ) { return true;
c2psi.createExperimentalForm( session, experimentalFormListElement, component );
element.setAttribute( "id", getParticipantId( session, component ) ); isTagged = isTaggedFeature( feature.getCvFeatureType() );
element = createProteinExperimentalForm( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
element = createProteinParticipant( session, parent, component ); element = createSmallMoleculeParticipant( session, parent, component );
CvFeatureType parent = (CvFeatureType) iterator.next(); if ( isTaggedFeature( parent ) ) { return true;
element.setAttribute( "id", getParticipantId( session, component ) ); isTagged = isTaggedFeature( feature.getCvFeatureType() );