@Override public String getRedefinedElementName(Namesyn_083 namesyn_083) { if (!namesyn_083.getRdfNam_083().equals("")) { return namesyn_083.getRdfNam_083(); } else { return null; } }
@Override public String getDependsOnElementName(Namesyn_083 namesyn_083) { if (!namesyn_083.getDependOn_083().equals("")) { return namesyn_083.getDependOn_083(); } else { return null; } }
@Override public Collection<String> getIndexElementNames(Namesyn_083 namesyn_083) { buildNamedes_186MapIfNeeded(); if (!namedes_186Map.containsKey(Long.valueOf(namesyn_083.getDbkey()))) { return Collections.emptyList(); } List<String> list = new ArrayList<>(); for (Namedes_186 namedes_186 : namedes_186Map.get(Long.valueOf(namesyn_083.getDbkey()))) { list.add(namedes_186.getIxName_186()); } return list; }
@Override public String getBaseName(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); if (sdr_042.getDrNam_042().startsWith("FIL ")) { return "FILLER"; } Rcdsyn_079 rcdsyn_079b = namesyn_083.getRcdsyn_079().getSr_036().getRcdsyn_079b(); if (rcdsyn_079b == null) { return namesyn_083.getSynName_083(); } else { Namesyn_083 aNamesyn_083 = rcdsyn_079b.getNamesyn_083(sdr_042.getDbkey()); return aNamesyn_083.getSynName_083(); } }
@Override public String getPicture(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); if (!sdr_042.getPic_042().equals("")) { return sdr_042.getPic_042(); } else { return null; } }
@Override public short getOccurrenceCount(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); if (sdr_042.getOcc_042() > 1) { return sdr_042.getOcc_042(); } else { return 1; } }
@Override public Collection<String> getIndexElementBaseNames(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); final List<String> list = new ArrayList<>(); for (Sdes_044 sdes_044 : sdr_042.getSdes_044s()) { // CMT-ID-044 == -11: INDEXED BY (SDES-044 and NAMEDES-186 only) if (sdes_044.getCmtId_044() == -11) { // the index name appears to be in the ASF-FIELD-NAME-044 field (position 5) list.add(JdbcTools.removeTrailingSpaces(sdes_044.getAsfFieldName_044())); } } return list; }
@Override public String getValue(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); for (Sdes_044 sdes_044 : sdr_042.getSdes_044s()) { // CMT-ID-044 == -3: VALUES (ELEMCMT-082 and SDES-044 only) if (sdes_044.getCmtId_044() == -3) { StringBuilder p = new StringBuilder(); p.append(sdes_044.getVal1_044()); String val2_044 = sdes_044.getVal2_044(); if (!val2_044.equals("")) { p.append(" THRU "); p.append(val2_044); } return p.toString(); } } return null; }
@Override public Usage getUsage(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); return Usage.get(sdr_042.getUse_042()); }
@Override public String getName(Namesyn_083 namesyn_083) { return namesyn_083.getSynName_083(); }
@Override public short getLevel(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); return sdr_042.getDrLvl_042(); }