net.ontopia.utils
Class StringifierGrabber<T>

java.lang.Object
  extended by net.ontopia.utils.StringifierGrabber<T>
All Implemented Interfaces:
GrabberIF<T,String>

public class StringifierGrabber<T>
extends Object
implements GrabberIF<T,String>

INTERNAL: Grabber that grabs a stringified version of the object given to it.


Field Summary
protected  StringifierIF<T> stringifier
           
 
Constructor Summary
StringifierGrabber()
           
StringifierGrabber(StringifierIF<T> stringifier)
           
 
Method Summary
 StringifierIF<T> getStringifier()
          Gets the stringifier which is to be used.
 String grab(T object)
          Returns an object that is somehow extracted from the given object.
 void setStringifier(StringifierIF<T> stringifier)
          Sets the stringifier which is to be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringifier

protected StringifierIF<T> stringifier
Constructor Detail

StringifierGrabber

public StringifierGrabber()

StringifierGrabber

public StringifierGrabber(StringifierIF<T> stringifier)
Method Detail

getStringifier

public StringifierIF<T> getStringifier()
Gets the stringifier which is to be used.


setStringifier

public void setStringifier(StringifierIF<T> stringifier)
Sets the stringifier which is to be used.


grab

public String grab(T object)
Description copied from interface: GrabberIF
Returns an object that is somehow extracted from the given object.

Specified by:
grab in interface GrabberIF<T,String>


Copyright © 2000-2012 Ontopia.