public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof FeatureTag ) ) { return false; } final FeatureTag featureTag = (FeatureTag) o; if ( xrefs != null ? !xrefs.equals( featureTag.xrefs ) : featureTag.xrefs != null ) { return false; } if ( featureDetection != null ? !featureDetection.equals( featureTag.featureDetection ) : featureTag.featureDetection != null ) { return false; } if ( !featureType.equals( featureTag.featureType ) ) { return false; } if ( fullname != null ? !fullname.equals( featureTag.fullname ) : featureTag.fullname != null ) { return false; } if ( !location.equals( featureTag.location ) ) { return false; } if ( shortlabel != null ? !shortlabel.equals( featureTag.shortlabel ) : featureTag.shortlabel != null ) { return false; } return true; }
public int hashCode() { int result = 29 + ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + featureType.hashCode(); result = 29 + ( featureDetection != null ? featureDetection.hashCode() : 0 ); result = 29 * result + location.hashCode(); return result; }
psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement ); featureDetection = new FeatureDetectionTag( detectionXref );
psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement ); featureDetection = new FeatureDetectionTag( detectionXref );
psiMI = psiFeature.getFeatureDetection().getPsiDefinition().getId(); if ( intactFeature.getCvFeatureIdentification() != null ) {
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof FeatureTag ) ) { return false; } final FeatureTag featureTag = (FeatureTag) o; if ( xrefs != null ? !xrefs.equals( featureTag.xrefs ) : featureTag.xrefs != null ) { return false; } if ( featureDetection != null ? !featureDetection.equals( featureTag.featureDetection ) : featureTag.featureDetection != null ) { return false; } if ( !featureType.equals( featureTag.featureType ) ) { return false; } if ( fullname != null ? !fullname.equals( featureTag.fullname ) : featureTag.fullname != null ) { return false; } if ( !location.equals( featureTag.location ) ) { return false; } if ( shortlabel != null ? !shortlabel.equals( featureTag.shortlabel ) : featureTag.shortlabel != null ) { return false; } return true; }
public int hashCode() { int result = 29 + ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + featureType.hashCode(); result = 29 + ( featureDetection != null ? featureDetection.hashCode() : 0 ); result = 29 * result + location.hashCode(); return result; }
XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement ); featureDetection = new FeatureDetectionTag( detectionXref );
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof FeatureTag ) ) { return false; } final FeatureTag featureTag = (FeatureTag) o; if ( xrefs != null ? !xrefs.equals( featureTag.xrefs ) : featureTag.xrefs != null ) { return false; } if ( featureDetection != null ? !featureDetection.equals( featureTag.featureDetection ) : featureTag.featureDetection != null ) { return false; } if ( !featureType.equals( featureTag.featureType ) ) { return false; } if ( fullname != null ? !fullname.equals( featureTag.fullname ) : featureTag.fullname != null ) { return false; } if ( !location.equals( featureTag.location ) ) { return false; } if ( shortlabel != null ? !shortlabel.equals( featureTag.shortlabel ) : featureTag.shortlabel != null ) { return false; } return true; }
public int hashCode() { int result = 29 + ( shortlabel != null ? shortlabel.hashCode() : 0 ); result = 29 * result + ( fullname != null ? fullname.hashCode() : 0 ); result = 29 * result + ( xrefs != null ? xrefs.hashCode() : 0 ); result = 29 * result + featureType.hashCode(); result = 29 + ( featureDetection != null ? featureDetection.hashCode() : 0 ); result = 29 * result + location.hashCode(); return result; }
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
if ( !featureTag.getFeatureDetection().equals( feature.getFeatureDetection() ) ) {
sb.append( "detection=" ); if ( null != feature.getFeatureDetection() ) { sb.append( feature.getFeatureDetection().getPsiDefinition().getId() ); } else { sb.append( "none" );
if ( !featureTag.getFeatureDetection().equals( feature.getFeatureDetection() ) ) {
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 ); } } }
if ( !featureTag.getFeatureDetection().equals( feature.getFeatureDetection() ) ) {
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 ); } } }