net.ontopia.topicmaps.utils
Class BaseNameGrabber

java.lang.Object
  extended by net.ontopia.topicmaps.utils.BaseNameGrabber
All Implemented Interfaces:
GrabberIF

Deprecated. use TopicNameGrabber instead.

public class BaseNameGrabber
extends java.lang.Object
implements GrabberIF

DEPRECATED: Grabber that grabs the most appropriate basename from a topic.


Field Summary
protected  java.util.Comparator comparator
          Deprecated. PROTECTED: The comparator used to sort the base names.
 
Constructor Summary
BaseNameGrabber(java.util.Collection scope)
          Deprecated. INTERNAL: Creates a grabber; uses a BaseComparator with the given scope.
BaseNameGrabber(java.util.Comparator comparator)
          Deprecated. INTERNAL: Creates a grabber which uses the given comparator.
 
Method Summary
 java.lang.Object grab(java.lang.Object topic)
          Deprecated. 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

comparator

protected java.util.Comparator comparator
Deprecated. 
PROTECTED: The comparator used to sort the base names.

Constructor Detail

BaseNameGrabber

public BaseNameGrabber(java.util.Collection scope)
Deprecated. 
INTERNAL: Creates a grabber; uses a BaseComparator with the given scope.

Parameters:
scope - A scope; a collection of TopicIF objects.

BaseNameGrabber

public BaseNameGrabber(java.util.Comparator comparator)
Deprecated. 
INTERNAL: Creates a grabber which uses the given comparator.

Parameters:
comparator - The given comparator
Method Detail

grab

public java.lang.Object grab(java.lang.Object topic)
Deprecated. 
INTERNAL: Grabs the most appropriate base name for the given topic, using the comparator established at creation to compare available base names.

Specified by:
grab in interface GrabberIF
Parameters:
topic - A topic; formally an Object, but must implement TopicIF.
Throws:
throws - OntopiaRuntimeException if the given topic is not a TopicIF object.


Copyright © 2000-2012 Ontopia.