|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.util.clprompter.ClSyntax
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
ClSyntax()
|
Method Summary | |
---|---|
static boolean |
checkDelimiter(String text,
com.ibm.etools.iseries.core.util.clprompter.ClPanel panel,
int type,
boolean showError)
This method is used to verify if there are any delimiters in literals. |
static boolean |
checkExpression(com.ibm.etools.iseries.core.util.clprompter.ClPanel panel,
com.ibm.etools.iseries.core.util.clprompter.ClCommonLayout cl,
String kwd,
String text,
boolean showError)
Checks an expression for error conditions. |
static void |
cleanup()
|
static String |
getSpecialChars()
|
static int |
indexNotInQuote(String textToSearch,
String item)
Searches for the location of the item, so long as it is not in single or double quotes |
static int |
indexNotInQuoteOrBracket(String textToSearch,
String item)
Searches for the specified item in textToSearch, ignoring items in brackets, single or double quotes |
static String |
quote(int type,
String string)
|
static String |
stripOuterBrackets(String value)
Strips the outer brackets of a string |
static String |
trim(String text)
Trims whitespace from the start and end of a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public ClSyntax()
Method Detail |
public static void cleanup()
public static final String quote(int type, String string) throws com.ibm.etools.systems.core.messages.SystemMessageException
com.ibm.etools.systems.core.messages.SystemMessageException
public static String getSpecialChars()
public static int indexNotInQuote(String textToSearch, String item)
textToSearch
- the string to scanitem
- the string to find
public static String stripOuterBrackets(String value)
value
- The string to strip outer brackets from
public static boolean checkExpression(com.ibm.etools.iseries.core.util.clprompter.ClPanel panel, com.ibm.etools.iseries.core.util.clprompter.ClCommonLayout cl, String kwd, String text, boolean showError) throws ClSyntaxException
panel
- The panel that the field is oncl
- The common layout that the parameter is usingkwd
- The keyword for the parameter.showError
- Whether or not errors should be displayed.
ClSyntaxException
- This exception is thrown if the expression has a syntax error issue.public static int indexNotInQuoteOrBracket(String textToSearch, String item)
textToSearch
- The test to searchitem
- The item to search for
public static String trim(String text)
text
- the text to trim
public static boolean checkDelimiter(String text, com.ibm.etools.iseries.core.util.clprompter.ClPanel panel, int type, boolean showError) throws ClSyntaxException
text
- The text literal to checkpanel
- The panel to display any messages onshowError
- Whether or not errors are to be displayed on the panel.
ClSyntaxException
- If showError is false, then this exception will get thrown instead of an
error being displayed.
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |