|
||||||||||
| 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 Comparator |
comparator
PROTECTED: The comparator used to sort the base names. |
| Constructor Summary | |
|---|---|
TopicNameGrabber(Collection scope)
INTERNAL: Creates a grabber; uses a BaseComparator with the given scope. |
|
TopicNameGrabber(Comparator comparator)
INTERNAL: Creates a grabber which uses the given comparator. |
|
| Method Summary | |
|---|---|
Object |
grab(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 Comparator comparator
| Constructor Detail |
|---|
public TopicNameGrabber(Collection scope)
scope - A scope; a collection of TopicIF objects.public TopicNameGrabber(Comparator comparator)
comparator - The given comparator| Method Detail |
|---|
public Object grab(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 | |||||||||