|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.utils.TopicVariantNameGrabber
public class TopicVariantNameGrabber
INTERNAL: Grabber that grabs the most highest ranked variant name by scope from a topic, ignoring the scope of the base names.
The grabber uses a ScopedIFComparator internally to rank all the variant names of the given topic. If the topic has no applicable variant names, null is returned.
| Field Summary | |
|---|---|
protected Comparator |
comparator
PROTECTED: The comparator used to sort the variant names. |
| Constructor Summary | |
|---|---|
TopicVariantNameGrabber(Collection scope)
INTERNAL: Creates a grabber. |
|
TopicVariantNameGrabber(Comparator comparator)
INTERNAL: Creates a grabber which uses the given comparator. |
|
| Method Summary | |
|---|---|
Object |
grab(Object topic)
INTERNAL: Grabs the most appropriate variant name for the given topic name, using the comparator established at creation to compare available variant names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Comparator comparator
| Constructor Detail |
|---|
public TopicVariantNameGrabber(Collection scope)
scope - A scope; a collection of TopicIF objects.public TopicVariantNameGrabber(Comparator comparator)
comparator - The given comparator| Method Detail |
|---|
public Object grab(Object topic)
grab in interface GrabberIFtopic - an object, but must implement TopicIF
throws - OntopiaRuntimeException if the given topic
is not a TopicIF object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||