|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.frontend.redundancy.MCRRedundancyAbstractMapGenerator
public abstract class MCRRedundancyAbstractMapGenerator
Abstract class for creating a redundancy map.
| Nested Class Summary | |
|---|---|
protected class |
MCRRedundancyAbstractMapGenerator.DefaultCompareStringFormatter
|
protected class |
MCRRedundancyAbstractMapGenerator.DefaultStringComparator
|
| Field Summary | |
|---|---|
protected Comparator<String> |
comparator
|
protected MCRRedundancyFormattable<String> |
compareStringFormatter
|
protected Element |
redundancyMap
|
protected MCRRedundancyTypeData |
typeData
|
| Constructor Summary | |
|---|---|
MCRRedundancyAbstractMapGenerator()
|
|
| Method Summary | |
|---|---|
protected boolean |
areConditionsEquals(Map<String,String> conditionMap1,
Map<String,String> conditionMap2)
Compares a condition map with another condition map. |
protected boolean |
areRedundancyObjectsEqual(MCRRedundancyObject obj1,
MCRRedundancyObject obj2)
Checks if the redundancy objects are equal. |
protected MCRCondition |
createCondition()
Creates the search condition. |
protected Element |
createGroupElement(int id,
Map<String,String> compareCriterias)
Creates a group as element. |
protected Element |
createObjectElement(String id)
Creates a single redundancy object element. |
abstract void |
createRedundancyMap()
Main method to create the redundancy map. |
Comparator<String> |
getComparator()
|
protected Map<String,String> |
getCompareCriteria(MCRHit mcrHit)
Returns the compare criterias of a search hit. |
protected String |
getFileName()
|
MCRRedundancyFormattable<String> |
getStringFormatter()
|
void |
saveToFile()
Saves the redundancy map to the file system. |
void |
setComparator(Comparator<String> comparator)
|
void |
setStringFormatter(MCRRedundancyFormattable<String> stringFormatter)
|
void |
setTypeData(MCRRedundancyTypeData typeData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MCRRedundancyTypeData typeData
protected Element redundancyMap
protected Comparator<String> comparator
protected MCRRedundancyFormattable<String> compareStringFormatter
| Constructor Detail |
|---|
public MCRRedundancyAbstractMapGenerator()
| Method Detail |
|---|
public void setTypeData(MCRRedundancyTypeData typeData)
protected String getFileName()
protected MCRCondition createCondition()
protected Map<String,String> getCompareCriteria(MCRHit mcrHit)
mcrHit - the search hit
protected boolean areRedundancyObjectsEqual(MCRRedundancyObject obj1,
MCRRedundancyObject obj2)
obj1 - the first redundancy objectobj2 - the second redundancy object
protected boolean areConditionsEquals(Map<String,String> conditionMap1,
Map<String,String> conditionMap2)
public void setComparator(Comparator<String> comparator)
public Comparator<String> getComparator()
public void setStringFormatter(MCRRedundancyFormattable<String> stringFormatter)
public MCRRedundancyFormattable<String> getStringFormatter()
public abstract void createRedundancyMap()
public void saveToFile()
throws FileNotFoundException,
IOException
FileNotFoundException
IOException
protected Element createGroupElement(int id,
Map<String,String> compareCriterias)
id - the id of the group. its a increasing integer number.name - the name of the group
protected Element createObjectElement(String id)
id - the id of the mcr object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||