net.ontopia.topicmaps.utils
Class TypedIFStringifier
java.lang.Object
net.ontopia.topicmaps.utils.TypedIFStringifier
- All Implemented Interfaces:
- StringifierIF
public class TypedIFStringifier
- extends 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.
Method Summary |
String |
toString(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 |
grabber
protected GrabberIF grabber
topic_stringifier
protected StringifierIF topic_stringifier
TypedIFStringifier
public TypedIFStringifier(StringifierIF topic_stringifier)
toString
public String toString(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.