net.ontopia.utils
Class GrabberStringifier

java.lang.Object
  extended by net.ontopia.utils.GrabberStringifier
All Implemented Interfaces:
StringifierIF

public class GrabberStringifier
extends java.lang.Object
implements StringifierIF

INTERNAL: Stringifies the object that the grabber grabs. DefaultStringifier will be used if no nested stringifier is specified.


Field Summary
protected  GrabberIF<java.lang.Object,java.lang.Object> grabber
           
protected  StringifierIF stringifier
           
 
Constructor Summary
GrabberStringifier(GrabberIF<java.lang.Object,java.lang.Object> grabber)
           
GrabberStringifier(GrabberIF<java.lang.Object,java.lang.Object> grabber, StringifierIF stringifier)
           
 
Method Summary
 void setGrabber(GrabberIF<java.lang.Object,java.lang.Object> grabber)
          Set the grabber which is to be used.
 void setStringifier(StringifierIF stringifier)
          Set the stringifier which is to be used.
 java.lang.String toString(java.lang.Object object)
          Returns a stringified version of the object, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grabber

protected GrabberIF<java.lang.Object,java.lang.Object> grabber

stringifier

protected StringifierIF stringifier
Constructor Detail

GrabberStringifier

public GrabberStringifier(GrabberIF<java.lang.Object,java.lang.Object> grabber)

GrabberStringifier

public GrabberStringifier(GrabberIF<java.lang.Object,java.lang.Object> grabber,
                          StringifierIF stringifier)
Method Detail

setGrabber

public void setGrabber(GrabberIF<java.lang.Object,java.lang.Object> grabber)
Set the grabber which is to be used.


setStringifier

public void setStringifier(StringifierIF stringifier)
Set the stringifier which is to be used.


toString

public java.lang.String toString(java.lang.Object object)
Description copied from interface: StringifierIF
Returns a stringified version of the object, i.e. a string representation of that object.

Specified by:
toString in interface StringifierIF
Parameters:
object - the object that is to be made a string representation of.
Returns:
a string representation of the object argument.


Copyright © 2000-2012 Ontopia.