com.ibm.as400.ui.util
Class AS400NameIBMFormatter
java.lang.Object
|
+--com.ibm.as400.ui.framework.java.DataFormatter
|
+--com.ibm.as400.ui.util.AS400Formatter
|
+--com.ibm.as400.ui.util.AS400NameIBMFormatter
Deprecated. Use the AS400NameFormatter
class with setMaxLength
of AS400Formatter.IBM_OBJECT_NAME_MAX_LENGTH
.
- public class AS400NameIBMFormatter
- extends AS400Formatter
Checks validity of a string as an AS/400 *NAME
for IBM objects.
Checks using the CCSID of the AS/400 specified in the constructor.
If parsing is unsuccessful, an IllegalUserDataException
is thrown.
An AS/400 *NAME
,
is also known as a Basic Name or Basic Name in Quoted Form.
A valid Basic Name is:
- 1 to 256 characters
- first character 'A'-'Z', '$', '#', '@'
- other characters 'A'-'Z', '0'-'9', '$', '#', '@', '.', '_'
A valid Basic Name in Quoted Form:
- starts and ends with " (double quote)
- All characters valid except: EBCDIC x00 - x3F, xFF,
'*', '?', " (double quote), ' (single quote), ' ' (blank)
AS400NameIBMFormatter
is the same as AS400NameFormatter
,
but limited to 10 characters.
- Since:
- v4r2m0
- See Also:
AS400NameFormatter
,
IllegalUserDataException
Method Summary |
java.lang.Object |
parse(java.lang.String source)
Deprecated. Parses and checks a string as a valid AS/400 *NAME . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AS400NameIBMFormatter
public AS400NameIBMFormatter(AS400 system)
- Deprecated.
- Constructs an
AS400NameIBMFormatter
.
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 java.lang.Object parse(java.lang.String source)
throws IllegalUserDataException
- Deprecated.
- Parses and checks a string as a valid AS/400
*NAME
.
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
- Since:
- v4r2m0