public class TopicStringifiers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TopicStringifiers.FastSortNameStringifier |
Modifier and Type | Method and Description |
---|---|
static Function<TopicIF,String> |
getDefaultStringifier()
PUBLIC: Gets a stringifier that will return a default name for each
topic it is applied to.
|
static Function<TopicIF,String> |
getFastSortNameStringifier(TopicMapIF tm)
PUBLIC: Gets a fast stringifier that will return the sort names
of topics, when they have one.
|
static Function<TopicIF,String> |
getSortNameStringifier()
PUBLIC: Gets a stringifier that will return the sort names of
topics, when they have one.
|
static Function<TopicIF,String> |
getStringifier(Collection<TopicIF> tnscope,
Collection<TopicIF> vnscope)
PUBLIC: Gets a stringifier that will return the name it
determines matches the given scopes best.
|
static Function<TopicIF,String> |
getTopicNameStringifier(Collection<TopicIF> scope)
PUBLIC: Gets a stringifier that will return the topic name it
determines to match the given scope best.
|
static Function<TopicIF,String> |
getVariantNameStringifier(Collection<TopicIF> scope)
PUBLIC: Gets a stringifier that will return
the variant that it determines to match the given scope
best.
|
static String |
toString(TopicIF topic)
PUBLIC: Returns the default name of the topic.
|
static String |
toString(TopicIF topic,
Collection<TopicIF> tnscope)
PUBLIC: Returns the name of the topic given the specified
topic name theme.
|
static String |
toString(TopicIF topic,
Collection<TopicIF> tnscope,
Collection<TopicIF> vnscope)
PUBLIC: Returns the name of the topic given the specified
topic name and variant name themes.
|
static String |
toString(TopicIF topic,
Collection<TopicIF> tnscope,
TopicIF vntheme)
PUBLIC: Returns the name of the topic given the specified
topic name and variant name themes.
|
static String |
toString(TopicIF topic,
TopicIF tntheme)
PUBLIC: Returns the name of the topic given the specified
topic name theme.
|
static String |
toString(TopicIF topic,
TopicIF tntheme,
TopicIF vntheme)
PUBLIC: Returns the name of the topic given the specified
topic name and variant name themes.
|
public static Function<TopicIF,String> getDefaultStringifier()
public static Function<TopicIF,String> getTopicNameStringifier(Collection<TopicIF> scope)
scope
- collection of TopicIF objects; the given scopepublic static Function<TopicIF,String> getVariantNameStringifier(Collection<TopicIF> scope)
scope
- collection of TopicIF objects; the given scopepublic static Function<TopicIF,String> getSortNameStringifier()
public static Function<TopicIF,String> getFastSortNameStringifier(TopicMapIF tm)
public static Function<TopicIF,String> getStringifier(Collection<TopicIF> tnscope, Collection<TopicIF> vnscope)
tnscope
- collection of TopicIF objects; the scope applied to
topic namesvnscope
- collection of TopicIF objects; the scope applied to
variant namespublic static String toString(TopicIF topic)
public static String toString(TopicIF topic, TopicIF tntheme)
public static String toString(TopicIF topic, Collection<TopicIF> tnscope)
public static String toString(TopicIF topic, TopicIF tntheme, TopicIF vntheme)
public static String toString(TopicIF topic, Collection<TopicIF> tnscope, TopicIF vntheme)
public static String toString(TopicIF topic, Collection<TopicIF> tnscope, Collection<TopicIF> vnscope)