private void mapSource(final Source source, final CyTable networkTable) { final Names names = source.getNames(); mapNames(networkTable, network.getSUID(), names, "Network Source "); source.getBibref(); }
protected Object psiElementKey(Source psiObject) { String key; if (psiObject.getNames() != null) { key = "source:"+psiObject.getNames().getShortLabel(); } else if (psiObject.getXref() != null) { key = "source:xref:"+psiObject.getXref().getPrimaryRef().getId(); } else if (psiObject.getBibref() != null) { key = "source:bibref:"+psiObject.getBibref().getXref().getPrimaryRef().getId(); } else { throw new PsiConversionException("Could not create key to cache the source: "+psiObject); } return key; } }
Names names = source.getNames(); if (names.getShortLabel() != null) { sourceName = names.getShortLabel();
jSource.setNames( namesConverter.toJaxb( mSource.getNames() ) );
jSource.setNames( namesConverter.toJaxb( mSource.getNames() ) );
public Institution psiToIntact(Source psiObject) { Institution institution = super.psiToIntact( psiObject ); setInstitution(institution); if ( !isNewIntactObjectCreated() ) { return institution; } psiStartConversion(psiObject); IntactConverterUtils.populateNames(psiObject.getNames(), institution, aliasConverter); IntactConverterUtils.populateXref(psiObject.getXref(), institution, xrefConverter); if (psiObject.getBibref() != null) { IntactConverterUtils.populateXref(psiObject.getBibref().getXref(), institution, xrefConverter); } IntactConverterUtils.populateAnnotations(psiObject, institution, institution, annotationConverter); setInstitution(institution); psiEndConversion(psiObject); return institution; }
name = getName(source.getNames());