public class TopicStringifierToVariant extends java.lang.Object implements TopicStringifier
Modifier and Type | Field and Description |
---|---|
private java.util.Set |
scope |
Constructor and Description |
---|
TopicStringifierToVariant() |
TopicStringifierToVariant(java.util.Set s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Description is a text that describes the TopicStringifier.
|
javax.swing.Icon |
getIcon()
Method returns an icon shown in Wandora UI as a mark of the
TopicStringifier.
|
boolean |
initialize(Wandora wandora,
Context context)
Initialization method is called before a TopicStringifier is actually used.
|
void |
stringIntoTopic(java.lang.String oldString,
java.lang.String newString,
Topic t)
Sometimes topic viewer may support string editing feature.
|
boolean |
supportsStringIntoTopic()
If topic viewer supports string editing feature and Wandora can push the
string back into the topic, this method should return true.
|
java.lang.String |
toString(Topic t)
toString method is the actual endpoint used to create a string out of a
topic.
|
public TopicStringifierToVariant()
public TopicStringifierToVariant(java.util.Set s)
public boolean initialize(Wandora wandora, Context context)
TopicStringifier
initialize
in interface TopicStringifier
public java.lang.String getDescription()
TopicStringifier
getDescription
in interface TopicStringifier
public javax.swing.Icon getIcon()
TopicStringifier
getIcon
in interface TopicStringifier
public java.lang.String toString(Topic t)
TopicStringifier
toString
in interface TopicStringifier
public boolean supportsStringIntoTopic()
TopicStringifier
supportsStringIntoTopic
in interface TopicStringifier
public void stringIntoTopic(java.lang.String oldString, java.lang.String newString, Topic t) throws TopicMapException
TopicStringifier
stringIntoTopic
in interface TopicStringifier
TopicMapException
Copyright 2004-2015 Wandora Team