net.ontopia.topicmaps.nav2.impl.basic
Class CustomNameStringifier
java.lang.Object
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:
- the object is null (no base name/variant name existent)
- the value is null (null base name/variant name)
- the value is empty (empty string base name/variant name)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringNonExistent
protected java.lang.String stringNonExistent
stringValueNull
protected java.lang.String stringValueNull
stringValueEmpty
protected java.lang.String stringValueEmpty
CustomNameStringifier
public CustomNameStringifier()
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.