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; }
String psiMI = psiFeature.getFeatureType().getPsiDefinition().getId(); String intactMI = getPsiID( intactFeature.getCvFeatureType() );
if ( typeXrefElement != null ) { XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref );
String psiMI = psiFeature.getFeatureType().getPsiDefinition().getId(); String intactMI = getPsiID( intactFeature.getCvFeatureType() );
if ( typeXrefElement != null ) { XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref );
String psiMI = psiFeature.getFeatureType().getPsiDefinition().getId(); String intactMI = getPsiID( intactFeature.getCvFeatureType() );
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; }
if ( typeXrefElement != null ) { XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref );
sb.append( "type=" ).append( feature.getFeatureType().getPsiDefinition().getId() ); sb.append( ',' ); sb.append( "detection=" );
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( "type=" ).append( feature.getFeatureType().getPsiDefinition().getId() ); sb.append( ',' ); sb.append( "detection=" );
FeatureTag featureTag = (FeatureTag) iterator1.next(); if ( featureTag.getFeatureType().equals( feature.getFeatureType() ) ) {
sb.append( "type=" ).append( feature.getFeatureType().getPsiDefinition().getId() ); sb.append( ',' ); sb.append( "detection=" );
FeatureTag featureTag = (FeatureTag) iterator1.next(); if ( featureTag.getFeatureType().equals( feature.getFeatureType() ) ) {
private static void checkCvTypeIdentification( FeatureTag feature ) { XrefTag psiDef = feature.getFeatureType().getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !featureTypeCache.keySet().contains( id ) ) { CvFeatureType featureType = null; try { featureType = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvFeatureType.class,id); if ( featureType == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvFeatureType by PSI definition: " + id ) ); } else { System.out.println( "Found CvFeatureType " + id + " as " + featureType.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvFeatureType " + "having the PSI definition: " + id ) ); e.printStackTrace(); } featureTypeCache.put( id, featureType ); } }
FeatureTag featureTag = (FeatureTag) iterator1.next(); if ( featureTag.getFeatureType().equals( feature.getFeatureType() ) ) {
private static void checkCvTypeIdentification( FeatureTag feature ) { XrefTag psiDef = feature.getFeatureType().getPsiDefinition(); XrefChecker.check( psiDef ); final String id = psiDef.getId(); if ( !featureTypeCache.keySet().contains( id ) ) { CvFeatureType featureType = null; try { featureType = IntactContext.getCurrentInstance().getCvContext().getByMiRef(CvFeatureType.class,id); if ( featureType == null ) { MessageHolder.getInstance().addCheckerMessage( new Message( "Could not find CvFeatureType by PSI definition: " + id ) ); } else { System.out.println( "Found CvFeatureType " + id + " as " + featureType.getShortLabel() ); } } catch ( IntactException e ) { MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while searching for CvFeatureType " + "having the PSI definition: " + id ) ); e.printStackTrace(); } featureTypeCache.put( id, featureType ); } }