net.ontopia.utils
Class CollectionStringifier
java.lang.Object
net.ontopia.utils.CollectionStringifier
- All Implemented Interfaces:
- StringifierIF
public class CollectionStringifier
- extends java.lang.Object
- implements StringifierIF
INTERNAL: Stringifier that stringifies collections. A comparator can
be used to order the objects in the collection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comparator
protected java.util.Comparator comparator
stringifier
protected StringifierIF stringifier
item_prefix
protected java.lang.String item_prefix
item_suffix
protected java.lang.String item_suffix
list_prefix
protected java.lang.String list_prefix
list_suffix
protected java.lang.String list_suffix
CollectionStringifier
public CollectionStringifier(StringifierIF stringifier)
CollectionStringifier
public CollectionStringifier(StringifierIF stringifier,
java.util.Comparator comparator)
getItemPrefix
public java.lang.String getItemPrefix()
setItemPrefix
public void setItemPrefix(java.lang.String prefix)
getItemSuffix
public java.lang.String getItemSuffix()
setItemSuffix
public void setItemSuffix(java.lang.String suffix)
getListPrefix
public java.lang.String getListPrefix()
setListPrefix
public void setListPrefix(java.lang.String prefix)
getListSuffix
public java.lang.String getListSuffix()
setListSuffix
public void setListSuffix(java.lang.String suffix)
toString
public java.lang.String toString(java.lang.Object objects)
- Description copied from interface:
StringifierIF
- Returns a stringified version of the object, i.e. a string
representation of that object.
- Specified by:
toString
in interface StringifierIF
- Parameters:
objects
- the object that is to be made a string
representation of.
- Returns:
- a string representation of the
object
argument.
Copyright © 2000-2012 Ontopia.