All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.ui.util.AS400CnameIBMFormatter

java.lang.Object
   |
   +----com.ibm.as400.ui.framework.java.DataFormatter
           |
           +----com.ibm.as400.ui.util.AS400Formatter
                   |
                   +----com.ibm.as400.ui.util.AS400CnameIBMFormatter

public class AS400CnameIBMFormatter
extends AS400Formatter
Checks validity of a string as an AS/400 *CNAME for IBM commands. Checks using the CCSID of the AS/400 specified in the constructor. If parsing is unsuccessful, an IllegalUserDataException is thrown.

An AS/400 *CNAME is also known as a Communications Name. A valid Communications Name is:

*CNAME is the same as *SNAME except '_' is not allowed. *CNAME is the same as *NAME except quoted values, '_' and '.' are not allowed. AS400CnameIBMFormatter is the same as AS400CnameFormatter, but limited to 10 characters.

See Also:
IllegalUserDataException, AS400NameFormatter, AS400SnameFormatter, AS400CnameFormatter

Constructor Index

 o AS400CnameIBMFormatter(AS400)
Constructs an AS400CnameIBMFormatter.

Method Index

 o parse(String)
Parses and checks a string as a valid AS/400 *CNAME for IBM commands.

Constructors

 o AS400CnameIBMFormatter
 public AS400CnameIBMFormatter(AS400 systemObject)
Constructs an AS400CnameIBMFormatter. 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:
systemObject - an AS400 object.

Methods

 o parse
 public Object parse(String source) throws IllegalUserDataException
Parses and checks a string as a valid AS/400 *CNAME for IBM commands. If the string is not valid an IllegalUserDataException is thrown.

Parameters:
source - the string to be parsed
Returns:
the valid checked result
Overrides:
parse in class DataFormatter

All Packages  Class Hierarchy  This Package  Previous  Next  Index