|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.utils.VariantNameGrabber
public class VariantNameGrabber
INTERNAL: Grabber that grabs the most highest ranked variant name by scope from a basename.
The grabber uses a ScopedIFComparator internally to rank the variant names of the given basename. If the basename has no applicable variant names, null is returned.
| Field Summary | |
|---|---|
protected java.util.Comparator |
comparator
PROTECTED: The comparator used to sort the variant names. |
| Constructor Summary | |
|---|---|
VariantNameGrabber(java.util.Collection scope)
INTERNAL: Creates a grabber; makes the comparator a ScopedIFComparator for the given scope. |
|
VariantNameGrabber(java.util.Comparator comparator)
INTERNAL: Creates a grabber which uses the given comparator. |
|
| Method Summary | |
|---|---|
java.lang.Object |
grab(java.lang.Object basename)
INTERNAL: Grabs the most appropriate variant name for the given base 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 java.util.Comparator comparator
| Constructor Detail |
|---|
public VariantNameGrabber(java.util.Collection scope)
scope - A scope; a collection of TopicIF objects.public VariantNameGrabber(java.util.Comparator comparator)
comparator - The given comparator| Method Detail |
|---|
public java.lang.Object grab(java.lang.Object basename)
grab in interface GrabberIFbasename - an object, but must implement TopicNameIF.
throws - OntopiaRuntimeException if the given base name
is not a TopicNameIF object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||