net.ontopia.topicmaps.utils
Class TypedIFStringifier

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

public class TypedIFStringifier
extends java.lang.Object
implements StringifierIF

INTERNAL: Stringifier that generates a string representation of the type property of the object given to it.

This stringifier uses a TypedIFGrabber internally to grab the object's type property. Instances of this class can be configured with a stringifier used to stringify the resulting topic.


Field Summary
protected  GrabberIF grabber
           
protected  StringifierIF topic_stringifier
           
 
Constructor Summary
TypedIFStringifier(StringifierIF topic_stringifier)
           
 
Method Summary
 java.lang.String toString(java.lang.Object typed)
          Returns a string representation of the type property of the typed object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grabber

protected GrabberIF grabber

topic_stringifier

protected StringifierIF topic_stringifier
Constructor Detail

TypedIFStringifier

public TypedIFStringifier(StringifierIF topic_stringifier)
Method Detail

toString

public java.lang.String toString(java.lang.Object typed)
Returns a string representation of the type property of the typed object.

Specified by:
toString in interface StringifierIF
Parameters:
typed - An object implementing TypedIF.
Returns:
The string that results from applying the configured stringifier to the type extracted from the typed object.


Copyright © 2000-2012 Ontopia.