net.ontopia.topicmaps.nav2.impl.basic
Class CustomNameStringifier

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.impl.basic.CustomNameStringifier
All Implemented Interfaces:
StringifierIF

public class CustomNameStringifier
extends java.lang.Object
implements StringifierIF

INTERNAL: Stringifier that stringifies TopicNameIFs and VariantNameIFs by calling their getValue() method. In addition it can be specified which strings to use for the different fail-situations:


Field Summary
protected  java.lang.String stringNonExistent
           
protected  java.lang.String stringValueEmpty
           
protected  java.lang.String stringValueNull
           
 
Constructor Summary
CustomNameStringifier()
           
 
Method Summary
 java.lang.String getStringNonExistent()
           
 java.lang.String getStringValueEmpty()
           
 java.lang.String getStringValueNull()
           
 void setStringNonExistent(java.lang.String stringNonExistent)
           
 void setStringValueEmpty(java.lang.String stringValueEmpty)
           
 void setStringValueNull(java.lang.String stringValueNull)
           
 java.lang.String toString(java.lang.Object name)
          INTERNAL: Stringifies the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringNonExistent

protected java.lang.String stringNonExistent

stringValueNull

protected java.lang.String stringValueNull

stringValueEmpty

protected java.lang.String stringValueEmpty
Constructor Detail

CustomNameStringifier

public CustomNameStringifier()
Method Detail

toString

public java.lang.String toString(java.lang.Object name)
INTERNAL: Stringifies the given name.

Specified by:
toString in interface StringifierIF
Parameters:
name - object, cast to TopicNameIF or VariantNameIF internally; the given name
Returns:
string containing name value or "[No name]"

setStringNonExistent

public void setStringNonExistent(java.lang.String stringNonExistent)

getStringNonExistent

public java.lang.String getStringNonExistent()

setStringValueNull

public void setStringValueNull(java.lang.String stringValueNull)

getStringValueNull

public java.lang.String getStringValueNull()

setStringValueEmpty

public void setStringValueEmpty(java.lang.String stringValueEmpty)

getStringValueEmpty

public java.lang.String getStringValueEmpty()


Copyright © 2000-2012 Ontopia.