com.ibm.as400.ui.util
Class AS400CharFormatter
java.lang.Object
com.ibm.as400.ui.framework.java.DataFormatter
com.ibm.as400.ui.util.AS400Formatter
com.ibm.as400.ui.util.AS400CharFormatter
public class AS400CharFormatter
extends AS400Formatter
Checks validity of a string as an AS/400 *CHAR identifier.
A valid AS/400 Char string is:
- 1 to 256 characters
- all characters 'A'-'Z', '0'-'9', '$', '#', '@', '_'
A valid AS/400 Char string in quoted form:
- 1 to 256 characters including quotes
- starts and ends with ' (single quote)
- All characters valid except: EBCDIC x00 - x3F, xFF.
- '*', '?', " (double quote), ' (single quote), ' ' (blank) are allowed.
- Since:
- v4r2m0
- Version:
- 1.0, 06/01/98
- Author:
- B. Cragun
- See Also:
IllegalUserDataException,
AS400NameFormatter,
AS400SnameFormatter,
AS400CnameFormatter
Method Summary
Object |
parse(String source)
Parses and checks a string as a valid AS/400 Char string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AS400CharFormatter
public AS400CharFormatter(AS400 system)
- Constructs an
AS400CharFormatter.
The CCSID of the input AS400 object will be used for checking.
If a null AS400 object is used, 37 is used as a default CCSID.
- Parameters:
system - an AS400 object.- Since:
- v4r2m0
parse
public Object parse(String source)
throws IllegalUserDataException
- Parses and checks a string as a valid AS/400 Char string.
If the string is not valid an
IllegalUserDataException is thrown.
- Overrides:
parse in class DataFormatter
- Parameters:
source - the string to be parsed
- Returns:
- the valid checked result
- Throws:
IllegalUserDataException- Since:
- v4r2m0