psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
private static void checkCvFeatureIdentification( FeatureTag feature ) { final XrefTag psiDef = feature.getFeatureDetection().getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !featureIdentificationCache.keySet().contains( id ) ) { CvFeatureIdentification cvFeatureIdentification = null; try { cvFeatureIdentification = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvFeatureIdentification.class,id); if ( cvFeatureIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvFeatureIdentification by PSI definition: " + id ) ); } else { System.out.println( "Found CvFeatureIdentification " + id + " as " + cvFeatureIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvFeatureIdentification " + "having the PSI definition: " + id ) ); e.printStackTrace(); } featureIdentificationCache.put( id, cvFeatureIdentification ); } } }
private static void checkCvFeatureIdentification( FeatureTag feature ) { final XrefTag psiDef = feature.getFeatureDetection().getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !featureIdentificationCache.keySet().contains( id ) ) { CvFeatureIdentification cvFeatureIdentification = null; try { cvFeatureIdentification = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvFeatureIdentification.class,id); if ( cvFeatureIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvFeatureIdentification by PSI definition: " + id ) ); } else { System.out.println( "Found CvFeatureIdentification " + id + " as " + cvFeatureIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvFeatureIdentification " + "having the PSI definition: " + id ) ); e.printStackTrace(); } featureIdentificationCache.put( id, cvFeatureIdentification ); } } }
private static void checkCvFeatureIdentification( FeatureTag feature ) { final XrefTag psiDef = feature.getFeatureDetection().getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !featureIdentificationCache.keySet().contains( id ) ) { CvFeatureIdentification cvFeatureIdentification = null; try { cvFeatureIdentification = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCvObjectDao(CvFeatureIdentification.class).getByXref(id); if ( cvFeatureIdentification == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvFeatureIdentification by PSI definition: " + id ) ); } else { System.out.println( "Found CvFeatureIdentification " + id + " as " + cvFeatureIdentification.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvFeatureIdentification " + "having the PSI definition: " + id ) ); e.printStackTrace(); } featureIdentificationCache.put( id, cvFeatureIdentification ); } } }
detectionId = featureTag.getFeatureDetection().getPsiDefinition().getId(); CvFeatureIdentification featureDetection = FeatureChecker.getCvFeatureIdentification( detectionId ); feature.setCvFeatureIdentification( featureDetection );
detectionId = featureTag.getFeatureDetection().getPsiDefinition().getId(); CvFeatureIdentification featureDetection = FeatureChecker.getCvFeatureIdentification( detectionId ); feature.setCvFeatureIdentification( featureDetection );
detectionId = featureTag.getFeatureDetection().getPsiDefinition().getId(); CvFeatureIdentification featureDetection = FeatureChecker.getCvFeatureIdentification( detectionId ); feature.setCvFeatureIdentification( featureDetection );