Lines Matching refs:item

177                 BundleItem item = null;
178 item = (BundleItem)iter.next();
179 if (item != null && item.getParentGroup().getName().equals(groupName)) {
180 removeUntranslatedItem(item.getKey());
189 * Checks to see if an item of the given key name exists in the set of untranslated items. If
196 BundleItem item = (BundleItem)iter.next();
197 if (item.getKey().equals(name)) {
198 untranslatedItems.remove(item);
248 BundleItem item = (BundleItem)elems.nextElement();
249 if (item.getParentGroup().getName().equals(groupName)) {
250 allItems.remove(item);
256 * Removes a single resource item from the bundle
262 BundleItem item = (BundleItem)o;
265 // Remove from item's group
266 if (item.getParentGroup() != null) {
267 BundleGroup group = item.getParentGroup();
277 * the item does not all ready belong to this Bundle, and Two, if the item is all ready in the set of
281 public void addUntranslatedItem(BundleItem item) {
282 if (item.getParentGroup().getParentBundle() != this)
285 if (untranslatedItems.contains(item)) {
286 untranslatedItems.remove(item);
288 untranslatedItems.add(item);
300 * Returns the indexth untranslated item
363 * Looks up and returns a bundle item stored in the bundle based on its
390 * Add a bundle item to the bundle. This bundle item should all ready have its
394 public void addBundleItem(BundleItem item) {
395 if (allItems.containsKey(item.getKey())) {
396 duplicates.addElement(item);
398 if (!(groups.contains(item.getParentGroup())))
399 addBundleGroup(item.getParentGroup());
400 item.getParentGroup().addBundleItem(item);
401 allItems.put(item.getKey(), item);
402 removeUntranslatedItem(item.getKey());
403 if (!item.isTranslated())
404 addUntranslatedItem(item);
445 * each bundle group's formatted data which includes each bundle item.
460 * each bundle item.