Bibi
19 Oct 2005 21:04

ujap.bibi
Class Merger

java.lang.Object
  extended byujap.bibi.Merger

public class Merger
extends Object

Author:
Ute Platzer

Field Summary
private  JDialog d
           
(package private)  EntryEditor ed1
           
(package private)  EntryEditor ed2
           
private  int merge
           
(package private)  JButton none
           
 
Constructor Summary
Merger()
           
 
Method Summary
private static boolean almostEqual(Entry e1, Entry e2)
          Find out if these two fields are similar and could be two different representations for the same information (Entry).
private static String getField(Entry e, String fieldName)
           
 Collection merge(Collection c1, Collection c2)
          returns a Collections wich was merges fron the two input collections, or null if merging was cancelled.
private static Fields merge(Fields f1, Fields f2)
          returns a new Fields object containing the merge result, or null if the program could not decide what to do and wants to ask the user
(package private)  Collection removeDuplicates(Collection c)
          may return null if user calcelled.
private  int showMergeDialog(Entry e1, Entry e2, boolean showNone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ed1

EntryEditor ed1

ed2

EntryEditor ed2

d

private JDialog d

merge

private int merge

none

JButton none
Constructor Detail

Merger

public Merger()
Method Detail

merge

public Collection merge(Collection c1,
                        Collection c2)
returns a Collections wich was merges fron the two input collections, or null if merging was cancelled.


almostEqual

private static boolean almostEqual(Entry e1,
                                   Entry e2)
Find out if these two fields are similar and could be two different representations for the same information (Entry). the most prominent feat of an entry should be the title and perhaps the authors


showMergeDialog

private int showMergeDialog(Entry e1,
                            Entry e2,
                            boolean showNone)

merge

private static Fields merge(Fields f1,
                            Fields f2)
returns a new Fields object containing the merge result, or null if the program could not decide what to do and wants to ask the user


getField

private static String getField(Entry e,
                               String fieldName)

removeDuplicates

Collection removeDuplicates(Collection c)
may return null if user calcelled.


Bibi
19 Oct 2005 21:04

Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.