private String getName(Names name) { if (name.hasShortLabel()) { return name.getShortLabel(); } else if (name.hasFullName()) { return name.getFullName(); } return null; }
/** * Get the interactor's shortlabel. * @param interactor * @return the name of null of no shortlabel available. */ private String getName(Interactor interactor) { if( interactor.getNames() != null ) { if ( interactor.getNames().hasShortLabel() ) { return interactor.getNames().getShortLabel(); } } return null; } }
if (psiNames != null) { name = (psiNames.hasFullName()) ? psiNames.getFullName() : null; shortName = (psiNames.hasShortLabel()) ? psiNames.getShortLabel() : null; if (psiNames.hasAliases()) { for (Alias alias : psiNames.getAliases()) {
Names names = interaction.getNames(); name = (names.hasFullName()) ? names.getFullName() : ""; shortName = (names.hasShortLabel()) ? names.getShortLabel() : "";
if(names.hasFullName()) evidence.addComment(names.getFullName().trim()); if(names.hasShortLabel()) evidence.addComment(names.getShortLabel().trim());