public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof OrganismTag ) ) { return false; } final OrganismTag organismTag = (OrganismTag) o; if ( cellType != null ? !cellType.equals( organismTag.cellType ) : organismTag.cellType != null ) { return false; } if ( !taxId.equals( organismTag.taxId ) ) { return false; } if ( tissue != null ? !tissue.equals( organismTag.tissue ) : organismTag.tissue != null ) { return false; } return true; }
public String toString() { final StringBuffer buf = new StringBuffer(); buf.append( "HostOrganismTag" ); buf.append( "{taxId=" ).append( taxId ); buf.append( ", tissue=" ); if ( null == tissue || tissue.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( tissue.getPsiDefinition().getId() ); } buf.append( ", cellType=" ); if ( null == cellType || cellType.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( cellType.getPsiDefinition().getId() ); } buf.append( '}' ); return buf.toString(); } }
public int hashCode() { int result; result = taxId.hashCode(); result = 29 * result + ( cellType != null ? cellType.hashCode() : 0 ); result = 29 * result + ( tissue != null ? tissue.hashCode() : 0 ); return result; }
if ( tissue.getPsiDefinition() != null ) { sb.append( tissue.getPsiDefinition().getId() ); } else { sb.append( tissue.getShortlabel() );
tissue = new TissueTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + tissue.getShortlabel(); bsTissue = cvObjectDao.getByShortLabel(tissue.getShortlabel()); bsTissue = new CvTissue( institution, tissue.getShortlabel() ); cvObjectDao.persist( bsTissue ); System.out.println( "Created new CvTissue( " + tissue.getShortlabel() + " )" ); System.out.println( "Found CvTissue( " + tissue.getShortlabel() + " )" );
if ( tissue.getPsiDefinition() != null ) { sb.append( tissue.getPsiDefinition().getId() ); } else { sb.append( tissue.getShortlabel() );
tissue = new TissueTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + tissue.getShortlabel(); bsTissue = cvObjectDao.getByShortLabel(tissue.getShortlabel()); bsTissue = new CvTissue( institution, tissue.getShortlabel() ); cvObjectDao.persist( bsTissue ); System.out.println( "Created new CvTissue( " + tissue.getShortlabel() + " )" ); System.out.println( "Found CvTissue( " + tissue.getShortlabel() + " )" );
if ( tissue.getPsiDefinition() != null ) { sb.append( tissue.getPsiDefinition().getId() ); } else { sb.append( tissue.getShortlabel() );
public int hashCode() { int result; result = taxId.hashCode(); result = 29 * result + ( cellType != null ? cellType.hashCode() : 0 ); result = 29 * result + ( tissue != null ? tissue.hashCode() : 0 ); return result; }
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof HostOrganismTag ) ) { return false; } final HostOrganismTag hostOrganismTag = (HostOrganismTag) o; if ( cellType != null ? !cellType.equals( hostOrganismTag.cellType ) : hostOrganismTag.cellType != null ) { return false; } if ( !taxId.equals( hostOrganismTag.taxId ) ) { return false; } if ( tissue != null ? !tissue.equals( hostOrganismTag.tissue ) : hostOrganismTag.tissue != null ) { return false; } return true; }
public String toString() { final StringBuffer buf = new StringBuffer(); buf.append( "HostOrganismTag" ); buf.append( "{taxId=" ).append( taxId ); buf.append( ", tissue=" ); if ( null == tissue || tissue.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( tissue.getPsiDefinition().getId() ); } buf.append( ", cellType=" ); if ( null == cellType || cellType.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( cellType.getPsiDefinition().getId() ); } buf.append( '}' ); return buf.toString(); } }
tissue = new TissueTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + tissue.getShortlabel(); bsTissue = cvObjectDao.getByShortLabel(tissue.getShortlabel()); bsTissue = new CvTissue( institution, tissue.getShortlabel() ); cvObjectDao.persist( bsTissue ); System.out.println( "Created new CvTissue( " + tissue.getShortlabel() + " )" ); System.out.println( "Found CvTissue( " + tissue.getShortlabel() + " )" );
if ( tissue.getPsiDefinition() != null ) { String intactId = null; String psiId = tissue.getPsiDefinition().getId(); if ( tissue.getShortlabel() != null ) { if ( tissue.getShortlabel().equalsIgnoreCase( bsTissue.getShortLabel() ) ) { answer = true;
public int hashCode() { int result; result = taxId.hashCode(); result = 29 * result + ( cellType != null ? cellType.hashCode() : 0 ); result = 29 * result + ( tissue != null ? tissue.hashCode() : 0 ); return result; }
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof OrganismTag ) ) { return false; } final OrganismTag organismTag = (OrganismTag) o; if ( cellType != null ? !cellType.equals( organismTag.cellType ) : organismTag.cellType != null ) { return false; } if ( !taxId.equals( organismTag.taxId ) ) { return false; } if ( tissue != null ? !tissue.equals( organismTag.tissue ) : organismTag.tissue != null ) { return false; } return true; }
public String toString() { final StringBuffer buf = new StringBuffer(); buf.append( "HostOrganismTag" ); buf.append( "{taxId=" ).append( taxId ); buf.append( ", tissue=" ); if ( null == tissue || tissue.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( tissue.getPsiDefinition().getId() ); } buf.append( ", cellType=" ); if ( null == cellType || cellType.getPsiDefinition() == null) { buf.append( '-' ); } else { buf.append( cellType.getPsiDefinition().getId() ); } buf.append( '}' ); return buf.toString(); } }
if ( tissue.getPsiDefinition() != null ) { String intactId = null; String psiId = tissue.getPsiDefinition().getId(); if ( tissue.getShortlabel() != null ) { if ( tissue.getShortlabel().equalsIgnoreCase( bsTissue.getShortLabel() ) ) { answer = true;