|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.formatter.NameableFormatter
public class NameableFormatter
Formatter to handle Nameable
items.
Field Summary | |
---|---|
private String |
nullValue
|
Constructor Summary | |
---|---|
NameableFormatter()
Create a new formatter. |
|
NameableFormatter(String nullValue)
Create a new formatter. |
Method Summary | |
---|---|
String |
format(Nameable nameableItem)
Format a value by converting it to a string. |
Nameable |
parseString(String value)
Parse a string and return a value of the correct type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String nullValue
Constructor Detail |
---|
public NameableFormatter()
public NameableFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(Nameable)
Method Detail |
---|
public String format(Nameable nameableItem)
Formatter
format
in interface Formatter<Nameable>
nameableItem
- The value to format
public Nameable parseString(String value)
Formatter
parseString
in interface Formatter<Nameable>
value
- The string to parse
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |