|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.utils.TopicNameGrabber
public class TopicNameGrabber
INTERNAL: Grabber that grabs the most appropriate basename from a topic.
| Field Summary | |
|---|---|
protected java.util.Comparator |
comparator
PROTECTED: The comparator used to sort the base names. |
| Constructor Summary | |
|---|---|
TopicNameGrabber(java.util.Collection scope)
INTERNAL: Creates a grabber; uses a BaseComparator with the given scope. |
|
TopicNameGrabber(java.util.Comparator comparator)
INTERNAL: Creates a grabber which uses the given comparator. |
|
| Method Summary | |
|---|---|
java.lang.Object |
grab(java.lang.Object topic)
INTERNAL: Grabs the most appropriate base name for the given topic, using the comparator established at creation to compare available base 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 TopicNameGrabber(java.util.Collection scope)
scope - A scope; a collection of TopicIF objects.public TopicNameGrabber(java.util.Comparator comparator)
comparator - The given comparator| Method Detail |
|---|
public java.lang.Object grab(java.lang.Object topic)
grab in interface GrabberIFtopic - A topic; formally 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 | |||||||||