com.ibm.as400.ui.util
Class AS400SnameIBMFormatter

java.lang.Object
  extended by com.ibm.as400.ui.framework.java.DataFormatter
      extended by com.ibm.as400.ui.util.AS400Formatter
          extended by com.ibm.as400.ui.util.AS400SnameIBMFormatter

Deprecated. Use the AS400SnameFormatter class with setMaxLength of AS400Formatter.IBM_OBJECT_NAME_MAX_LENGTH.

public class AS400SnameIBMFormatter
extends AS400Formatter

Checks validity of a string as an AS/400 *SNAME 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 *SNAME is also known as a Simple Name. A valid Simple Name for IBM objects is:

*SNAME is the same as *NAME except quoted values and '.' are not allowed. AS400SnameIBMFormatter is the same as AS400SnameFormatter, but limited to 10 characters.

Since:
v4r2m0
Version:
1.0, 06/01/98
Author:
B. Cragun
See Also:
AS400SnameFormatter, IllegalUserDataException

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class com.ibm.as400.ui.util.AS400Formatter
ALLOW_EMBEDDED_WILD_CARDS, ALLOW_TRAILING_WILD_CARD, IBM_OBJECT_NAME_MAX_LENGTH, NO_WILD_CARDS, STANDARD_OBJECT_NAME_MAX_LENGTH
 
Constructor Summary
Constructor and Description
AS400SnameIBMFormatter(AS400 systemObject)
          Deprecated.  
 
Method Summary
Modifier and Type Method and Description
 Object parse(String source)
          Deprecated. Parses a string to produce an object.
 
Methods inherited from class com.ibm.as400.ui.util.AS400Formatter
getCCSID, getWildCardMode, isAllowedWildCard, isValidEbcdicAlpha, setCCSID, setWildCardMode
 
Methods inherited from class com.ibm.as400.ui.framework.java.DataFormatter
format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AS400SnameIBMFormatter

public AS400SnameIBMFormatter(AS400 systemObject)
Deprecated. 
Method Detail

parse

public Object parse(String source)
             throws IllegalUserDataException
Deprecated. 
Description copied from class: DataFormatter
Parses a string to produce an object.

Overrides:
parse in class DataFormatter
Parameters:
source - the string to be parsed
Returns:
the object obtained by parsing the string
Throws:
IllegalUserDataException