public static void check( final InteractionTypeTag interactionType ) { final XrefTag psiDef = interactionType.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteractionType cvInteractionType = null; try { cvInteractionType = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvInteractionType.class, id); if ( cvInteractionType == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteractionType " + "for the PSI definition: " + id ) ); } else { System.out.println( "Found InteractionType " + id + " as " + cvInteractionType.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteractionType " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvInteractionType ); } } }
public static void check( final InteractionTypeTag interactionType ) { final XrefTag psiDef = interactionType.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteractionType cvInteractionType = null; try { cvInteractionType = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvInteractionType.class, id); if ( cvInteractionType == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteractionType " + "for the PSI definition: " + id ) ); } else { System.out.println( "Found InteractionType " + id + " as " + cvInteractionType.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteractionType " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvInteractionType ); } } }
public static void check( final InteractionTypeTag interactionType ) { final XrefTag psiDef = interactionType.getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !cache.keySet().contains( id ) ) { CvInteractionType cvInteractionType = null; try { cvInteractionType = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCvObjectDao(CvInteractionType.class).getByXref(id); if ( cvInteractionType == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvInteractionType " + "for the PSI definition: " + id ) ); } else { System.out.println( "Found InteractionType " + id + " as " + cvInteractionType.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvInteractionType " + "having the PSI definition: " + id ) ); e.printStackTrace(); } cache.put( id, cvInteractionType ); } } }
final String cvInteractionTypeId = interactionTag.getInteractionType().getPsiDefinition().getId(); CvInteractionType cvInteractionType = InteractionTypeChecker.getCvInteractionType( cvInteractionTypeId );
final String cvInteractionTypeId = interactionTag.getInteractionType().getPsiDefinition().getId(); CvInteractionType cvInteractionType = InteractionTypeChecker.getCvInteractionType( cvInteractionTypeId );
final String cvInteractionTypeId = interactionTag.getInteractionType().getPsiDefinition().getId(); CvInteractionType cvInteractionType = InteractionTypeChecker.getCvInteractionType( cvInteractionTypeId );