|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.ui.framework.java.DataFormatter
com.ibm.as400.ui.util.AS400Formatter
public abstract class AS400Formatter extends DataFormatter
This abstract class provides common function for the AS/400 Formatter classes. AS/400 Formatters check strings to assure they meet common AS/400 naming standards.
Asterisk "*" wild cards are not allowed by default, but may be allowed by using setWildCardMode.
IllegalUserDataException,
AS400NameFormatter,
AS400SnameFormatter,
AS400CnameFormatter,
AS400CharFormatter,
AS400SQLNameFormatter,
AS400SQLNameColumnFormatter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_EMBEDDED_WILD_CARDS
Mode value indicating the that the formatter is to allow wild cards wherever and as often as they occur. |
static int |
ALLOW_TRAILING_WILD_CARD
Mode value indicating the that the formatter is only to allow wild cards at the end of the formatted string. |
static int |
IBM_OBJECT_NAME_MAX_LENGTH
Length constant representing the maximum length, 10, for IBM object names on the AS/400. |
static int |
NO_WILD_CARDS
Mode value indicating the that the formatter is not to allow wild cards. |
static int |
STANDARD_OBJECT_NAME_MAX_LENGTH
Length constant representing the maximum length, 256, for standard object names on the AS/400. |
| Constructor and Description |
|---|
AS400Formatter(AS400 system)
Constructs an AS400Formatter. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCCSID()
Returns the current CCSID value. |
int |
getWildCardMode()
Gets the Wild Card allowance used during checking. |
protected boolean |
isAllowedWildCard(byte byteIn,
boolean bLastChar)
Common service for subclasses that determines if a byte is valid as a wild card. |
protected boolean |
isValidEbcdicAlpha(byte byteIn,
int iCCSID)
Common service for subclasses which determines if a byte is a valid EBCDIC character. |
void |
setCCSID(int iCCSID)
Sets the current CCSID value to be used for checking. |
void |
setWildCardMode(int wildCardMode)
Specifies whether Wild Cards should be allowed in checking. |
| Methods inherited from class com.ibm.as400.ui.framework.java.DataFormatter |
|---|
format, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IBM_OBJECT_NAME_MAX_LENGTH
setMaxLength.
STANDARD_OBJECT_NAME_MAX_LENGTH,
Constant Field Valuespublic static final int STANDARD_OBJECT_NAME_MAX_LENGTH
setMaxLength.
IBM_OBJECT_NAME_MAX_LENGTH,
Constant Field Valuespublic static final int NO_WILD_CARDS
ALLOW_TRAILING_WILD_CARD,
ALLOW_EMBEDDED_WILD_CARDS,
Constant Field Valuespublic static final int ALLOW_TRAILING_WILD_CARD
NO_WILD_CARDS,
ALLOW_EMBEDDED_WILD_CARDS,
Constant Field Valuespublic static final int ALLOW_EMBEDDED_WILD_CARDS
NO_WILD_CARDS,
ALLOW_TRAILING_WILD_CARD,
Constant Field Values| Constructor Detail |
|---|
public AS400Formatter(AS400 system)
AS400Formatter.
The CCSID of the input AS400 object is used for checking, unless
the CCSID is specifically set by setCCSID.
If a null AS400 object is used, 37 is used as a default CCSID.
system - the AS400 system object used for checking.| Method Detail |
|---|
protected boolean isValidEbcdicAlpha(byte byteIn,
int iCCSID)
byteIn - the byte to check.iCCSID - the CCSID to use for checking.public int getCCSID()
public void setCCSID(int iCCSID)
iCCSID - the current CCSID value.
public void setWildCardMode(int wildCardMode)
throws IllegalArgumentException
wildCardMode - the mode.IllegalArgumentExceptionNO_WILD_CARDS,
ALLOW_TRAILING_WILD_CARD,
ALLOW_EMBEDDED_WILD_CARDSpublic int getWildCardMode()
NO_WILD_CARDS,
ALLOW_TRAILING_WILD_CARD,
ALLOW_EMBEDDED_WILD_CARDS
protected boolean isAllowedWildCard(byte byteIn,
boolean bLastChar)
byteIn - the byte to check.bLastChar - true if the byte is to be checked as the last character.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||