public int compare(ICFSecurityISOLanguageObj lhs, ICFSecurityISOLanguageObj rhs) { if (lhs == null) { if (rhs == null) { return (0); } else { return (-1); } } else if (rhs == null) { return (1); } else { String lhsValue = lhs.getObjQualifiedName(); String rhsValue = rhs.getObjQualifiedName(); if (lhsValue == null) { if (rhsValue == null) { return (0); } else { return (-1); } } else if (rhsValue == null) { return (1); } else { return (lhsValue.compareTo(rhsValue)); } } }
public Object getValueAt(int row, int column) { final String S_ProcName = "getValueAt"; if ((row < 0) || (column < -1)) { return (null); } if (arrayOfISOLanguage == null) { return (null); } int len = arrayOfISOLanguage.length; if (row >= len) { return (null); } ICFSecurityISOLanguageObj obj = arrayOfISOLanguage[row]; if (obj == null) { return (null); } Object retval; switch (column) { case COLID_ROW_HEADER: retval = obj; break; case COLID_OBJQUALIFIEDNAME: retval = obj.getObjQualifiedName(); break; case COLID_ID: retval = new Short(obj.getRequiredId()); break; case COLID_ISOCODE: retval = obj.getRequiredISOCode(); if (retval == null) { retval = ""; } break; case COLID_BASELANGUAGECODE: retval = obj.getRequiredBaseLanguageCode(); if (retval == null) { retval = ""; } break; case COLID_ISOCOUNTRYID: retval = obj.getOptionalISOCountryId(); break; default: retval = null; break; } return (retval); }