Package net.ontopia.topicmaps.utils
Class TopicCharacteristicGrabbers
- java.lang.Object
-
- net.ontopia.topicmaps.utils.TopicCharacteristicGrabbers
-
public class TopicCharacteristicGrabbers extends Object
INTERNAL: A convenience class for creating grabbers that grab specific topic characteristics, using various criteria, including scope.- Since:
- 1.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Function<TopicIF,NameIF>
getDisplayNameGrabber()
INTERNAL: Returns a grabber that will grab the name most suitable for display from a topic.static Function<TopicIF,NameIF>
getSortNameGrabber()
INTERNAL: Returns a grabber that will grab the name most suitable for sorting from a topic.
-
-
-
Method Detail
-
getDisplayNameGrabber
public static Function<TopicIF,NameIF> getDisplayNameGrabber()
INTERNAL: Returns a grabber that will grab the name most suitable for display from a topic. If the topic has a display name that name will be chosen. If not, the base name in the least constrained scope will be chosen.- Returns:
- A TopicNameIF or VariantNameIF object; null if the topic has no base names.
-
getSortNameGrabber
public static Function<TopicIF,NameIF> getSortNameGrabber()
INTERNAL: Returns a grabber that will grab the name most suitable for sorting from a topic. If the topic has a sort name that name will be chosen. If not, the base name in the least constrained scope will be chosen.- Returns:
- A TopicNameIF or VariantNameIF object; null if the topic has no base names.
-
-