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 ( null != cellType.getPsiDefinition() ) { sb.append( cellType.getPsiDefinition().getId() ); } else { sb.append( cellType.getShortlabel() );
cellType = new CellTypeTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + cellType.getShortlabel(); bsCellType = cvObjectDao.getByShortLabel( cellType.getShortlabel() ); bsCellType = new CvCellType( institution, cellType.getShortlabel() ); cvObjectDao.persist( bsCellType ); System.out.println( "Created new CvCellType( " + cellType.getShortlabel() + " )" ); System.out.println( "Found CvCellType( " + cellType.getShortlabel() + " )" );
if ( null != cellType.getPsiDefinition() ) { sb.append( cellType.getPsiDefinition().getId() ); } else { sb.append( cellType.getShortlabel() );
cellType = new CellTypeTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + cellType.getShortlabel(); bsCellType = cvObjectDao.getByShortLabel( cellType.getShortlabel() ); bsCellType = new CvCellType( institution, cellType.getShortlabel() ); cvObjectDao.persist( bsCellType ); System.out.println( "Created new CvCellType( " + cellType.getShortlabel() + " )" ); System.out.println( "Found CvCellType( " + cellType.getShortlabel() + " )" );
if ( null != cellType.getPsiDefinition() ) { sb.append( cellType.getPsiDefinition().getId() ); } else { sb.append( cellType.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(); } }
cellType = new CellTypeTag( xref, shortLabel ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
label += "-" + cellType.getShortlabel(); bsCellType = cvObjectDao.getByShortLabel( cellType.getShortlabel() ); bsCellType = new CvCellType( institution, cellType.getShortlabel() ); cvObjectDao.persist( bsCellType ); System.out.println( "Created new CvCellType( " + cellType.getShortlabel() + " )" ); System.out.println( "Found CvCellType( " + cellType.getShortlabel() + " )" );
if ( cellType.getShortlabel() != null ) { if ( cellType.getShortlabel().equalsIgnoreCase( bsCellType.getShortLabel() ) ) { answer = true; } else if ( null != cellType.getPsiDefinition() ) { String psiId = cellType.getPsiDefinition().getId(); if ( psiId.equalsIgnoreCase( intactId ) ) { 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 ( cellType.getShortlabel() != null ) { if ( cellType.getShortlabel().equalsIgnoreCase( bsCellType.getShortLabel() ) ) { answer = true; } else if ( null != cellType.getPsiDefinition() ) { String psiId = cellType.getPsiDefinition().getId(); if ( psiId.equalsIgnoreCase( intactId ) ) { answer = true;