private Element createParticipant( UserSessionDownload session, Element parent, Interactor interactor, Feature feature ) { Element participantElement = session.createElement( "participant" ); Feature2xmlPSI25 f2xml = (Feature2xmlPSI25) Feature2xmlFactory.getInstance( session ); f2xml.createReference( session, participantElement, feature ); parent.appendChild( participantElement ); return participantElement; } }
createNames( session, element, feature ); createFeatureXrefs( session, element, feature );
/** * 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 Feature2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Feature2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Feature2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Feature2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
createNames( session, element, feature ); createFeatureXrefs( session, element, feature );
/** * 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 Feature2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Feature2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Feature2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Feature2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
createNames( session, element, feature ); createFeatureXrefs( session, element, feature );
private Element createParticipant( UserSessionDownload session, Element parent, Interactor interactor, Feature feature ) { Element participantElement = session.createElement( "participant" ); Feature2xmlPSI25 f2xml = (Feature2xmlPSI25) Feature2xmlFactory.getInstance( session ); f2xml.createReference( session, participantElement, feature ); parent.appendChild( participantElement ); return participantElement; } }
/** * 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 Feature2xmlI getInstance( UserSessionDownload session ) { if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) { return Feature2xmlPSI1.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) { return Feature2xmlPSI2.getInstance(); } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) { return Feature2xmlPSI25.getInstance(); } else { throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() ); } } }
private Element createParticipant( UserSessionDownload session, Element parent, Interactor interactor, Feature feature ) { Element participantElement = session.createElement( "participant" ); Feature2xmlPSI25 f2xml = (Feature2xmlPSI25) Feature2xmlFactory.getInstance( session ); f2xml.createReference( session, participantElement, feature ); parent.appendChild( participantElement ); return participantElement; } }