|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.nav.context.ThemeCategorizer
public class ThemeCategorizer
INTERNAL: Class for categorizing a collection of themes according to their theme class. The theme classes as well as the themes in each theme class could be sorted.
Field Summary | |
---|---|
protected java.util.Comparator |
lexicalComparator
for sorting the theme class strings |
protected static java.lang.String |
STRING_NO_CLASS
representation of theme class for themes which belong to no type |
protected StringifierIF |
stringifier
Stringifier for theme class topics |
protected java.util.Comparator |
topicComparator
for sorting the theme topics |
Constructor Summary | |
---|---|
ThemeCategorizer(TopicMapIF tm,
java.util.Collection context)
empty constructor. |
Method Summary | |
---|---|
java.lang.String |
generateThemeList(java.util.HashMap themeClassMap,
java.util.Collection selectedThemes,
StringifierIF stringifierThemeClass,
StringifierIF stringifierTheme,
StringifierIF stringifierSelectedTheme)
Generate a ordered list of theme classes. |
java.lang.String |
generateThemeList(java.util.HashMap themeClassMap,
java.util.Collection selectedThemes,
java.lang.String templThemeClass,
java.lang.String templTheme,
java.lang.String templSelectedTheme)
Generate a ordered list of theme classes. |
java.lang.String |
generateThemeList(java.util.HashMap themeClassMap,
StringifierIF stringifierThemeClass,
StringifierIF stringifierTheme)
Generate a ordered list of theme classes. |
java.util.HashMap |
getThemeClasses(java.util.Collection themes)
process themes and generate HashMap which
reflects theme categories. |
StringifierIF |
getTopicStringifier()
INTERNAL: Returns the internal stringifier used to stringify topics correctly in the current context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String STRING_NO_CLASS
protected StringifierIF stringifier
protected java.util.Comparator lexicalComparator
protected java.util.Comparator topicComparator
Constructor Detail |
---|
public ThemeCategorizer(TopicMapIF tm, java.util.Collection context)
Method Detail |
---|
public StringifierIF getTopicStringifier()
public java.util.HashMap getThemeClasses(java.util.Collection themes)
themes
and generate HashMap which
reflects theme categories.
public java.lang.String generateThemeList(java.util.HashMap themeClassMap, StringifierIF stringifierThemeClass, StringifierIF stringifierTheme)
public java.lang.String generateThemeList(java.util.HashMap themeClassMap, java.util.Collection selectedThemes, StringifierIF stringifierThemeClass, StringifierIF stringifierTheme, StringifierIF stringifierSelectedTheme)
stringifierSelectedTheme
.
Note: In every theme class there are at least one theme.
public java.lang.String generateThemeList(java.util.HashMap themeClassMap, java.util.Collection selectedThemes, java.lang.String templThemeClass, java.lang.String templTheme, java.lang.String templSelectedTheme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |