|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.edit.sql.SQLUpperCaseSettings
public class SQLUpperCaseSettings
This class is used to handle settings and behaviour for uppercasing
| Field Summary | |
|---|---|
static String |
Copyright
|
static int |
IGNORE
Use so that text is not uppercased |
static int |
INITIAL
Indicates that only the initial character should be uppercased |
static int |
LOWER
Indicates all text should be lowercased |
static int |
UPPER
Indicates all text should be uppercased |
| Constructor Summary | |
|---|---|
SQLUpperCaseSettings(int allTextSetting)
Use when all text should be uppecased the same. |
|
SQLUpperCaseSettings(int kwdsBifs,
int identifiers)
Use when you want to uppercase keywords and BIF differently than indentifiers, or when only initial character uppercasing is desired. |
|
| Method Summary | |
|---|---|
static SQLUpperCaseSettings |
getUpperCaseSettings(String preferenceKey)
Retrieves the uppercase settings to use for formatting from the preference store |
boolean |
isKeywordUpperCasingRequired()
Inidcates whether or not the keywords should be uppercased or not |
boolean |
isUpperCasingRequired()
Indicates whether or not the current settings mean that the formatter needs to perform uppercasing |
String |
toString()
|
String |
uppercaseIndentifier(String text)
Uppercases an identifier based on the settings |
String |
uppercaseKeywordOrBif(String text)
Uppercases a keyword or BIF based on the settings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String Copyright
public static final int IGNORE
public static final int UPPER
public static final int LOWER
public static final int INITIAL
| Constructor Detail |
|---|
public SQLUpperCaseSettings(int allTextSetting)
allTextSetting - The setting to use for all SQL textcom.ibm.etools.iseries.editor.sql.SQLUpperCaseSettings.IGNORE,
com.ibm.etools.iseries.editor.sql.SQLUpperCaseSettings.ALL_UPPER,
com.ibm.etools.iseries.editor.sql.SQLUpperCaseSettings.ALL_LOWER
public SQLUpperCaseSettings(int kwdsBifs,
int identifiers)
kwdsBifs - identifiers - | Method Detail |
|---|
public static SQLUpperCaseSettings getUpperCaseSettings(String preferenceKey)
preferenceKey - The preference key to find the uppercase preferences
public boolean isUpperCasingRequired()
public boolean isKeywordUpperCasingRequired()
public String toString()
toString in class Objectpublic String uppercaseIndentifier(String text)
text - The text to uppercase
public String uppercaseKeywordOrBif(String text)
text - The text to uppercase
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||