|
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.Object com.ibm.etools.iseries.edit.sql.SQLFormattingSettings
public class SQLFormattingSettings
This class is used to handle the settings for formatting
Field Summary | |
---|---|
static int |
AFTER
Break line after |
static int |
BEFORE
Break line before |
static int |
BOTTOM
Move to bottom |
static String |
Copyright
|
static int |
EOL
Break line only when EOL is reached |
static int |
IGNORE
Ignore |
static int |
TOP
Move to top |
Constructor Summary | |
---|---|
SQLFormattingSettings()
Empty constructor for this class. |
|
SQLFormattingSettings(int onComma,
int onAndOr,
boolean onCase,
int commentLocation,
int ccsid)
Use to create formatting setting with the appropriate options |
Method Summary | |
---|---|
int |
getCCSID()
Retrieve the CCSID for the formatting. |
int |
getCommentLocation()
Retrieves the comment location setting |
static SQLFormattingSettings |
getFormattingSettings(String preferenceKey,
int ccsid)
Retrieves the formatting settings from the preference store |
int |
getIndent()
Retrieves the indent value to be used by the formatted |
int |
getLineLength()
Retrieves the maximum line length to use for the formatter |
int |
getMaxIndent()
Retrieves the maximum indent allowed when formatting. |
int |
getOnAndOr()
Retrieves the AND/OR linebreak setting |
boolean |
getOnCase()
Retrieves the on Case linbreak setting |
int |
getOnComma()
Retrieves the on comma linebreak setting |
LpexColumnRange |
getRange()
Retrieves the range of columns allowed to be used by the formatter |
boolean |
isIgnoreAllExceptForRange()
Tells the formatter whether or not formatting options from the registry have been set. |
void |
setIndent(int value)
Sets the indent value to be used by the formatter |
void |
setIndent(String preferenceKey)
Sets the indent value to be used by the formatter |
void |
setLineLength(int value)
Sets the line length to use for the formatter. |
void |
setMaxIndent(int maxIndent)
Sets the maximum number of blanks to allow for indenting. |
void |
setRange(LpexColumnRange range)
Sets the colum range to be used by the formatter when replacing text. |
String |
toString()
|
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 AFTER
public static final int BEFORE
public static final int EOL
public static final int TOP
public static final int BOTTOM
public static final int IGNORE
Constructor Detail |
---|
public SQLFormattingSettings()
public SQLFormattingSettings(int onComma, int onAndOr, boolean onCase, int commentLocation, int ccsid)
onComma
- how comma linebreaks should be handledonAndOr
- how and/or linebreaks should be handledonCase
- how case linebreaks should be handledcommentLocation
- how comment location should be handledccsid
- the ccsid to use for formatting, needed for proper NL supportcom.ibm.etools.iseries.editor.sql.SQLFormattingSettings#TOP
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BOTTOM
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#IGNORE
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#AFTER
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BEFORE
Method Detail |
---|
public static SQLFormattingSettings getFormattingSettings(String preferenceKey, int ccsid)
preferenceKey
- The main key for the formatting preferencesccsid
- The ccsid to use for the formatter. Needed for proper NL support
public int getCommentLocation()
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#AFTER
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BEFORE
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#TOP
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BOTTOM
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#IGNORE
public int getIndent()
public int getMaxIndent()
public int getOnAndOr()
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#AFTER
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BEFORE
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#EOL
public boolean getOnCase()
public int getOnComma()
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#AFTER
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#BEFORE
,
com.ibm.etools.iseries.editor.sql.SQLFormattingSettings#EOL
public LpexColumnRange getRange()
public boolean isIgnoreAllExceptForRange()
public void setIndent(int value)
value
- The value to indent, use 0 if you don't want indentingpublic void setIndent(String preferenceKey)
preferenceKey
- The key in the preference store that contains the indent informationpublic void setMaxIndent(int maxIndent)
maxIndent
- The maximum number of characters allowed for indent.public void setRange(LpexColumnRange range)
range
- The range for the formatter to usepublic void setLineLength(int value)
value
- the desired line length.SQLFormattingSettings#m
public int getLineLength()
public int getCCSID()
public String toString()
toString
in class Object
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |