|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pfsw.text.DefaultStringConverter<T>
public class DefaultStringConverter<T>
Default string converter for any object. It uses method asString() if
the object is an IStringRepresentation, otherwise toString().
| Constructor Summary | |
|---|---|
DefaultStringConverter()
|
|
| Method Summary | ||
|---|---|---|
java.lang.String |
convert(T object)
Returns the string representation of the given object. |
|
static
|
create()
Returns a new instance of this class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStringConverter()
| Method Detail |
|---|
public static <V> DefaultStringConverter<V> create()
public java.lang.String convert(T object)
asString() if the object is an IStringRepresentation,
otherwise toString().
A null input will return null, too.
convert in interface org.pfsw.bif.conversion.IObjectConverter<T,java.lang.String>convert in interface org.pfsw.bif.conversion.IStringConverter<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||