/** * If a {@link NameCommentRecord} is added or the name it references * is renamed, then this will update the lookup cache for it. * * @param commentRecord the comment record */ public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) { if(commentRecords.containsValue(commentRecord)) { for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) { if(entry.getValue().equals(commentRecord)) { commentRecords.remove(entry.getKey()); break; } } } commentRecords.put(commentRecord.getNameText(), commentRecord); }
} else if (nextClass == NameCommentRecord.class) { NameCommentRecord ncr = (NameCommentRecord) rs.getNext(); commentRecords.put(ncr.getNameText(), ncr); } else { break;
logObj = "NameComment"; final NameCommentRecord ncr = (NameCommentRecord) rec; retval.commentRecords.put(ncr.getNameText(), ncr); break;
/** * If a {@link NameCommentRecord} is added or the name it references * is renamed, then this will update the lookup cache for it. */ public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) { if(commentRecords.containsValue(commentRecord)) { for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) { if(entry.getValue().equals(commentRecord)) { commentRecords.remove(entry.getKey()); break; } } } commentRecords.put(commentRecord.getNameText(), commentRecord); }
/** * If a {@link NameCommentRecord} is added or the name it references * is renamed, then this will update the lookup cache for it. */ public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) { if(commentRecords.containsValue(commentRecord)) { for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) { if(entry.getValue().equals(commentRecord)) { commentRecords.remove(entry.getKey()); break; } } } commentRecords.put(commentRecord.getNameText(), commentRecord); }
/** * If a {@link NameCommentRecord} is added or the name it references * is renamed, then this will update the lookup cache for it. * * @param commentRecord the comment record */ public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) { if(commentRecords.containsValue(commentRecord)) { for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) { if(entry.getValue().equals(commentRecord)) { commentRecords.remove(entry.getKey()); break; } } } commentRecords.put(commentRecord.getNameText(), commentRecord); }
} else if (nextClass == NameCommentRecord.class) { NameCommentRecord ncr = (NameCommentRecord) rs.getNext(); commentRecords.put(ncr.getNameText(), ncr); } else { break;
commentRecords.put(ncr.getNameText(), ncr);
commentRecords.put(ncr.getNameText(), ncr);
logObj = "NameComment"; final NameCommentRecord ncr = (NameCommentRecord) rec; retval.commentRecords.put(ncr.getNameText(), ncr); break;
String oldName = _commentRec.getNameText(); _commentRec.setNameText(nameName); _book.getWorkbook().updateNameCommentRecordCache(_commentRec);
String oldName = _commentRec.getNameText(); _commentRec.setNameText(nameName); _book.getWorkbook().updateNameCommentRecordCache(_commentRec);
if (log.check( POILogger.DEBUG )) log.log(DEBUG, "found NameComment at " + k); retval.commentRecords.put(ncr.getNameText(), ncr); default :
if (log.check( POILogger.DEBUG )) log.log(DEBUG, "found NameComment at " + k); retval.commentRecords.put(ncr.getNameText(), ncr); default :