|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.ui.framework.java.DataFormatter
public class DataFormatter extends Object
The base class for objects which format data that is exchanged between
DataBean
s and user interface components. DataFormatter
defines the programming interface for formatting data for presentation
(the format
method) and for parsing user data into a form
suitable for use by DataBean
s (the parse
method).
If parsing is unsuccessful, an IllegalUserDataException
is thrown.
The base class implementations of format
and parse
merely return their arguments with leading and trailing blanks removed.
DataBean
,
IllegalUserDataException
Constructor and Description |
---|
DataFormatter()
Constructs a DataFormatter . |
Modifier and Type | Method and Description |
---|---|
String |
format(Object obj)
Formats an object to produce a string. |
Object |
parse(String source)
Parses a string to produce an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataFormatter()
DataFormatter
.
Method Detail |
---|
public String format(Object obj)
obj
- the object to formatpublic Object parse(String source) throws IllegalArgumentException
source
- the string to be parsedIllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |